mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-17 22:03:56 -07:00
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.
16 lines
363 B
JavaScript
Executable file
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"
|
|
}
|
|
};
|