SummonPetEffect ​
Inherits: Effect < DatabaseResource < Resource
Summons a pet or companion entity for the user
Properties ​
int | entity_id | 0 |
bool | random_offset_spawn | true |
Methods ​
void | specific_effect_logic( effect_instance: EffectInstance ) |
void | on_apply_finished( effect_instance: EffectInstance ) |
void | create_summoned_entity( effect_instance: EffectInstance ) |
void | handle_stack_logic( effect_instance: EffectInstance, amount_to_add: int ) |
String | get_editor_description() |
bool | is_one_off_application() |
Property descriptions ​
int entity_id = 0 ​
The entity ID to summon
bool random_offset_spawn = true ​
Spawn with random offset around user
Method descriptions ​
void specific_effect_logic( effect_instance: EffectInstance ) ​
What the effect does to its target when it is applied.
void on_apply_finished( effect_instance: EffectInstance ) ​
Called when the effect ends: takes back what it did.
void create_summoned_entity( effect_instance: EffectInstance ) ​
Makes the pet in the world for the user.
void handle_stack_logic( effect_instance: EffectInstance, amount_to_add: int ) ​
Handle effect-specific stacking logic (called by EffectInstance)
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