AddHealthPoolEffect ​
Inherits: Effect < DatabaseResource < Resource
"Absorb Shield": adds a temporary health pool (shield/barrier) to the target entity; with no pool chosen it is the built-in Shield pool, which absorbs the first X damage of any hit before health does. The pool is removed when the effect ends. Value can be scaled through combat calculation pipelines (supports crits, bonuses, etc.)
Properties ​
int | pool_definition_id | 0 |
float | base_value | 100.0 |
int | stat_id | 0 |
float | stat_multiplier | 1.0 |
CalculationPipeline | calculation_pipeline | CalculationPipeline.NONE |
StackBehavior | stack_behavior | StackBehavior.REFRESH |
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() |
Enumerations ​
enum CalculationPipeline ​
The options of calculation pipeline: none, damage done, healing done.
- NONE =
0 - DAMAGE_DONE =
1
enum StackBehavior ​
The options of stack behavior: refresh, add to value, new pool, replace.
- REFRESH =
0 - ADD_TO_VALUE =
1 - NEW_POOL =
2
Property descriptions ​
Pool Configuration
int pool_definition_id = 0 ​
The pool definition to create (defines color, behavior, overfill rules, absorption priority, etc.). 0 = the built-in Shield pool (Database.ID_SHIELD_POOL), which makes this effect a plain "absorb X damage" shield
float base_value = 100.0 ​
Base value for both current and max of the created pool
int stat_id = 0 ​
Scale base_value with originator stat (0 = disabled)
float stat_multiplier = 1.0 ​
Multiplier applied to stat value before adding to base_value
Calculation Pipeline
CalculationPipeline calculation_pipeline = CalculationPipeline.NONE ​
Run the final value through a combat calculation pipeline before applying
Stack Behavior
StackBehavior stack_behavior = StackBehavior.REFRESH ​
What happens when the effect is applied again (refresh, add the values ...).
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.