Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/simulation/components/tests/test_Damage.js
Show First 20 Lines • Show All 149 Lines • ▼ Show 20 Lines | let TestLinearSplashDamage = function() | ||||
const origin = new Vector2D(0, 0); | const origin = new Vector2D(0, 0); | ||||
let data = { | let data = { | ||||
"attacker": attacker, | "attacker": attacker, | ||||
"origin": origin, | "origin": origin, | ||||
"radius": 10, | "radius": 10, | ||||
"shape": "Linear", | "shape": "Linear", | ||||
"strengths": { "hack" : 100, "pierce" : 0, "crush": 0 }, | "strengths": { "hack" : 100, "pierce" : 0, "crush": 0 }, | ||||
"multiplier": 1, | |||||
"direction": new Vector3D(1, 747, 0), | "direction": new Vector3D(1, 747, 0), | ||||
"playersToDamage": [2], | "playersToDamage": [2], | ||||
"type": "Ranged", | "type": "Ranged", | ||||
"attackerOwner": attackerOwner | "attackerOwner": attackerOwner | ||||
}; | }; | ||||
let fallOff = function(x,y) | let fallOff = function(x,y) | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 57 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator