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
| Name | Type | Meaning |
|---|---|---|
actor | ActorRef | Repairing actor. Length: 1…256; Pattern: ^[\s\S]+$ |
kind | "repair" | Discriminant |
recipe | RecipeId | Repair recipe of the structure. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: recipe |
target | ActorRef | Damaged structure. Length: 1…256; Pattern: ^[\s\S]+$ |
Validated example
{
"health": 20,
"kind": "repair",
"structure": "core:barrel_structure"
}