Worldshaper/content/schema/npc_templates.schema.json

84 lines
1.8 KiB
JSON
Raw Normal View History

2026-06-26 18:18:14 -04:00
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "NPC Template Definitions",
"type": "object",
"additionalProperties": false,
"required": ["schemaVersion", "npcTemplates"],
"properties": {
"schemaVersion": {
"type": "integer",
"minimum": 1
},
"npcTemplates": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"id",
"name",
"description",
"title",
"faction",
"spriteId",
"defaultDialogueId",
"shopInventoryId",
"lootTableId",
"abilities",
"passiveAbilities",
"flags"
],
"properties": {
"id": {
"type": "string",
"minLength": 1
},
"name": {
"type": "string",
"minLength": 1
},
"description": {
"type": "string"
},
"title": {
"type": "string"
},
"faction": {
"type": "string"
},
"spriteId": {
"type": "string"
},
"defaultDialogueId": {
"type": "string"
},
"shopInventoryId": {
"type": "string"
},
"lootTableId": {
"type": "string"
},
"abilities": {
"type": "array",
"items": {
"type": "string"
}
},
"passiveAbilities": {
"type": "array",
"items": {
"type": "string"
}
},
"flags": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
}
}
}