Skip to content

AbsorbWithPoolEffect ​

Inherits: Effect < DatabaseResource < Resource

"Absorb Damage With Pool": for as long as the effect lasts, a pool the target already has (mana, rage ...) also takes part of the damage it suffers. A mage's mana shield turns the mana bar into a second health bar: 50 % of every hit is paid for with mana, 2 damage per point. The pool is not created or removed, only given a damage layer (see DamageLayer); the layer goes away when the effect ends or, if wanted, when the pool runs empty. See docs/systems/entity-stats.md, section 26.

Properties ​

intpool_definition_id0
floatpercent100.0
floatdamage_per_point1.0
floatmax_damage_per_hit0.0
Array[int]damage_types[]
boolcounts_as_mitigationtrue
intpriority50
boolends_when_emptytrue

Methods ​

voidspecific_effect_logic( effect_instance: EffectInstance )
voidon_apply_finished( effect_instance: EffectInstance )
Stringget_effect_description()
Stringget_editor_description()

Property descriptions ​

Pool

int pool_definition_id = 0 ​

The pool of the target that absorbs (a mana pool). It must exist on the target

Absorption

float percent = 100.0 ​

The share (0 to 100) of every hit sent to the pool; the rest goes on to the next layer (shield, health)

float damage_per_point = 1.0 ​

Damage absorbed per point of the pool: 0.5 means each point of mana absorbs 2 damage

float max_damage_per_hit = 0.0 ​

The most damage taken from one hit (0 = no limit)

Array[int] damage_types = [] ​

The damage types absorbed (none ticked = all)

bool counts_as_mitigation = true ​

Damage absorbed counts as mitigation (like a shield) and not as damage taken (like health): leech, threat and the combat log see it that way

int priority = 50 ​

Layers with a higher priority absorb first: 0 = health, 50 = after shields (100) but before health

bool ends_when_empty = true ​

End the effect (and the layer) as soon as the pool is empty

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.