{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cheeleong.dev/wwn-system-json/systems/foe.schema.json",
  "title": "WWN Foe",
  "type": "object",
  "allOf": [{ "$ref": "https://cheeleong.dev/wwn-system-json/systems/common.schema.json#/$defs/Entity" }],
  "properties": {
    "@type": { "enum": ["Foe", "FoeTemplate"] },
    "foeKind": { "type": "string" },
    "hitDice": { "type": ["integer", "string", "object"] },
    "armorClass": { "type": ["integer", "string"] },
    "attackBonus": { "type": ["integer", "string"] },
    "attacks": { "type": "array", "items": { "type": "object" } },
    "damage": { "type": ["string", "object"] },
    "move": { "type": ["integer", "string"] },
    "morale": { "type": ["integer", "string"] },
    "instinct": { "type": ["integer", "string"] },
    "savingThrow": { "type": ["integer", "string"] },
    "skills": { "type": "array", "items": { "$ref": "https://cheeleong.dev/wwn-system-json/systems/common.schema.json#/$defs/NodeReference" } },
    "specialAbilities": { "type": "array", "items": { "type": ["string", "object"] } },
    "tactics": { "type": "array", "items": { "type": "string" } }
  },
  "required": ["source", "foeKind"],
  "unevaluatedProperties": false
}
