CONTENT CONTRACT · VERSION 1
restore_need
Refill a positive amount of hunger or stamina of a living actor, capped at its maximum.
Signature
{ amount: PositiveCount, kind: "restore_need", need: Need, target: ActorRef }Fields
| Name | Type | Meaning |
|---|---|---|
amount | PositiveCount | Positive whole units restored. Range: 1…2147483647; Unit: count |
kind | "restore_need" | Discriminant |
need | Need | Body resource refilled. |
target | ActorRef | Actor instance selected by the item-use target contract. Length: 1…256; Pattern: ^[\s\S]+$ |
Validated example
{
"amount": 30,
"kind": "restore_need",
"need": "hunger",
"target": "a1"
}