EverambleGAME API / 1

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

NameTypeMeaning
amountPositiveCountPositive whole units restored.
Range: 1…2147483647; Unit: count
kind"restore_need"Discriminant
needNeedBody resource refilled.
targetActorRefActor 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"
}