Differential D2065 Diff 8931 ps/trunk/binaries/data/mods/public/simulation/components/tests/test_DeathDamage.js
Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/binaries/data/mods/public/simulation/components/tests/test_DeathDamage.js
Show First 20 Lines • Show All 46 Lines • ▼ Show 20 Lines | let result = { | ||||
"strengths": modifiedDamage, | "strengths": modifiedDamage, | ||||
"splashBonus": null, | "splashBonus": null, | ||||
"playersToDamage": playersToDamage, | "playersToDamage": playersToDamage, | ||||
"type": "Death", | "type": "Death", | ||||
"attackerOwner": player | "attackerOwner": player | ||||
}; | }; | ||||
AddMock(SYSTEM_ENTITY, IID_Damage, { | AddMock(SYSTEM_ENTITY, IID_Damage, { | ||||
"CauseSplashDamage": data => TS_ASSERT_UNEVAL_EQUALS(data, result), | "CauseDamageOverArea": data => TS_ASSERT_UNEVAL_EQUALS(data, result), | ||||
"GetPlayersToDamage": (owner, friendlyFire) => playersToDamage | "GetPlayersToDamage": (owner, friendlyFire) => playersToDamage | ||||
}); | }); | ||||
AddMock(deadEnt, IID_Position, { | AddMock(deadEnt, IID_Position, { | ||||
"GetPosition2D": () => pos, | "GetPosition2D": () => pos, | ||||
"IsInWorld": () => true | "IsInWorld": () => true | ||||
}); | }); | ||||
Show All 14 Lines |
Wildfire Games · Phabricator