Skip to content

HealingAppliedEvent

Healing applied — or blocked (mummy rot renders magical healing ineffective).

Full documentation: HealingAppliedEvent. Wire type: healing_applied.

Default visibility: player

Message codes: combat.healing.applied, combat.healing.blocked

JSON Schema

{
  "$defs": {
    "Visibility": {
      "description": "Who may see an event.\n\nThe wire values are `\"player\"` and `\"referee\"` \u2014 lowercase, serialized into every\nevent; changing them is a `schema_version` bump.",
      "enum": [
        "player",
        "referee"
      ],
      "title": "Visibility",
      "type": "string"
    }
  },
  "description": "Healing applied \u2014 or blocked (mummy rot renders magical healing ineffective).\n\nEmitted by [`apply_healing`][osrlib.core.combat.apply_healing] or a regeneration\ntick. `code` is `combat.healing.applied` normally, or `combat.healing.blocked`\nwhen a condition blocks it.",
  "properties": {
    "code": {
      "title": "Code",
      "type": "string"
    },
    "visibility": {
      "$ref": "#/$defs/Visibility",
      "default": "player"
    },
    "event_type": {
      "const": "healing_applied",
      "default": "healing_applied",
      "title": "Event Type",
      "type": "string"
    },
    "target_id": {
      "title": "Target Id",
      "type": "string"
    },
    "amount": {
      "title": "Amount",
      "type": "integer"
    },
    "source": {
      "title": "Source",
      "type": "string"
    }
  },
  "required": [
    "code",
    "target_id",
    "amount",
    "source"
  ],
  "title": "HealingAppliedEvent",
  "type": "object"
}