Skip to content

CharmEffect ​

Inherits: Effect < DatabaseResource < Resource

Temporarily changes the target's faction to match the originator's faction Stores the original faction in runtime data for restoration when effect ends TODO: Not fully implemented, need to do some work on StateLogic & Nameplates to change colour

Methods ​

voidspecific_effect_logic( effect_instance: EffectInstance )
voidon_apply_finished( effect_instance: EffectInstance )
Stringget_effect_description()
Stringget_editor_description()

Method descriptions ​

void specific_effect_logic( effect_instance: EffectInstance ) ​

Apply charm - change target's faction to originator's faction

void on_apply_finished( effect_instance: EffectInstance ) ​

When effect is removed, restore original faction

String get_effect_description() ​

The text of the effect for tooltips, with its values filled in.

String get_editor_description() ​

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