Table of Contents

Interface IStatusEffectBehavior

Namespace
AshesOfVelsingrad.Systems
Assembly
Ashes of Velsingrad.dll

Defines the behavior contract for status effects applied to an entity.

public interface IStatusEffectBehavior

Remarks

IStatusEffectBehavior is implemented by classes that react to status effect events such as damage, healing, stat modifiers, control effects, or revival.

Each method is called by the status effect or combat system when a specific effect-related event occurs, allowing custom logic to be executed (visual feedback, stat updates, triggers, etc.).

Methods

OnEffectControlApplied()

Called when a control effect (e.g. stun, silence, root) is applied to the entity.

void OnEffectControlApplied()

OnEffectControlRemoved()

Called when a control effect is removed from the entity.

void OnEffectControlRemoved()

OnEffectDamage(ModifierType, float)

Called when a damage effect is applied to the entity.

void OnEffectDamage(AovDataStructures.ModifierType modifierType, float amount)

Parameters

modifierType AovDataStructures.ModifierType

The type of modifier responsible for the damage (e.g. Flat, Percent).

amount float

The amount of damage applied.

OnEffectHeal(float)

Called when a healing effect is applied to the entity.

void OnEffectHeal(float amount)

Parameters

amount float

The amount of health restored.

OnEffectModifierApplied(StatTypeWithModifier, ModifierType, float)

Called when a stat modifier effect is applied to the entity.

void OnEffectModifierApplied(AovDataStructures.StatTypeWithModifier statTypeWithModifier, AovDataStructures.ModifierType modifierType, float amount)

Parameters

statTypeWithModifier AovDataStructures.StatTypeWithModifier

The affected stat.

modifierType AovDataStructures.ModifierType

The type of modifier applied.

amount float

The value of the applied modifier.

OnEffectModifierRemoved(StatTypeWithModifier, ModifierType, float)

Called when a stat modifier effect is removed from the entity.

void OnEffectModifierRemoved(AovDataStructures.StatTypeWithModifier statTypeWithModifier, AovDataStructures.ModifierType modifierType, float amount)

Parameters

statTypeWithModifier AovDataStructures.StatTypeWithModifier

The affected stat.

modifierType AovDataStructures.ModifierType

The type of modifier being removed.

amount float

The value of the removed modifier.

OnEffectRevive(ModifierType, float)

Called when a revive effect is applied to the entity.

void OnEffectRevive(AovDataStructures.ModifierType modifierType, float amount)

Parameters

modifierType AovDataStructures.ModifierType

The type of modifier responsible for the revive effect.

amount float

The amount of health restored upon revival.