CONTENT CONTRACT · VERSION 1
damage_applied
Committed damage reduced a living actor's health.
Signature
{ amount: Count, definition: ActorDefinitionId, kind: "damage_applied", source: (ActorRef)?, target: ActorRef }Fields
| Name | Type | Meaning |
|---|---|---|
amount | Count | Health actually lost, after resistances. Range: 0…2147483647; Unit: hp |
definition | ActorDefinitionId | Definition of the damaged actor. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: character|npc|enemy|animal|structure |
kind | "damage_applied" | Discriminant |
source | ActorRef | Confirmed origin of the damage; absent for environmental sources. Length: 1…256; Pattern: ^[\s\S]+$ |
target | ActorRef | Actor the change applies to. Length: 1…256; Pattern: ^[\s\S]+$ |
Validated example
{
"amount": 30,
"definition": "core:hill_golem",
"kind": "damage_applied",
"source": "a1",
"target": "b1"
}