0ad/binaries/data/mods/public/globalscripts/AttackEffects.js
wraitii 16b452cf91 Generalise Attack effects. All attacks, including death damage and splash, can deal any number of attack effects (damaging, capture, giving status effects.)
This moves most of what was in the Damage system component to a helper,
and renames that component DelayedDamage.
It also introduces a new global script with all possible attack effects.

Comments Taken From: Freagarach, Stan, bb

Differential Revision: https://code.wildfiregames.com/D2092
This was SVN commit r22754.
2019-08-22 18:00:33 +00:00

16 lines
363 B
JavaScript
Executable file

// TODO: could be worth putting this in json files someday
const g_EffectTypes = ["Damage", "Capture", "GiveStatus"];
const g_EffectReceiver = {
"Damage": {
"IID": "IID_Health",
"method": "TakeDamage"
},
"Capture": {
"IID": "IID_Capturable",
"method": "Capture"
},
"GiveStatus": {
"IID": "IID_StatusEffectsReceiver",
"method": "GiveStatus"
}
};