Skip to content

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 ​

intpool_definition_id0
floatbase_value100.0
intstat_id0
floatstat_multiplier1.0
CalculationPipelinecalculation_pipelineCalculationPipeline.NONE
StackBehaviorstack_behaviorStackBehavior.REFRESH

Methods ​

voidspecific_effect_logic( effect_instance: EffectInstance )
voidon_apply_finished( effect_instance: EffectInstance )
Stringget_effect_description()
Stringget_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.