Skip to content

dealDamage

dealDamage(entity, amount): void

Defined in: packages/engine/src/gameplay/behaviours/systems.ts:130

Takes amount off the entity’s health, never below zero; the reap at the end of the step is what removes it.

Parameter Type
entity Entity
amount number

void