Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/simulation/components/tests/test_Attack.js
AttackEffects = class AttackEffects | |||||||||
bb: return some `{}` | |||||||||
Not Done Inline ActionsWhy not load the actual script? bb: Why not load the actual script? | |||||||||
Not Done Inline ActionsBecause it cannot read the files IIRC. I have to check. Freagarach: Because it cannot read the files IIRC. I have to check. | |||||||||
Not Done Inline ActionsIt indeed complains about not being able to load files. Freagarach: It indeed complains about not being able to load files. | |||||||||
Not Done Inline Actions
also Silier: also | |||||||||
Not Done Inline ActionsDon't think we need this definition at all. We load Attacking.js after all... bb: Don't think we need this definition at all. We load Attacking.js after all... | |||||||||
Not Done Inline ActionsYeah, we need it. Else we init AttacEffects.js which needs to read the JSONs, which it cannot do. Freagarach: Yeah, we need it. Else we init AttacEffects.js which needs to read the JSONs, which it cannot… | |||||||||
{ | |||||||||
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.LoadHelperScript("Player.js"); | Engine.LoadHelperScript("Player.js"); | ||||||||
Engine.LoadHelperScript("ValueModification.js"); | Engine.LoadHelperScript("ValueModification.js"); | ||||||||
Engine.LoadComponentScript("interfaces/Auras.js"); | Engine.LoadComponentScript("interfaces/Auras.js"); | ||||||||
Engine.LoadComponentScript("interfaces/Capturable.js"); | Engine.LoadComponentScript("interfaces/Capturable.js"); | ||||||||
Engine.LoadComponentScript("interfaces/ModifiersManager.js"); | Engine.LoadComponentScript("interfaces/ModifiersManager.js"); | ||||||||
Engine.LoadComponentScript("interfaces/Formation.js"); | Engine.LoadComponentScript("interfaces/Formation.js"); | ||||||||
Engine.LoadComponentScript("interfaces/Health.js"); | Engine.LoadComponentScript("interfaces/Health.js"); | ||||||||
▲ Show 20 Lines • Show All 328 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator
return some {}