{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cheeleong.dev/wwn-system-json/systems/project-rule.schema.json",
  "title": "WWN Major Project Rule",
  "type": "object",
  "allOf": [{ "$ref": "https://cheeleong.dev/wwn-system-json/systems/common.schema.json#/$defs/Entity" }],
  "properties": {
    "@type": { "const": "ProjectRule" },
    "projectConcept": { "type": "string" },
    "difficulty": { "type": ["integer", "string", "object"] },
    "scope": { "type": "string" },
    "opposition": { "type": "string" },
    "renownCost": { "$ref": "https://cheeleong.dev/wwn-system-json/systems/common.schema.json#/$defs/Cost" },
    "timeCost": { "type": ["integer", "string", "object"] },
    "check": { "type": "string" },
    "completion": { "type": "string" },
    "magical": { "type": "boolean" },
    "factionInteraction": { "type": "string" }
  },
  "required": ["source", "rulesText"],
  "unevaluatedProperties": false
}
