AddResourcePoolEffect ​
Inherits: Effect < DatabaseResource < Resource
Adds a temporary resource pool to the target entity. Useful for granting bonus mana, rage, energy, or custom resources. The pool is removed when the effect ends.
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_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, replace.
- REFRESH =
0
Property descriptions ​
Pool Configuration
int pool_definition_id = 0 ​
The resource pool definition to create
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 ​
REFRESH keeps pool alive and resets duration. REPLACE removes and recreates it.
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.