1
0
forked from mirrors/0ad
Files
0ad/binaries/data/mods/public/simulation/components/interfaces/Resistance.js
T
Freagarach 0f91c5ac61 Rename Armour to Resistance and change the way it is processed.
- Renames Armour-node to Resistance.
- Support resistance against Capture.
- Puts resistance against effects in separate nodes.
- Some cleaning.

Differential Revision: D2229
Reviewed by: @bb (accepted), @wraitii.
Comments by: @Stan, @Nescio.
This was SVN commit r24001.
2020-08-27 10:24:59 +00:00

21 lines
547 B
JavaScript

Engine.RegisterInterface("Resistance");
/**
* Message of the form { "entity": entity, "invulnerability": true/false }
*/
Engine.RegisterMessageType("InvulnerabilityChanged");
/**
* Message of the form {
* "type": string,
* "target": number,
* "attacker": attacker,
* "attackerOwner": number,
* "damage": number,
* "capture": number,
* "statusEffects": Object[],
* "fromStatusEffect": boolean }
* sent from Attacking.js-helper to the target entity, each time the target is damaged.
*/
Engine.RegisterMessageType("Attacked");