Skip to content

AbilityRangeEffect ​

Inherits: Effect < DatabaseResource < Resource

Modifies the targeting range of a specific ability. Writes directly to the target strategy's runtime_property_overrides. Examples: extend range on sniper shot, reduce range as a debuff, grant melee ability range boost.

Properties ​

intability_id0
floatmax_range_mod0.0

Methods ​

voidspecific_effect_logic( effect_instance: EffectInstance )
voidon_stack_reapply( effect_instance: EffectInstance, old_stack_count: int, new_stack_count: int )
voidon_apply_finished( effect_instance: EffectInstance )
Stringget_effect_description()
Stringget_editor_description()

Property descriptions ​

Target Ability

int ability_id = 0 ​

The ability to modify

Range Modification

float max_range_mod = 0.0 ​

Modify max range in units (+/- value)

Method descriptions ​

void specific_effect_logic( effect_instance: EffectInstance ) ​

What the effect does to its target when it is applied.

void on_stack_reapply( effect_instance: EffectInstance, old_stack_count: int, new_stack_count: int ) ​

Called when the effect is applied again on a target that has it (a new stack or a refresh).

void on_apply_finished( effect_instance: EffectInstance ) ​

Called when the effect ends: takes back what it did.

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.