EverambleGAME API / 1

CONTENT CONTRACT · VERSION 1

repair

Repair a damaged structure with a matching repair recipe; materials are debited atomically.

Signature

{ actor: ActorRef, kind: "repair", recipe: RecipeId, target: ActorRef }

Fields

NameTypeMeaning
actorActorRefRepairing actor.
Length: 1…256; Pattern: ^[\s\S]+$
kind"repair"Discriminant
recipeRecipeIdRepair recipe of the structure.
Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: recipe
targetActorRefDamaged structure.
Length: 1…256; Pattern: ^[\s\S]+$

Validated example

{
  "health": 20,
  "kind": "repair",
  "structure": "core:barrel_structure"
}