Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/globalscripts/Templates.js
Show First 20 Lines • Show All 174 Lines • ▼ Show 20 Lines | let getAttackEffects = (temp, path) => { | ||||
if (temp.Damage) | if (temp.Damage) | ||||
{ | { | ||||
effects.Damage = {}; | effects.Damage = {}; | ||||
for (let damageType in temp.Damage) | for (let damageType in temp.Damage) | ||||
effects.Damage[damageType] = getEntityValue(path + "/Damage/" + damageType); | effects.Damage[damageType] = getEntityValue(path + "/Damage/" + damageType); | ||||
} | } | ||||
// TODO: status effects | if (temp.ApplyStatus) | ||||
effects.ApplyStatus = temp.ApplyStatus; | |||||
elexis: (perhaps Apply) | |||||
return effects; | return effects; | ||||
}; | }; | ||||
if (template.Attack) | if (template.Attack) | ||||
{ | { | ||||
ret.attack = {}; | ret.attack = {}; | ||||
for (let type in template.Attack) | for (let type in template.Attack) | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 358 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator
(perhaps Apply)