Class DamageFloor
- Namespace
- ElectricDrill.AstraHealth.Damage.Bounds
- Assembly
- com.electricdrill.astra-health.Runtime.dll
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.
[RequireComponent(typeof(EntityCore))]
public class DamageFloor : MonoBehaviour, IDamageFloor
- Inheritance
-
objectDamageFloor
- Implements
Methods
GetDamageFloor()
Returns the minimum damage value guaranteed for a single hit on this entity. The pipeline step will raise the current damage to at least this value.
public long GetDamageFloor()
Returns
- long
A positive
longrepresenting the damage floor.