taloria/game/data/_schema.json

577 lines
11 KiB
JSON

{
"schema": 1,
"hinweis": "Prüfgrundlage für game/data/**. Gelesen von tools/validate_data.py (Python) und von ContentDB (GDScript). Beschreibt Felder und die Effekt-Vokabel; Spielmechanik steht hier nicht.",
"enums": {
"attribute": [
"str",
"dex",
"con",
"int",
"wis",
"cha"
],
"save": [
"fort",
"ref",
"will"
],
"school": [
"arcane",
"divine"
],
"ability_type": [
"passive",
"active",
"passive_skill_check",
"active_skill_check"
],
"targets": [
"self",
"single",
"ally",
"area",
"object",
"ground"
],
"item_type": [
"weapon",
"armor",
"shield",
"misc"
],
"terrain": [
"strasse",
"gras",
"wald",
"huegel",
"gebirge",
"dungeon",
"stadt"
],
"kreaturklasse": [
"klein",
"klein+",
"mittel",
"gross",
"riesig",
"boss"
],
"map_kind": [
"overland",
"town",
"dungeon"
],
"bonus_target": [
"ac",
"attack",
"save",
"skill",
"initiative",
"damage",
"sight"
]
},
"ops": {
"damage": {
"pflicht": [
"amount"
],
"optional": [
"type",
"auto_hit",
"save",
"save_effect",
"dc",
"on"
]
},
"heal": {
"pflicht": [
"amount"
],
"optional": [
"affects"
]
},
"condition": {
"pflicht": [],
"eines_von": [
"add",
"remove"
],
"optional": [
"save",
"dc",
"duration",
"only",
"hit_dice_total",
"on"
]
},
"bonus": {
"pflicht": [
"target"
],
"eines_von": [
"value",
"multiplier"
],
"optional": [
"save",
"skill",
"when",
"per",
"max",
"per_round",
"affects"
]
},
"move": {
"pflicht": [
"mode"
],
"optional": [
"tiles"
]
},
"summon": {
"pflicht": [
"monster",
"count"
],
"verweis": {
"monster": "monsters"
}
},
"light": {
"pflicht": [
"radius"
],
"optional": [
"duration"
]
},
"grant_spells": {
"pflicht": [
"school"
]
},
"extra_attack": {
"pflicht": [
"count"
]
},
"resource": {
"pflicht": [
"pool",
"delta"
]
},
"message": {
"pflicht": [
"text_id"
]
},
"turn_undead": {
"pflicht": [
"duration"
],
"optional": [
"only"
]
},
"immunity": {
"pflicht": [
"against"
]
}
},
"typen": {
"races": {
"datei": "races.json",
"felder": {
"name": {
"typ": "string",
"pflicht": true
},
"choice_bonus": {
"typ": "dict"
},
"attribute_mods": {
"typ": "dict",
"schluessel": "attribute",
"werte": "int"
},
"abilities": {
"typ": "list",
"verweis": "abilities"
}
}
},
"classes": {
"datei": "classes.json",
"felder": {
"name": {
"typ": "string",
"pflicht": true
},
"hit_die": {
"typ": "int",
"pflicht": true,
"min": 4,
"max": 12
},
"hp_per_level": {
"typ": "list",
"pflicht": true,
"laenge": 5,
"werte": "int"
},
"attack_per_level": {
"typ": "list",
"pflicht": true,
"laenge": 5,
"werte": "int"
},
"save_bonus": {
"typ": "dict",
"pflicht": true,
"schluessel": "save",
"werte": "int"
},
"skill_points": {
"typ": "int",
"pflicht": true
},
"trained_skills": {
"typ": "list",
"verweis": "skills"
},
"weapons": {
"typ": "list",
"verweis": "items"
},
"armor": {
"typ": "list",
"verweis": "items"
},
"spell_slots": {
"typ": "dict",
"nullable": true
},
"features": {
"typ": "list",
"element": {
"id": {
"typ": "string",
"verweis": "abilities"
},
"level": {
"typ": "int",
"pflicht": true
}
}
}
}
},
"skills": {
"datei": "skills.json",
"felder": {
"name": {
"typ": "string",
"pflicht": true
},
"attribute": {
"typ": "string",
"pflicht": true,
"enum": "attribute"
},
"trained_bonus": {
"typ": "int",
"pflicht": true
}
}
},
"abilities": {
"datei": "abilities.json",
"felder": {
"name": {
"typ": "string",
"pflicht": true
},
"type": {
"typ": "string",
"pflicht": true,
"enum": "ability_type"
},
"cost": {
"typ": "dict"
},
"targets": {
"typ": "string",
"enum": "targets"
},
"range": {
"typ": "int"
},
"effects": {
"typ": "list",
"pflicht": true,
"effekte": true
}
}
},
"spells": {
"datei": "spells.json",
"felder": {
"name": {
"typ": "string",
"pflicht": true
},
"level": {
"typ": "int",
"pflicht": true,
"min": 1,
"max": 3
},
"school": {
"typ": "string",
"pflicht": true,
"enum": "school"
},
"range": {
"typ": "int",
"pflicht": true
},
"targets": {
"typ": "string",
"pflicht": true,
"enum": "targets"
},
"area": {
"typ": "dict"
},
"duration": {
"typ": "dict"
},
"effects": {
"typ": "list",
"pflicht": true,
"effekte": true
}
}
},
"items": {
"datei": "items.json",
"felder": {
"name": {
"typ": "string",
"pflicht": true
},
"type": {
"typ": "string",
"pflicht": true,
"enum": "item_type"
},
"damage": {
"typ": "string"
},
"ac_bonus": {
"typ": "int"
},
"value": {
"typ": "int",
"pflicht": true
},
"weight": {
"typ": "int",
"pflicht": true
},
"effects": {
"typ": "list",
"effekte": true
}
}
},
"monsters": {
"datei": "monsters.json",
"felder": {
"name": {
"typ": "string",
"pflicht": true
},
"ac": {
"typ": "int",
"pflicht": true
},
"hp": {
"typ": "int",
"pflicht": true,
"min": 1
},
"attack_bonus": {
"typ": "int",
"pflicht": true
},
"damage": {
"typ": "string",
"pflicht": true
},
"move": {
"typ": "int",
"pflicht": true
},
"size": {
"typ": "list",
"werte": "int",
"laenge": 2
},
"klasse": {
"typ": "string",
"pflicht": true,
"enum": "kreaturklasse"
},
"tags": {
"typ": "list"
},
"sprite": {
"typ": "asset",
"pflicht": true,
"asset": "creatures"
},
"abilities": {
"typ": "list",
"verweis": "abilities"
}
}
},
"encounters": {
"datei": "encounters.json",
"felder": {
"name": {
"typ": "string",
"pflicht": true
},
"terrain": {
"typ": "string",
"pflicht": true,
"enum": "terrain"
},
"monsters": {
"typ": "list",
"pflicht": true,
"element": {
"id": {
"typ": "string",
"verweis": "monsters"
},
"count": {
"typ": "int",
"pflicht": true,
"min": 1
}
}
},
"reward": {
"typ": "dict"
}
}
},
"npcs": {
"datei": "npcs.json",
"felder": {
"name": {
"typ": "string",
"pflicht": true
},
"sprite": {
"typ": "asset",
"pflicht": true,
"asset": "npcs"
},
"greeting": {
"typ": "string",
"pflicht": true
},
"topics": {
"typ": "list"
},
"shop": {
"typ": "list",
"verweis": "items"
}
}
},
"maps": {
"glob": "maps/*.json",
"felder": {
"name": {
"typ": "string",
"pflicht": true
},
"kind": {
"typ": "string",
"pflicht": true,
"enum": "map_kind"
},
"width": {
"typ": "int",
"pflicht": true,
"min": 1
},
"height": {
"typ": "int",
"pflicht": true,
"min": 1
},
"legend": {
"typ": "dict",
"pflicht": true
},
"tiles": {
"typ": "list",
"pflicht": true,
"laenge": "height",
"zeilen": "width"
},
"objects": {
"typ": "list",
"element": {
"id": {
"typ": "asset",
"asset": "objects"
},
"x": {
"typ": "int",
"pflicht": true
},
"y": {
"typ": "int",
"pflicht": true
}
}
},
"npcs": {
"typ": "list",
"element": {
"id": {
"typ": "string",
"verweis": "npcs"
},
"x": {
"typ": "int",
"pflicht": true
},
"y": {
"typ": "int",
"pflicht": true
}
}
},
"exits": {
"typ": "list"
}
}
}
}
}