Table of Contents

Interface IDamageCap

Namespace
ElectricDrill.AstraHealth.Damage.Bounds
Assembly
com.electricdrill.astra-health.Runtime.dll

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.

public interface IDamageCap

Methods

GetDamageCap()

Returns the maximum damage value allowed for a single hit on this entity. The pipeline step will clamp the current damage to at most this value.

long GetDamageCap()

Returns

long

A positive long representing the damage cap.