Differential D2995 Diff 14031 ps/trunk/binaries/data/mods/public/simulation/components/GuiInterface.js
Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/binaries/data/mods/public/simulation/components/GuiInterface.js
Show First 20 Lines • Show All 417 Lines • ▼ Show 20 Lines | if (types.length) | ||||
ret.attack = {}; | ret.attack = {}; | ||||
for (let type of types) | for (let type of types) | ||||
{ | { | ||||
ret.attack[type] = {}; | ret.attack[type] = {}; | ||||
Object.assign(ret.attack[type], cmpAttack.GetAttackEffectsData(type)); | Object.assign(ret.attack[type], cmpAttack.GetAttackEffectsData(type)); | ||||
ret.attack[type].attackName = cmpAttack.GetAttackName(type); | |||||
ret.attack[type].splash = cmpAttack.GetSplashData(type); | ret.attack[type].splash = cmpAttack.GetSplashData(type); | ||||
if (ret.attack[type].splash) | if (ret.attack[type].splash) | ||||
Object.assign(ret.attack[type].splash, cmpAttack.GetAttackEffectsData(type, true)); | Object.assign(ret.attack[type].splash, cmpAttack.GetAttackEffectsData(type, true)); | ||||
let range = cmpAttack.GetRange(type); | let range = cmpAttack.GetRange(type); | ||||
ret.attack[type].minRange = range.min; | ret.attack[type].minRange = range.min; | ||||
ret.attack[type].maxRange = range.max; | ret.attack[type].maxRange = range.max; | ||||
▲ Show 20 Lines • Show All 1,628 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator