AbilityResourceEffect ​
Inherits: Effect < DatabaseResource < Resource
Modifies the resource cost and/or gain amounts on a specific ability. Examples: reduce mana cost by 50%, make ability free, increase rage generation. Reverts to original values when effect ends.
Properties ​
int | ability_id | 0 |
float | cost_amount_mod | 0.0 |
float | gain_amount_mod | 0.0 |
Methods ​
void | specific_effect_logic( effect_instance: EffectInstance ) |
void | on_stack_reapply( effect_instance: EffectInstance, old_stack_count: int, new_stack_count: int ) |
void | on_apply_finished( effect_instance: EffectInstance ) |
String | get_effect_description() |
String | get_editor_description() |
Property descriptions ​
Target Ability
int ability_id = 0 ​
The ability to modify
Resource Modification
float cost_amount_mod = 0.0 ​
Modify the ability's resource cost (+/- amount, negative = reduce cost)
float gain_amount_mod = 0.0 ​
Modify the ability's resource gain (+/- amount, positive = more gain)
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.