HOTFIX: Fix item set association
more robust/future proof sets info, at the cost of some load time
This commit is contained in:
parent
a81e936412
commit
518af81d22
2 changed files with 15 additions and 0 deletions
|
@ -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;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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",
|
||||||
|
|
Loading…
Reference in a new issue