Personal Loot Helper (PLH)

3M Downloads

Several LE_ITEM_* constants are deprecated

YveOne opened this issue ยท 0 comments

commented

Replace (PersonalLootHelper-Core.lua:783)
if fullItemInfo[FII_CLASS] == LE_ITEM_CLASS_ARMOR then

with
if fullItemInfo[FII_CLASS] == ItemClass.Armor then


Replace (PersonalLootHelper-Core.lua:374-454)

local EQUIPPABLE_ARMOR_BY_SPEC = {
...
}
local EQUIPPABLE_WEAPON_BY_SPEC = {
...
}

with

local ItemClass = Enum.ItemClass
local ItemArmorSubclass = Enum.ItemArmorSubclass
local ItemWeaponSubclass = Enum.ItemWeaponSubclass
local EQUIPPABLE_ARMOR_BY_SPEC = {
[SPECS.DK_BLOOD] = { ItemArmorSubclass.Plate },
[SPECS.DK_FROST] = { ItemArmorSubclass.Plate },
[SPECS.DK_UNHOLY] = { ItemArmorSubclass.Plate },
[SPECS.DH_HAVOC] = { ItemArmorSubclass.Leather },
[SPECS.DH_VENGEANCE] = { ItemArmorSubclass.Leather },
[SPECS.DRUID_BALANCE] = { ItemArmorSubclass.Leather, ItemArmorSubclass.Generic },
[SPECS.DRUID_FERAL] = { ItemArmorSubclass.Leather },
[SPECS.DRUID_GUARDIAN] = { ItemArmorSubclass.Leather },
[SPECS.DRUID_RESTO] = { ItemArmorSubclass.Leather, ItemArmorSubclass.Generic },
[SPECS.EVOKER_DEVA] = { ItemArmorSubclass.Mail, ItemArmorSubclass.Generic },
[SPECS.EVOKER_PRES] = { ItemArmorSubclass.Mail, ItemArmorSubclass.Generic },
[SPECS.HUNTER_BM] = { ItemArmorSubclass.Mail },
[SPECS.HUNTER_MARKS] = { ItemArmorSubclass.Mail },
[SPECS.HUNTER_SURVIVAL] = { ItemArmorSubclass.Mail },
[SPECS.MAGE_ARCANE] = { ItemArmorSubclass.Cloth, ItemArmorSubclass.Generic },
[SPECS.MAGE_FIRE] = { ItemArmorSubclass.Cloth, ItemArmorSubclass.Generic },
[SPECS.MAGE_FROST] = { ItemArmorSubclass.Cloth, ItemArmorSubclass.Generic },
[SPECS.MONK_BM] = { ItemArmorSubclass.Leather },
[SPECS.MONK_MW] = { ItemArmorSubclass.Leather, ItemArmorSubclass.Generic },
[SPECS.MONK_WW] = { ItemArmorSubclass.Leather },
[SPECS.PALADIN_HOLY] = { ItemArmorSubclass.Plate, ItemArmorSubclass.Generic, ItemArmorSubclass.Shield },
[SPECS.PALADIN_PROT] = { ItemArmorSubclass.Plate, ItemArmorSubclass.Shield },
[SPECS.PALADIN_RET] = { ItemArmorSubclass.Plate },
[SPECS.PRIEST_DISC] = { ItemArmorSubclass.Cloth, ItemArmorSubclass.Generic },
[SPECS.PRIEST_HOLY] = { ItemArmorSubclass.Cloth, ItemArmorSubclass.Generic },
[SPECS.PRIEST_SHADOW] = { ItemArmorSubclass.Cloth, ItemArmorSubclass.Generic },
[SPECS.ROGUE_ASS] = { ItemArmorSubclass.Leather },
[SPECS.ROGUE_OUTLAW] = { ItemArmorSubclass.Leather },
[SPECS.ROGUE_SUB] = { ItemArmorSubclass.Leather },
[SPECS.SHAMAN_ELE] = { ItemArmorSubclass.Mail, ItemArmorSubclass.Generic, ItemArmorSubclass.Shield },
[SPECS.SHAMAN_ENH] = { ItemArmorSubclass.Mail },
[SPECS.SHAMAN_RESTO] = { ItemArmorSubclass.Mail, ItemArmorSubclass.Generic, ItemArmorSubclass.Shield },
[SPECS.WARLOCK_AFF] = { ItemArmorSubclass.Cloth, ItemArmorSubclass.Generic },
[SPECS.WARLOCK_DEMO] = { ItemArmorSubclass.Cloth, ItemArmorSubclass.Generic },
[SPECS.WARLOCK_DESTRO] = { ItemArmorSubclass.Cloth, ItemArmorSubclass.Generic },
[SPECS.WARRIOR_ARMS] = { ItemArmorSubclass.Plate },
[SPECS.WARRIOR_FURY] = { ItemArmorSubclass.Plate },
[SPECS.WARRIOR_PROT] = { ItemArmorSubclass.Plate, ItemArmorSubclass.Shield }
}
local EQUIPPABLE_WEAPON_BY_SPEC = {
[SPECS.DK_BLOOD] = { ItemWeaponSubclass.Axe2H, ItemWeaponSubclass.Mace2H, ItemWeaponSubclass.Polearm, ItemWeaponSubclass.Sword2H },
[SPECS.DK_FROST] = { ItemWeaponSubclass.Axe1H, ItemWeaponSubclass.Mace1H, ItemWeaponSubclass.Sword1H },
[SPECS.DK_UNHOLY] = { ItemWeaponSubclass.Axe2H, ItemWeaponSubclass.Mace2H, ItemWeaponSubclass.Polearm, ItemWeaponSubclass.Sword2H },
[SPECS.DH_HAVOC] = { ItemWeaponSubclass.Axe1H, ItemWeaponSubclass.Sword1H, ItemWeaponSubclass.Unarmed, ItemWeaponSubclass.Warglaive },
[SPECS.DH_VENGEANCE] = { ItemWeaponSubclass.Axe1H, ItemWeaponSubclass.Sword1H, ItemWeaponSubclass.Unarmed, ItemWeaponSubclass.Warglaive },
[SPECS.DRUID_BALANCE] = { ItemWeaponSubclass.Dagger, ItemWeaponSubclass.Mace1H, ItemWeaponSubclass.Mace2H, ItemWeaponSubclass.Polearm, ItemWeaponSubclass.Staff, ItemWeaponSubclass.Unarmed },
[SPECS.DRUID_FERAL] = { ItemWeaponSubclass.Mace2H, ItemWeaponSubclass.Polearm, ItemWeaponSubclass.Staff },
[SPECS.DRUID_GUARDIAN] = { ItemWeaponSubclass.Mace2H, ItemWeaponSubclass.Polearm, ItemWeaponSubclass.Staff },
[SPECS.DRUID_RESTO] = { ItemWeaponSubclass.Dagger, ItemWeaponSubclass.Mace1H, ItemWeaponSubclass.Mace2H, ItemWeaponSubclass.Polearm, ItemWeaponSubclass.Staff, ItemWeaponSubclass.Unarmed },
[SPECS.EVOKER_DEVA] = { ItemWeaponSubclass.Dagger, ItemWeaponSubclass.Axe1H, ItemWeaponSubclass.Axe2H, ItemWeaponSubclass.Mace1H, ItemWeaponSubclass.Mace2H, ItemWeaponSubclass.Staff, ItemWeaponSubclass.Sword1H, ItemWeaponSubclass.Sword2H, ItemWeaponSubclass.Unarmed },
[SPECS.EVOKER_PRES] = { ItemWeaponSubclass.Dagger, ItemWeaponSubclass.Axe1H, ItemWeaponSubclass.Axe2H, ItemWeaponSubclass.Mace1H, ItemWeaponSubclass.Mace2H, ItemWeaponSubclass.Staff, ItemWeaponSubclass.Sword1H, ItemWeaponSubclass.Sword2H, ItemWeaponSubclass.Unarmed },
[SPECS.HUNTER_BM] = { ItemWeaponSubclass.Bows, ItemWeaponSubclass.Crossbow, ItemWeaponSubclass.Guns },
[SPECS.HUNTER_MARKS] = { ItemWeaponSubclass.Bows, ItemWeaponSubclass.Crossbow, ItemWeaponSubclass.Guns },
[SPECS.HUNTER_SURVIVAL] = { ItemWeaponSubclass.Polearm, ItemWeaponSubclass.Staff },
[SPECS.MAGE_ARCANE] = { ItemWeaponSubclass.Dagger, ItemWeaponSubclass.Staff, ItemWeaponSubclass.Sword1H, ItemWeaponSubclass.Wand },
[SPECS.MAGE_FIRE] = { ItemWeaponSubclass.Dagger, ItemWeaponSubclass.Staff, ItemWeaponSubclass.Sword1H, ItemWeaponSubclass.Wand },
[SPECS.MAGE_FROST] = { ItemWeaponSubclass.Dagger, ItemWeaponSubclass.Staff, ItemWeaponSubclass.Sword1H, ItemWeaponSubclass.Wand },
[SPECS.MONK_BM] = { ItemWeaponSubclass.Polearm, ItemWeaponSubclass.Staff },
[SPECS.MONK_MW] = { ItemWeaponSubclass.Axe1H, ItemWeaponSubclass.Mace1H, ItemWeaponSubclass.Polearm, ItemWeaponSubclass.Staff, ItemWeaponSubclass.Sword1H, ItemWeaponSubclass.Unarmed },
[SPECS.MONK_WW] = { ItemWeaponSubclass.Axe1H, ItemWeaponSubclass.Mace1H, ItemWeaponSubclass.Sword1H, ItemWeaponSubclass.Unarmed },
[SPECS.PALADIN_HOLY] = { ItemWeaponSubclass.Axe1H, ItemWeaponSubclass.Mace1H, ItemWeaponSubclass.Mace2H, ItemWeaponSubclass.Polearm, ItemWeaponSubclass.Sword1H, ItemWeaponSubclass.Sword2H },
[SPECS.PALADIN_PROT] = { ItemWeaponSubclass.Axe1H, ItemWeaponSubclass.Mace1H, ItemWeaponSubclass.Sword1H },
[SPECS.PALADIN_RET] = { ItemWeaponSubclass.Axe2H, ItemWeaponSubclass.Mace2H, ItemWeaponSubclass.Polearm, ItemWeaponSubclass.Sword2H },
[SPECS.PRIEST_DISC] = { ItemWeaponSubclass.Dagger, ItemWeaponSubclass.Mace1H, ItemWeaponSubclass.Staff, ItemWeaponSubclass.Wand },
[SPECS.PRIEST_HOLY] = { ItemWeaponSubclass.Dagger, ItemWeaponSubclass.Mace1H, ItemWeaponSubclass.Staff, ItemWeaponSubclass.Wand },
[SPECS.PRIEST_SHADOW] = { ItemWeaponSubclass.Dagger, ItemWeaponSubclass.Mace1H, ItemWeaponSubclass.Staff, ItemWeaponSubclass.Wand },
[SPECS.ROGUE_ASS] = { ItemWeaponSubclass.Dagger },
[SPECS.ROGUE_OUTLAW] = { ItemWeaponSubclass.Axe1H, ItemWeaponSubclass.Mace1H, ItemWeaponSubclass.Sword1H, ItemWeaponSubclass.Unarmed },
[SPECS.ROGUE_SUB] = { ItemWeaponSubclass.Dagger },
[SPECS.SHAMAN_ELE] = { ItemWeaponSubclass.Dagger, ItemWeaponSubclass.Axe1H, ItemWeaponSubclass.Mace1H, ItemWeaponSubclass.Mace2H, ItemWeaponSubclass.Staff, ItemWeaponSubclass.Unarmed },
[SPECS.SHAMAN_ENH] = { ItemWeaponSubclass.Axe1H, ItemWeaponSubclass.Mace1H, ItemWeaponSubclass.Unarmed },
[SPECS.SHAMAN_RESTO] = { ItemWeaponSubclass.Dagger, ItemWeaponSubclass.Axe1H, ItemWeaponSubclass.Mace1H, ItemWeaponSubclass.Mace2H, ItemWeaponSubclass.Staff, ItemWeaponSubclass.Unarmed },
[SPECS.WARLOCK_AFF] = { ItemWeaponSubclass.Dagger, ItemWeaponSubclass.Staff, ItemWeaponSubclass.Sword1H, ItemWeaponSubclass.Wand },
[SPECS.WARLOCK_DEMO] = { ItemWeaponSubclass.Dagger, ItemWeaponSubclass.Staff, ItemWeaponSubclass.Sword1H, ItemWeaponSubclass.Wand },
[SPECS.WARLOCK_DESTRO] = { ItemWeaponSubclass.Dagger, ItemWeaponSubclass.Staff, ItemWeaponSubclass.Sword1H, ItemWeaponSubclass.Wand },
[SPECS.WARRIOR_ARMS] = { ItemWeaponSubclass.Axe2H, ItemWeaponSubclass.Mace2H, ItemWeaponSubclass.Polearm, ItemWeaponSubclass.Sword2H },
[SPECS.WARRIOR_FURY] = { ItemWeaponSubclass.Axe2H, ItemWeaponSubclass.Mace2H, ItemWeaponSubclass.Polearm, ItemWeaponSubclass.Sword2H },
[SPECS.WARRIOR_PROT] = { ItemWeaponSubclass.Axe1H, ItemWeaponSubclass.Mace1H, ItemWeaponSubclass.Sword1H }
}