dealHealing
dealHealing(
authority,entity,healing):void
Adds amount to the entity’s health, never past its maximum, and emits
the heal as a HealedEvent. A downed character is healed and stays down
until the game removes DownedTrait, as a revive does. Healing is an
outcome, so it takes the room’s authority first, as dealDamage does:
dealHealing(step, target, { amount: 20, source: character }). An amount
below 0, or no finite number, throws, naming dealDamage as the way to
take health off, and an entity with no health throws too.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
authority |
Authority |
entity |
Entity |
healing |
Healing |
Returns
Section titled “Returns”void