Differential D2270 Diff 11539 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 39 Lines | |||||
let pos = new Vector2D(3, 4.2); | let pos = new Vector2D(3, 4.2); | ||||
let result = { | let result = { | ||||
"type": "Death", | "type": "Death", | ||||
"attackData": effects, | "attackData": effects, | ||||
"attacker": deadEnt, | "attacker": deadEnt, | ||||
"attackerOwner": player, | "attackerOwner": player, | ||||
"origin": pos, | "origin": pos, | ||||
"radius": template.Range, | "minRange": 0, | ||||
"maxRange": template.Range, | |||||
"shape": template.Shape, | "shape": template.Shape, | ||||
"friendlyFire": false | "friendlyFire": false | ||||
}; | }; | ||||
Attacking.CauseDamageOverArea = data => TS_ASSERT_UNEVAL_EQUALS(data, result); | Attacking.CauseDamageOverArea = data => TS_ASSERT_UNEVAL_EQUALS(data, result); | ||||
Attacking.GetPlayersToDamage = () => playersToDamage; | Attacking.GetPlayersToDamage = () => playersToDamage; | ||||
AddMock(deadEnt, IID_Position, { | AddMock(deadEnt, IID_Position, { | ||||
Show All 18 Lines |
Wildfire Games · Phabricator