HOTFIX: Fix item set association

more robust/future proof sets info, at the cost of some load time
This commit is contained in:
hppeng 2022-09-15 22:54:36 -07:00
parent a81e936412
commit 518af81d22
2 changed files with 15 additions and 0 deletions

View file

@ -254,4 +254,9 @@ function init_maps() {
redirectMap.set(item.id, item.remapID); redirectMap.set(item.id, item.remapID);
} }
} }
for (const [set_name, set_data] of sets) {
for (const item_name of set_data.items) {
itemMap.get(item_name).set = set_name;
}
}
} }

View file

@ -36,8 +36,18 @@ translate_mappings = {
"manaRegen": "mr", "manaRegen": "mr",
#"spellDamage": "sdPct", #"spellDamage": "sdPct",
"spellDamageBonus": "sdPct", "spellDamageBonus": "sdPct",
"spellFireDamageBonus": "fSdPct",
"spellWaterDamageBonus": "wSdPct",
"spellAirDamageBonus": "aSdPct",
"spellThunderDamageBonus": "tSdPct",
"spellEarthDamageBonus": "eSdPct",
#"damageBonus": "mdPct", #"damageBonus": "mdPct",
"mainAttackDamageBonus": "mdPct", "mainAttackDamageBonus": "mdPct",
"mainAttackFireDamageBonus": "fMdPct",
"mainAttackWaterDamageBonus": "wMdPct",
"mainAttackAirDamageBonus": "aMdPct",
"mainAttackThunderDamageBonus": "tMdPct",
"mainAttackEarthDamageBonus": "eMdPct",
"lifeSteal": "ls", "lifeSteal": "ls",
"manaSteal": "ms", "manaSteal": "ms",
"xpBonus": "xpb", "xpBonus": "xpb",