AbilityBoostEffect ​
Inherits: Effect < DatabaseResource < Resource
AbilityBoostEffect raises the damage or healing the target does with some abilities or effects: "your Fireball does 20 % more", "your heals over time are 15 % stronger". Put it in a passive ability or a talent for a permanent boost, or make it a buff for a temporary one.
Description ​
It names the abilities and effects it is about. An effect id also counts for the effects inside it: the id of a composite effect boosts every damage or heal effect it applies. With neither list the boost applies to everything the target does (the lists are what makes it a mastery). The boost is added to the doer's damage done or healing done calculation after the modifiers of its stats, as a step you can see in the log. The target is the entity that deals the damage (by default the user: Applies to = Self).
Properties ​
Boosts | boosts | Boosts.DAMAGE |
Array[int] | ability_ids | [] |
Array[int] | effect_ids | [] |
float | percent_bonus | 10.0 |
float | flat_bonus | 0.0 |
Methods ​
void | specific_effect_logic( effect_instance: EffectInstance ) |
void | on_apply_finished( effect_instance: EffectInstance ) |
bool | matches( hit_ability_id: int, hit_effect_ids: Array ) |
bool | boosts_damage() |
bool | boosts_healing() |
String | get_effect_description() |
String | get_editor_description() |
Array[Dictionary] | validate() |
Enumerations ​
enum Boosts ​
The options of boosts: damage, healing, both.
- DAMAGE =
0- Damage done - HEALING =
1- Healing done - BOTH =
2- Damage done and healing done
Property descriptions ​
Boost
Boosts boosts = Boosts.DAMAGE ​
What is boosted: the damage the target deals, the healing it does, or both
Array[int] ability_ids = [] ​
The abilities that are boosted (Ability ids). Empty with no effects either = everything
Array[int] effect_ids = [] ​
The effects that are boosted (Effect ids), and the effects inside them if they are composite effects
float percent_bonus = 10.0 ​
The boost in percent: 20 = 20 % more. Each stack of the effect adds this again
float flat_bonus = 0.0 ​
A flat amount added before the percentage, for each stack
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.
bool matches( hit_ability_id: int, hit_effect_ids: Array ) ​
Does the boost apply to what the doer is doing? The ability and the effects come from the context of the calculation
bool boosts_damage() ​
Does the boost raise damage?
bool boosts_healing() ​
Does the boost raise healing?
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.
Array[Dictionary] validate() ​
Checks the settings of the effect. Gives the problems found (empty when it is fine).