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.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
entity |
Entity |
amount |
number |
Returns
Section titled “Returns”void