mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-06 13:40:00 +00:00
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:
Vendored
-14
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user