Skip to content

AbilityCooldownEffect ​

Inherits: Effect < DatabaseResource < Resource

Modifies cooldown properties on a specific ability. Cooldown duration modifier reverts when the effect ends. Active timer reduction and cooldown reset are permanent (never reverted).

Properties ​

intability_id0
floatcooldown_duration_mod0.0
floatcooldown_current_reduction0.0
boolcooldown_resetfalse

Methods ​

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

Property descriptions ​

Target Ability

int ability_id = 0 ​

The ability to modify

Cooldown Duration

float cooldown_duration_mod = 0.0 ​

Modify the ability's cooldown duration in seconds (+/-)

Active Timer

float cooldown_current_reduction = 0.0 ​

Immediately reduce the active cooldown timer by this many seconds (positive = reduce)

bool cooldown_reset = false ​

Immediately reset the active cooldown timer and set ability to READY

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.

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.