CONTENT CONTRACT · VERSION 1
heal
Restore positive HP to a living actor, capped at max_health. Does not revive.
Signature
{ amount: PositiveHitPoints, kind: "heal", target: ActorRef }Fields
| Name | Type | Meaning |
|---|---|---|
amount | PositiveHitPoints | Positive health restored, in whole hit points. Range: 1…2147483647; Unit: hp |
kind | "heal" | Discriminant |
target | ActorRef | Actor instance selected by the item-use target contract. Length: 1…256; Pattern: ^[\s\S]+$ |
Validated example
{
"amount": 25,
"kind": "heal",
"target": "a1"
}