ImmunityEffect ​
Inherits: Effect < DatabaseResource < Resource
ImmunityEffect grants or removes immunity to certain types of effects or damage for the target entity. Duration is now handled by the effect's time strategy.
Properties ​
bool | immunity_gain | true |
int | immunity_affected | 0 |
Methods ​
void | specific_effect_logic( effect_instance: EffectInstance ) |
void | on_apply_finished( effect_instance: EffectInstance ) |
String | get_effect_description() |
String | get_editor_description() |
Property descriptions ​
Immunity Settings
bool immunity_gain = true ​
If false, removes immunity instead of granting it
int immunity_affected = 0 ​
Name of the immunity to grant/remove
Method descriptions ​
void specific_effect_logic( effect_instance: EffectInstance ) ​
Applies the specific logic for this effect, granting or removing immunity
void on_apply_finished( effect_instance: EffectInstance ) ​
Handles the finishing of the effect, reversing the immunity change
String get_effect_description() ​
Get the effect description for tooltips
String get_editor_description() ​
A short text for the effect editor that says what the effect does.