Quantcast

.... I forgot something, sorry Mobius :P

Repooc [10-28-16 - 21:35]
.... I forgot something, sorry Mobius :P
Filename
ElvUI_SLE/modules/Armory/Constants.lua
diff --git a/ElvUI_SLE/modules/Armory/Constants.lua b/ElvUI_SLE/modules/Armory/Constants.lua
index a696850..eaebc94 100644
--- a/ElvUI_SLE/modules/Armory/Constants.lua
+++ b/ElvUI_SLE/modules/Armory/Constants.lua
@@ -4,9 +4,34 @@ local E, L, V, P, G = unpack(ElvUI)
 local KF, Info, Timer = unpack(ElvUI_KnightFrame)
 local gsub = gsub

+--WoW API . Variables
+local GetSpellInfo = GetSpellInfo
+local ITEM_LEVEL = ITEM_LEVEL
+local ITEM_LEVEL_ALT = ITEM_LEVEL_ALT
+local ENCHANTED_TOOLTIP_LINE = ENCHANTED_TOOLTIP_LINE
+local ITEM_SET_BONUS = ITEM_SET_BONUS
+local ITEM_UPGRADE_TOOLTIP_FORMAT = ITEM_UPGRADE_TOOLTIP_FORMAT
+local HONOR_LEVEL_LABEL = HONOR_LEVEL_LABEL
+local EMPTY_SOCKET_BLUE = EMPTY_SOCKET_BLUE
+local EMPTY_SOCKET_COGWHEEL = EMPTY_SOCKET_COGWHEEL
+local EMPTY_SOCKET_HYDRAULIC = EMPTY_SOCKET_HYDRAULIC
+local EMPTY_SOCKET_META = EMPTY_SOCKET_META
+local EMPTY_SOCKET_NO_COLOR = EMPTY_SOCKET_NO_COLOR
+local EMPTY_SOCKET_PRISMATIC = EMPTY_SOCKET_PRISMATIC
+local EMPTY_SOCKET_RED = EMPTY_SOCKET_RED
+local EMPTY_SOCKET_YELLOW = EMPTY_SOCKET_YELLOW
+local ITEM_BIND_ON_EQUIP = ITEM_BIND_ON_EQUIP
+local ITEM_BIND_ON_PICKUP = ITEM_BIND_ON_PICKUP
+local ITEM_BIND_TO_ACCOUNT = ITEM_BIND_TO_ACCOUNT
+local ITEM_BIND_TO_BNETACCOUNT = ITEM_BIND_TO_BNETACCOUNT
+
 Info.Armory_Constants = {
+	ItemLevelKey = ITEM_LEVEL:gsub('%%d', '(.+)'),
+	ItemLevelKey_Alt = ITEM_LEVEL_ALT:gsub('%%d', '.+'):gsub('%(.+%)', '%%((.+)%%)'),
 	EnchantKey = ENCHANTED_TOOLTIP_LINE:gsub('%%s', '(.+)'),
 	ItemSetBonusKey = ITEM_SET_BONUS:gsub('%%s', '(.+)'),
+	ItemUpgradeKey = ITEM_UPGRADE_TOOLTIP_FORMAT:gsub('%%d', '(.+)'),
+	HonorLevel = HONOR_LEVEL_LABEL:gsub('%%d', '%%s'),
 	--TransmogrifiedKey = TRANSMOGRIFIED:gsub('%%s', '(.+)'),

 	GearList = {
@@ -15,9 +40,10 @@ Info.Armory_Constants = {
 	},

 	EnchantableSlots = {
-		NeckSlot = true, BackSlot = true, Finger0Slot = true, Finger1Slot = true, MainHandSlot = true, SecondaryHandSlot = true,
+		NeckSlot = true, BackSlot = true, Finger0Slot = true, Finger1Slot = true,-- MainHandSlot = true, SecondaryHandSlot = true,
 	},

+	--Most Likely removing this block of code, will remove when effected functions are updated
 	WeaponTypes = {
 		["INVTYPE_WEAPON"] = true,
 		["INVTYPE_2HWEAPON"] = true,
@@ -31,16 +57,90 @@ Info.Armory_Constants = {
 	UpgradeColor = {
 		[16] = '|cffff9614',
 		[12] = '|cfff88ef4',
+		[10] = '|cffff9614',
 		[8] = '|cff2eb7e4',
+		[5] = '|cfff88ef4',
 		[4] = '|cffceff00'
 	},

 	GemColor = {
-		RED = { 1, .2, .2, },
-		YELLOW = { .97, .82, .29, },
-		BLUE = { .47, .67, 1, }
+		RED =	{   1,	.2,  .2 },
+		YELLOW = { .97, .82, .29 },
+		BLUE =	 { .47, .67,   1 },
+		ARCANE = { .85, .75, .93 },
+		BLOOD =  {   1,   0,   0 },
+		FEL =    {   0,   1, .16 },
+		FIRE =   {   1, .24,   0 },
+		FROST =  { .35, .75,   1 },
+		HOLY =   {   1, .91, .58 },
+		IRON =   { .76, .76, .76 },
+		LIFE =   { .07, .74,   0 },
+		SHADOW = {  .7, .48, .88 },
+		STORM =  { .67, .84,   1 }
 	},
-
+
+	ArtifactType = {
+		-- Warriors
+		[128910] = { 'IRON', 'BLOOD', 'SHADOW' },	--Arms
+		[128908] = { 'FIRE', 'STORM', 'IRON' },		--Fury
+		[128289] = { 'IRON', 'BLOOD', 'FIRE' },		--Protection
+
+		-- Hunter
+		[128861] = { 'STORM', 'ARCANE', 'IRON' },	--Beast Mastery
+		[128826] = { 'STORM', 'BLOOD', 'LIFE' },	--Markmanship
+		[128808] = { 'STORM', 'IRON', 'BLOOD' },	--Survival
+
+		-- Shaman
+		[128935] = { 'STORM', 'FROST', 'STORM' },	--Elemental
+		[128819] = { 'FIRE', 'IRON', 'STORM' },		--Enhancement
+		[128911] = { 'LIFE', 'FROST', 'LIFE' },		--Restoration
+
+		-- Monk
+		[128938] = { 'LIFE', 'STORM', 'IRON' },		--Brewmaster
+		[128937] = { 'FROST', 'LIFE', 'STORM' },	--Mistweaver
+		[128940] = { 'STORM', 'IRON', 'STORM' },	--Windwalker
+
+		-- Rogue
+		[128870] = { 'SHADOW', 'IRON', 'BLOOD' },	--Assasination
+		[128872] = { 'BLOOD', 'IRON', 'STORM' },	--Outlaw
+		[128476] = { 'FEL', 'SHADOW', 'FEL' },		--Subtlety
+
+		-- Death Knight
+		[128402] = { 'BLOOD', 'SHADOW', 'IRON' },	--Blood
+		[128292] = { 'FROST', 'SHADOW', 'FROST' },	--Frost
+		[128403] = { 'FIRE', 'SHADOW', 'BLOOD' },	--Unholy
+
+		-- Mage
+		[127857] = { 'ARCANE', 'FROST', 'ARCANE' },	--Arcane
+		[128820] = { 'FIRE', 'ARCANE', 'FIRE' },	--Fire
+		[128862] = { 'FROST', 'ARCANE', 'FROST' },	--Frost
+
+		-- Druid
+		[128858] = { 'ARCANE', 'LIFE', 'ARCANE' },	--Balance
+		[128860] = { 'FROST', 'BLOOD', 'LIFE' },	--Feral
+		[128821] = { 'FIRE', 'BLOOD', 'LIFE' },		--Guardian
+		[128306] = { 'LIFE', 'FROST', 'LIFE' },		--Restoration
+
+		-- Paladin
+		[128823] = { 'HOLY', 'LIFE', 'HOLY' },		--Holy
+		[128866] = { 'HOLY', 'IRON', 'ARCANE' },	--Protection
+		[120978] = { 'HOLY', 'FIRE', 'HOLY' },		--Retribution
+
+		-- Priest
+		[128868] = { 'HOLY', 'SHADOW', 'HOLY' },	--Discipline
+		[128825] = { 'HOLY', 'LIFE', 'HOLY' },		--Holy
+		[128827] = { 'SHADOW', 'BLOOD', 'SHADOW' },	--Shadow
+
+		-- Warlock
+		[128942] = { 'SHADOW', 'BLOOD', 'SHADOW' },	--Affliction
+		[128943] = { 'SHADOW', 'FIRE', 'FEL' },		--Demonology
+		[128941] = { 'FEL', 'FIRE', 'FEL' },		--Destruction
+
+		-- Demon Hunter
+		[127829] = { 'FEL', 'SHADOW', 'FEL' },		--Havoc
+		[128832] = { 'IRON', 'ARCANE', 'FEL' }		--Vengeance
+	},
+
 	EmptySocketString = {
 		[EMPTY_SOCKET_BLUE] = true,
 		[EMPTY_SOCKET_COGWHEEL] = true,
@@ -70,6 +170,8 @@ Info.Armory_Constants = {

 	ProfessionList = {},

+	PvPTalentRequireLevel = { 1, 13, 31, 2, 16, 34, 4, 19, 37, 6, 22, 40, 8, 25, 43, 10, 28, 46 },
+
 	BlizzardBackdropList = {
 		["Alliance-bliz"] = [[Interface\LFGFrame\UI-PVP-BACKGROUND-Alliance]],
 		["Horde-bliz"] = [[Interface\LFGFrame\UI-PVP-BACKGROUND-Horde]],