Godot-Projekt nach docs/engine.md: 640x360-Viewport, stretch=viewport, scale_mode=integer, 1x-Assets in game/assets/. Autoloads Content (laden und prüfen), Rules (Effekt-Vokabel), Game (Party, Ort, abgeleitete Werte), Saves (versionierter Spielstand, nur Eingaben). Inhalte liegen vollständig als JSON in game/data/ und werden gegen _schema.json geprüft: 4 Völker, 4 Klassen, 9 Fertigkeiten, 16 Fähigkeiten, 18 Zauber, 11 Gegenstände, 8 Gegner, 4 Begegnungen, 3 NSC, 1 Karte (20x11). Die Engine nennt keine Klasse und keinen Zauber beim Namen — alles über ids, Verhalten ausschließlich über 13 Effekt-ops. Beim ersten Content-Durchlauf ist die Vokabel um turn_undead und immunity gewachsen, bonus kennt multiplier; genau das war der Zweck der Übung. Zwei Prüfer, eine Wahrheit: tools/validate_data.py (ohne Godot, für Commit/CI) und ContentDB beim Start. Beide lesen dieselbe _schema.json; unbekanntes op oder fehlender Verweis bricht ab statt still zu wirken. Selbstprüfung im Projekt (godot --headless --path game -- --check) ist grün: Daten geladen, Würfel 2d6+1, Modifikator, Effekt Magisches Geschoss, Spielstand schreiben/lesen/identisch, Font im Engine-Raster (2 Zeichen = 16 px, Zeile 12). Letzteres belegt erstmals, dass der BMFont-Export aus art/final/Font in der Engine sitzt. Titelgrafik über fal (FLUX.2 [pro], 1536x864, Seed 771201, 0,04 USD, request_id 01a1dc5a-871a-7511-b8f8-571988a47c18): zwei vermummte Pilger vor dem Tor von Garana. Der erste Lauf (Seed 20261115) zeigte moderne Wanderer mit Rucksäcken und ist verworfen; beide stehen im Lizenzlog. pixelize.py bekam --crop, weil das Modell eine Signatur in die Ecke malt. Achtung: das Projekt wurde headless importiert (godot --import); die *.import-Dateien gehören ins Repo, .godot/ nicht. Für den Export muss include_filter="*.json" gesetzt werden, sonst fehlen die Inhalte im Build.
559 lines
10 KiB
JSON
559 lines
10 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"
|
|
],
|
|
"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
|
|
},
|
|
"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"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|