eqcompare: numeric InventoryType lookup, drop bagtypes/itemtypes locales

Both sub-tables carried per-locale strings only so pfUI's own code could
match against localized text. ClassicAPI's numeric item APIs replace
both:

- GetBagFamily now reads classID/subClassID from C_Item.GetItemInfoInstant
  and switches on the numbers (class 1 = Container, class 11 = Quiver).
- eqcompare pulls the itemID from GameTooltip:GetItem(), fetches the
  numeric invType via C_Item.GetItemInventoryTypeByID, and looks up the
  destination slot(s) in a numeric slotTable keyed by Enum.InventoryType.
  Pair-slot invtypes (finger / trinket / one-hand weapon) list both
  destinations directly, so the "_other" string-concat hack is gone.

Removes the setglobal INVTYPE_* injection, the tooltip text scan, and
the itemtypes + bagtypes locale sub-tables across all 7 files.
This commit is contained in:
Brues
2026-07-01 15:43:03 -05:00
parent 5524ad3b91
commit 439d5a397a
9 changed files with 83 additions and 191 deletions
-14
View File
@@ -17,20 +17,6 @@ pfUI_locale["deDE"]["healduration"] = {
["Renew"] = "Erhöht die Wirkungsdauer von 'Erneuerung' um 3 Sek.",
}
pfUI_locale["deDE"]["bagtypes"] = {
["Köcher"] = "QUIVER",
["Seelentasche"] = "SOULBAG",
["Behälter"] = "DEFAULT",
}
pfUI_locale["deDE"]["itemtypes"] = {
["INVTYPE_WAND"] = "Zauberstab",
["INVTYPE_THROWN"] = "Wurfwaffe",
["INVTYPE_GUN"] = "Schusswaffe",
["INVTYPE_CROSSBOW"] = "Armbrust",
["INVTYPE_PROJECTILE"] = "Projektil",
}
pfUI_locale["deDE"]["customcast"] = {
["AIMEDSHOT"] = "Gezielter Schuss",
["MULTISHOT"] = "Mehrfach-Schuss",
-14
View File
@@ -17,20 +17,6 @@ pfUI_locale["enUS"]["healduration"] = {
["Renew"] = "Increases the duration of your Renew spell by 3 sec.",
}
pfUI_locale["enUS"]["bagtypes"] = {
["Quiver"] = "QUIVER",
["Soul Bag"] = "SOULBAG",
["Bag"] = "DEFAULT",
}
pfUI_locale["enUS"]["itemtypes"] = {
["INVTYPE_WAND"] = "Wand",
["INVTYPE_THROWN"] = "Thrown",
["INVTYPE_GUN"] = "Gun",
["INVTYPE_CROSSBOW"] = "Crossbow",
["INVTYPE_PROJECTILE"] = "Projectile",
}
pfUI_locale["enUS"]["customcast"] = {
["AIMEDSHOT"] = "Aimed Shot",
["MULTISHOT"] = "Multi-Shot",
-14
View File
@@ -17,20 +17,6 @@ pfUI_locale["esES"]["healduration"] = {
["Renew"] = "Aumenta en 3 s la duración de tu hechizo Renovar.",
}
pfUI_locale["esES"]["bagtypes"] = {
["Carcaj"] = "QUIVER",
["Bolsa de almas"] = "SOULBAG",
["Bolsa"] = "DEFAULT",
}
pfUI_locale["esES"]["itemtypes"] = {
["INVTYPE_WAND"] = "Varita",
["INVTYPE_THROWN"] = "Arma arrojadiza",
["INVTYPE_GUN"] = "Arma de fuego",
["INVTYPE_CROSSBOW"] = "Ballesta",
["INVTYPE_PROJECTILE"] = "Proyectil",
}
pfUI_locale["esES"]["customcast"] = {
["AIMEDSHOT"] = "Disparo de puntería",
["MULTISHOT"] = "Multidisparo",
-14
View File
@@ -17,20 +17,6 @@ pfUI_locale["frFR"]["healduration"] = {
["Renew"] = "Augmente la durée de votre sort Rénovation de 3 sec.",
}
pfUI_locale["frFR"]["bagtypes"] = {
["Carquois"] = "QUIVER",
["Sac d'âme"] = "SOULBAG",
["Conteneur"] = "DEFAULT",
}
pfUI_locale["frFR"]["itemtypes"] = {
["INVTYPE_WAND"] = "Baguette",
["INVTYPE_THROWN"] = "Armes de jet",
["INVTYPE_GUN"] = "Arme à feu",
["INVTYPE_CROSSBOW"] = "Arbalète",
["INVTYPE_PROJECTILE"] = "Projectile",
}
pfUI_locale["frFR"]["customcast"] = {
["AIMEDSHOT"] = "Visée",
["MULTISHOT"] = "Flèches multiples",
-14
View File
@@ -17,20 +17,6 @@ pfUI_locale["koKR"]["healduration"] = {
["Renew"] = "소생의 지속시간이 3초만큼 증가합니다.",
}
pfUI_locale["koKR"]["bagtypes"] = {
["화살통"] = "QUIVER",
["영혼의 가방"] = "SOULBAG",
["가방"] = "DEFAULT",
}
pfUI_locale["koKR"]["itemtypes"] = {
["INVTYPE_WAND"] = "마법봉",
["INVTYPE_THROWN"] = "투척 무기",
["INVTYPE_GUN"] = "총",
["INVTYPE_CROSSBOW"] = "석궁",
["INVTYPE_PROJECTILE"] = "투사체",
}
pfUI_locale["koKR"]["customcast"] = {
["AIMEDSHOT"] = "조준 사격",
["MULTISHOT"] = "일제 사격",
-14
View File
@@ -17,20 +17,6 @@ pfUI_locale["ruRU"]["healduration"] = {
["Renew"] = "Продлевает действие \"Обновления\" на 3 сек.",
}
pfUI_locale["ruRU"]["bagtypes"] = {
["Колчан"] = "QUIVER",
["Сумка душ"] = "SOULBAG",
["Сумка"] = "DEFAULT",
}
pfUI_locale["ruRU"]["itemtypes"] = {
["INVTYPE_WAND"] = "Жезл",
["INVTYPE_THROWN"] = "Метательное",
["INVTYPE_GUN"] = "Огнестрельное",
["INVTYPE_CROSSBOW"] = "Арбалет",
["INVTYPE_PROJECTILE"] = "Боеприпасы",
}
pfUI_locale["ruRU"]["customcast"] = {
["AIMEDSHOT"] = "Прицельный выстрел",
["MULTISHOT"] = "Залп",
-14
View File
@@ -17,20 +17,6 @@ pfUI_locale["zhCN"]["healduration"] = {
["Renew"] = "使你的恢复术的持续时间延长3秒。",
}
pfUI_locale["zhCN"]["bagtypes"] = {
["箭袋"] = "QUIVER",
["灵魂袋"] = "SOULBAG",
["容器"] = "DEFAULT",
}
pfUI_locale["zhCN"]["itemtypes"] = {
["INVTYPE_WAND"] = "魔杖",
["INVTYPE_THROWN"] = "投掷武器",
["INVTYPE_GUN"] = "枪械",
["INVTYPE_CROSSBOW"] = "弩",
["INVTYPE_PROJECTILE"] = "弹药",
}
pfUI_locale["zhCN"]["customcast"] = {
["AIMEDSHOT"] = "瞄准射击",
["MULTISHOT"] = "多重射击",