Skip to content

ResurrectEffect ​

Inherits: Effect < DatabaseResource < Resource

ResurrectEffect brings a dead entity back to life with specified health.

Properties ​

floathealth_percentage0.25

Methods ​

voidspecific_effect_logic( effect_instance: EffectInstance )
Stringget_effect_description()
Dictionaryget_resurrection_preview( target_entity: Entity )
Stringget_editor_description()
boolis_one_off_application()

Property descriptions ​

float health_percentage = 0.25 ​

The percentage of max health to restore (0.0 - 1.0)

Method descriptions ​

void specific_effect_logic( effect_instance: EffectInstance ) ​

Applies the specific logic for this effect, resurrecting the target if they are dead

String get_effect_description() ​

Enhanced tooltip

Dictionary get_resurrection_preview( target_entity: Entity ) ​

Get resurrection preview info for UI

String get_editor_description() ​

A short text for the effect editor that says what the effect does.

bool is_one_off_application() ​

What this effect does it does once, when it is applied: a loaded save does not do it again