Table of Contents

Namespace ElectricDrill.AstraHealth.Heal

Classes

HealAmountContext

Represents the different numeric stages of a heal amount as it is processed: the raw requested amount, the amount after applying a heal modifier, and the final net amount applied.

HealSourceSO

Defines a heal source asset that identifies how a heal was produced (e.g. spell, potion, resurrection, system, ...). Create instances via Assets -> Create -> Astra Health / Heal Source.

LifestealAmountSelector

Selects which damage amount will be used as the basis for lifesteal calculations.

LifestealStatConfig

Configuration that associates a lifesteal Stat and HealSource with an optional amount selector.

PreHealContext

Mutable pre-heal context raised via the pre-heal game event before the heal pipeline runs. Listeners may mutate Amount, HealSource, IsCritical, CriticalMultiplier and Ignore to transform the incoming heal — e.g. amplify a heal via a buff, reroute it through a different HealSourceSO, or negate it entirely by setting Ignore (temporary heal immunity). The pipeline reads these fields after the event is dispatched.

PreHealContext.PreHealInfoStepBuilder

Concrete builder implementing the fluent step interfaces to construct a PreHealContext.

ReceivedHealContext

Immutable result of a heal operation as actually received by the target. Contains the resolved heal amount, source, involved entities and whether it was critical.

ReceivedHealContext.ReceivedHealInfoStepBuilder

Concrete fluent builder used to assemble a ReceivedHealContext. Use Builder to start.

Interfaces

IHealable

Interface for entities that can receive healing. Implementers apply healing based on the provided PreHealContext.

PreHealContext.HealInfoAmount

Builder step interface for specifying the heal amount.

PreHealContext.HealInfoSource

Builder step interface for specifying the heal source category.

PreHealContext.HealInfoTarget

Builder step interface for specifying the target entity.

ReceivedHealContext.HealInfoAmount

Builder step: provide the heal amount.

ReceivedHealContext.HealInfoSource

Builder step: provide the heal source category.

ReceivedHealContext.HealInfoTarget

Builder step: provide the target entity and finalize options.

Enums

HealOutcome

The overall result of a heal attempt on a target. Use this in ReceivedHealContext to determine whether any healing was actually applied or if the attempt was prevented (e.g. via heal-immunity).

LifestealBasisMode

Specifies which damage value should be used as the basis for lifesteal calculations.

StepValuePoint

Selects whether to use the pre-step or post-step value when Step is selected.