Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/globalscripts/Templates.js
Context not available. | |||||
for (let damageType of damageTypes.GetTypes()) | for (let damageType of damageTypes.GetTypes()) | ||||
ret.attack[type].splash[damageType] = getAttackStat("Splash/" + damageType); | ret.attack[type].splash[damageType] = getAttackStat("Splash/" + damageType); | ||||
} | } | ||||
if (template.Attack[type].Bonuses) | |||||
{ | |||||
ret.attack[type].bonuses = {}; | |||||
for (let bonus in template.Attack[type].Bonuses) | |||||
ret.attack[type].bonuses[bonus] = { | |||||
"classes": template.Attack[type].Bonuses[bonus].Classes, | |||||
"multiplier": template.Attack[type].Bonuses[bonus].Multiplier | |||||
Freagarach: .toFixed(x) perhaps? If upgrading of bunuses will be introduced. | |||||
Done Inline Actions.toFixed(8) like used below. Stan: .toFixed(8) like used below. | |||||
}; | |||||
} | |||||
} | } | ||||
Done Inline Actions{} can be removed since it contains only one statement elexis: {} can be removed since it contains only one statement
still mising semicolon x = y; (check… | |||||
} | } | ||||
Context not available. |
Wildfire Games · Phabricator
.toFixed(x) perhaps? If upgrading of bunuses will be introduced.