CONTENT CONTRACT · VERSION 1
structure_damaged
Committed damage reduced a structure's health.
Signature
{ amount: Count, definition: StructureId, kind: "structure_damaged", source: (ActorRef)?, target: ActorRef }Fields
| Name | Type | Meaning |
|---|---|---|
amount | Count | Health actually lost. Range: 0…2147483647; Unit: hp |
definition | StructureId | Structure definition of the target. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: structure |
kind | "structure_damaged" | Discriminant |
source | ActorRef | Confirmed origin of the damage; absent for environmental sources. Length: 1…256; Pattern: ^[\s\S]+$ |
target | ActorRef | Damaged structure. Length: 1…256; Pattern: ^[\s\S]+$ |
Validated example
{
"amount": 8,
"definition": "core:wood_wall_structure",
"kind": "structure_damaged",
"source": "a2",
"target": "s1"
}