Namespace ElectricDrill.AstraHealth.Core
Classes
- EntityHealth
Manages the health, damage, and healing mechanics for an entity. Handles damage calculation, health regeneration, barriers (temporary HP), and death events.
- EntityPassiveHpRegeneration
Adds passive health regeneration to an entity over time. Attach this component to any entity that should automatically regenerate health. The regeneration amount per tick is driven by the PassiveHealthRegenerationStat and the tick interval by PassiveHealthRegenerationInterval. Entities that do not require passive regeneration should not carry this component.
Interfaces
- IReactable
Marks a context as carrying a reactability flag that signals whether the receiver of the associated event should act on it.
First-order events (direct attacks, skills, abilities) set IsReactable to
true. Secondary events produced by counter-damage actions, passive modifiers, or other reactive effects set it tofalseto prevent further downstream reactions and break potential infinite chains.