Table of Contents

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:

[RequireComponent(typeof(EntityCore))]
public class DamageFloor : MonoBehaviour, IDamageFloor
Inheritance
object
DamageFloor
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 long representing the damage floor.