Namespace ElectricDrill.AstraHealth.Damage.Bounds
Classes
- DamageCap
MonoBehaviour that provides an upper bound on the damage this entity can receive per hit. Attach it alongside ElectricDrill.AstraHealth.Damage.Bounds.DamageCap.EntityHealth on any entity that needs a damage cap.
Configure via the Inspector by choosing a DamageBoundSource:
- FixedValue — a constant
longvalue. - HealthScaling — inline health metric + percentage.
- ScalingComponent — any ElectricDrill.AstraRpgFramework.Scaling.ScalingComponentSO asset.
- FixedValue — a constant
- DamageFloor
MonoBehaviour that provides a lower bound (minimum damage) this entity must receive per hit. Attach it alongside ElectricDrill.AstraHealth.Damage.Bounds.DamageFloor.EntityHealth on any entity that needs a guaranteed minimum damage.
Configure via the Inspector by choosing a DamageBoundSource:
- FixedValue — a constant
longvalue. - HealthScaling — inline health metric + percentage.
- ScalingComponent — any ElectricDrill.AstraRpgFramework.Scaling.ScalingComponentSO asset.
- FixedValue — a constant
Interfaces
- IDamageCap
Contract for components that provide an upper bound (cap) on the damage an entity can receive from a single hit.
Attach a component implementing this interface to an entity so that ApplyDamageCapStep can query it during the damage calculation pipeline.
- IDamageFloor
Contract for components that provide a lower bound (floor) on the damage an entity receives from a single hit.
Attach a component implementing this interface to an entity so that ApplyDamageFloorStep can query it during the damage calculation pipeline.
Enums
- DamageBoundSource
Determines how a damage bound value (cap or floor) is resolved at runtime.