Skip to content

MinimumApplicationAreaEffect ​

Inherits: AreaEffect < CollisionEffect < CompositeEffect < Effect < DatabaseResource < Resource

Inherited by: AreaRandomizeTargetEffect, EqualizeAreaEffect

AreaEffect with a guaranteed minimum number of effect applications. When fewer valid targets exist than minimum_applications, the effect wraps back through already-hit targets until the minimum is met.

Description ​

Useful for abilities that must always fire N times — e.g. a 3-bounce lightning that chains back on itself with only 1 target, or a heal that always builds N stacks even on a single target. Also works naturally with stacking effects. Subclasses (EqualizeAreaEffect, AreaRandomizeTargetEffect) honour this minimum via their own application loops, calling _fill_minimum_applications after the main pass.

Properties ​

intminimum_applications0
intmaximum_applications0

Methods ​

voidapply_child_effects_to_target( effect_instance: EffectInstance, target: Variant )
Stringget_effect_description()
Stringget_editor_description()

Property descriptions ​

Applications

int minimum_applications = 0 ​

Minimum number of effect applications per activation. 0 = disabled. When the ordered target list has fewer entries than this value, the effect cycles back through the list. Deliberately bypasses prevent_duplicate_hits — intentional.

int maximum_applications = 0 ​

Maximum number of effect applications over the whole life of this effect, repeat hits included. 0 = unlimited. Max targets limits how many entities are chosen; this limits how many times the child effects are applied in all: a pulse that heals at most 5 times, or a persistent area that gives its effect to the first 3 entrants and then stops. When it is lower than the minimum, the maximum wins.

Method descriptions ​

void apply_child_effects_to_target( effect_instance: EffectInstance, target: Variant ) ​

Every way a collision effect applies its child effects goes through here, so the maximum holds for all of them.

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.