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);
}
}
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",
#"spellDamage": "sdPct",
"spellDamageBonus": "sdPct",
"spellFireDamageBonus": "fSdPct",
"spellWaterDamageBonus": "wSdPct",
"spellAirDamageBonus": "aSdPct",
"spellThunderDamageBonus": "tSdPct",
"spellEarthDamageBonus": "eSdPct",
#"damageBonus": "mdPct",
"mainAttackDamageBonus": "mdPct",
"mainAttackFireDamageBonus": "fMdPct",
"mainAttackWaterDamageBonus": "wMdPct",
"mainAttackAirDamageBonus": "aMdPct",
"mainAttackThunderDamageBonus": "tMdPct",
"mainAttackEarthDamageBonus": "eMdPct",
"lifeSteal": "ls",
"manaSteal": "ms",
"xpBonus": "xpb",