mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-07-06 23:15:47 -07:00
Status effect can apply modifier to the entity (armour strength, walking speed, ...) This is also hiding status effect icons by default in selection detail. Fixing smaller related bugs. Differential Revision: https://code.wildfiregames.com/D2281 Patch by: @Freagarach Comments by: Stan, wraitii This was SVN commit r23448.
16 lines
366 B
JavaScript
Executable file
16 lines
366 B
JavaScript
Executable file
// TODO: could be worth putting this in json files someday
|
|
const g_EffectTypes = ["Damage", "Capture", "ApplyStatus"];
|
|
const g_EffectReceiver = {
|
|
"Damage": {
|
|
"IID": "IID_Health",
|
|
"method": "TakeDamage"
|
|
},
|
|
"Capture": {
|
|
"IID": "IID_Capturable",
|
|
"method": "Capture"
|
|
},
|
|
"ApplyStatus": {
|
|
"IID": "IID_StatusEffectsReceiver",
|
|
"method": "ApplyStatus"
|
|
}
|
|
};
|