Skip to content

SummonPetEffect ​

Inherits: Effect < DatabaseResource < Resource

Summons a pet or companion entity for the user

Properties ​

intentity_id0
boolrandom_offset_spawntrue

Methods ​

voidspecific_effect_logic( effect_instance: EffectInstance )
voidon_apply_finished( effect_instance: EffectInstance )
voidcreate_summoned_entity( effect_instance: EffectInstance )
voidhandle_stack_logic( effect_instance: EffectInstance, amount_to_add: int )
Stringget_editor_description()
boolis_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