Differential D1838 Diff 8952 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
Show All 36 Lines | |||||
let cmpDeathDamage = ConstructComponent(deadEnt, "DeathDamage", template); | let cmpDeathDamage = ConstructComponent(deadEnt, "DeathDamage", template); | ||||
let playersToDamage = [2, 3, 7]; | let playersToDamage = [2, 3, 7]; | ||||
let pos = new Vector2D(3, 4.2); | let pos = new Vector2D(3, 4.2); | ||||
let result = { | let result = { | ||||
"attacker": deadEnt, | "attacker": deadEnt, | ||||
"origin": pos, | "origin": pos, | ||||
"radius": template.Range, | "minRange": 0, | ||||
"maxRange": template.Range, | |||||
"shape": template.Shape, | "shape": template.Shape, | ||||
"strengths": modifiedDamage, | "strengths": modifiedDamage, | ||||
"splashBonus": null, | "splashBonus": null, | ||||
"playersToDamage": playersToDamage, | "playersToDamage": playersToDamage, | ||||
"type": "Death", | "type": "Death", | ||||
"attackerOwner": player | "attackerOwner": player | ||||
}; | }; | ||||
Show All 24 Lines |
Wildfire Games · Phabricator