Differential D1950 Diff 8508 binaries/data/mods/public/simulation/components/tests/test_DeathDamage.js
Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/simulation/components/tests/test_DeathDamage.js
Engine.LoadHelperScript("DamageBonus.js"); | Engine.LoadHelperScript("DamageBonus.js"); | ||||
Engine.LoadHelperScript("DamageTypes.js"); | Engine.LoadHelperScript("DamageTypes.js"); | ||||
Engine.LoadHelperScript("ValueModification.js"); | Engine.LoadHelperScript("ValueModification.js"); | ||||
Engine.LoadComponentScript("interfaces/AuraManager.js"); | Engine.LoadComponentScript("interfaces/AuraManager.js"); | ||||
Engine.LoadComponentScript("interfaces/Damage.js"); | Engine.LoadComponentScript("interfaces/Damage.js"); | ||||
Engine.LoadComponentScript("interfaces/DeathDamage.js"); | Engine.LoadComponentScript("interfaces/DeathDamage.js"); | ||||
Engine.LoadComponentScript("interfaces/TechnologyManager.js"); | Engine.LoadComponentScript("interfaces/TechnologyManager.js"); | ||||
Engine.LoadComponentScript("DeathDamage.js"); | Engine.LoadComponentScript("DeathDamage.js"); | ||||
let deadEnt = 60; | let deadEnt = 60; | ||||
let player = 1; | let player = 1; | ||||
ApplyValueModificationsToEntity = function(value, stat, ent) | ApplyValueModificationsToEntity = function(value, stat, ent) | ||||
{ | { | ||||
if (value == "DeathDamage/Pierce" && ent == deadEnt) | if (value == "DeathDamage/Damage/Pierce" && ent == deadEnt) | ||||
return stat + 200; | return stat + 200; | ||||
return stat; | return stat; | ||||
}; | }; | ||||
let template = { | let template = { | ||||
"Shape": "Circular", | "Shape": "Circular", | ||||
"Range": 10.7, | "Range": 10.7, | ||||
"FriendlyFire": "false", | "FriendlyFire": "false", | ||||
"Damage": { | |||||
"Hack": 0.0, | "Hack": 0.0, | ||||
"Pierce": 15.0, | "Pierce": 15.0, | ||||
"Crush": 35.0 | "Crush": 35.0 | ||||
} | |||||
}; | }; | ||||
let modifiedDamage = { | let modifiedDamage = { | ||||
"Hack": 0.0, | "Hack": 0.0, | ||||
"Pierce": 215.0, | "Pierce": 215.0, | ||||
"Crush": 35.0 | "Crush": 35.0 | ||||
}; | }; | ||||
▲ Show 20 Lines • Show All 41 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator