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["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"] = "일제 사격",