EverambleGAME API / 1

CONTENT CONTRACT · VERSION 1

damage

Damage a living actor or structure by a defined damage type; resistances apply and the actual damage is recorded. The source is the event's confirmed provenance.

Signature

{ amount: PositiveHitPoints, damage_type: DamageTypeId, kind: "damage", target: ActorRef }

Fields

NameTypeMeaning
amountPositiveHitPointsDamage before resistances.
Range: 1…2147483647; Unit: hp
damage_typeDamageTypeIdDamage type selecting resistances.
Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: damage_type
kind"damage"Discriminant
targetActorRefActor the effect applies to.
Length: 1…256; Pattern: ^[\s\S]+$

Validated example

{
  "amount": 12,
  "damage_type": "core:physical",
  "kind": "damage",
  "target": "a2"
}