EverambleGAME API / 1

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

NameTypeMeaning
amountCountHealth actually lost, after resistances.
Range: 0…2147483647; Unit: hp
definitionActorDefinitionIdDefinition 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
sourceActorRefConfirmed origin of the damage; absent for environmental sources.
Length: 1…256; Pattern: ^[\s\S]+$
targetActorRefActor 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"
}