Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/simulation/helpers/tests/test_Attacking.js
AttackEffects = class AttackEffects | |||||
{ | |||||
constructor() {} | |||||
Receivers() | |||||
{ | |||||
return [{ | |||||
"type": "Damage", | |||||
"IID": "IID_Health", | |||||
"method": "TakeDamage" | |||||
}, | |||||
{ | |||||
"type": "Capture", | |||||
"IID": "IID_Capturable", | |||||
"method": "Capture" | |||||
}, | |||||
{ | |||||
"type": "ApplyStatus", | |||||
"IID": "IID_StatusEffectsReceiver", | |||||
"method": "ApplyStatus" | |||||
}]; | |||||
} | |||||
}; | |||||
Engine.LoadHelperScript("Attacking.js"); | Engine.LoadHelperScript("Attacking.js"); | ||||
Engine.LoadComponentScript("interfaces/Capturable.js"); | Engine.LoadComponentScript("interfaces/Capturable.js"); | ||||
Engine.LoadComponentScript("interfaces/Health.js"); | Engine.LoadComponentScript("interfaces/Health.js"); | ||||
Engine.LoadComponentScript("interfaces/Promotion.js"); | Engine.LoadComponentScript("interfaces/Promotion.js"); | ||||
Engine.LoadComponentScript("interfaces/Resistance.js"); | Engine.LoadComponentScript("interfaces/Resistance.js"); | ||||
Engine.LoadComponentScript("interfaces/StatusEffectsReceiver.js"); | Engine.LoadComponentScript("interfaces/StatusEffectsReceiver.js"); | ||||
// Unit tests for the Attacking helper. | // Unit tests for the Attacking helper. | ||||
▲ Show 20 Lines • Show All 128 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator