Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/globalscripts/Templates.js
Show First 20 Lines • Show All 169 Lines • ▼ Show 20 Lines | for (let type in template.Attack) | ||||
ret.attack[type].splash = { | ret.attack[type].splash = { | ||||
"hack": getAttackStat("Splash/Hack"), | "hack": getAttackStat("Splash/Hack"), | ||||
"pierce": getAttackStat("Splash/Pierce"), | "pierce": getAttackStat("Splash/Pierce"), | ||||
"crush": getAttackStat("Splash/Crush"), | "crush": getAttackStat("Splash/Crush"), | ||||
// true if undefined | // true if undefined | ||||
"friendlyFire": template.Attack[type].Splash.FriendlyFire != "false", | "friendlyFire": template.Attack[type].Splash.FriendlyFire != "false", | ||||
"shape": template.Attack[type].Splash.Shape | "shape": template.Attack[type].Splash.Shape | ||||
}; | }; | ||||
if (type == "Death") | |||||
ret.attack.Death = { | |||||
"hack": getAttackStat("Hack"), | |||||
"pierce": getAttackStat("Pierce"), | |||||
"crush": getAttackStat("Crush"), | |||||
// true if undefined | |||||
"friendlyFire": template.Attack.Death.FriendlyFire != "false" | |||||
}; | |||||
} | } | ||||
} | } | ||||
if (template.Auras) | if (template.Auras) | ||||
{ | { | ||||
ret.auras = {}; | ret.auras = {}; | ||||
for (let auraID of template.Auras._string.split(/\s+/)) | for (let auraID of template.Auras._string.split(/\s+/)) | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 266 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator