85 lines
3.5 KiB
JSON
85 lines
3.5 KiB
JSON
{
|
||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||
"$id": "generators.schema.json",
|
||
"title": "generators 表 schema v0(十二班底发生器,数值抄录自 Balance Bible v1.0 §1)",
|
||
"description": "架构 §3.2 CSV 规范落盘。数值列禁千分位;引用列填目标 ID 或 none;ID 一旦分配永不重编号。速率 = 8 的纯幂阶梯(gen1=0.1;gen_n=8^(n-2),[B§1]/[B§11 差异#1] 修复 GDD 6.25× 异常档);成本 gen1→gen2 为 8×(点击养成档,设计意图),gen2 起恒 10×。v0 仅做单表校验:unlock_hall/unlock_gate 引用的 halls.csv / upgrades.csv 目标表已落盘(W2),跨表引用完整性由 DataRegistry 载入时检查。",
|
||
"x-supported-keywords": [
|
||
"type", "properties", "required", "items", "enum", "pattern",
|
||
"minimum", "maximum", "minLength", "minItems", "maxItems",
|
||
"additionalProperties", "const"
|
||
],
|
||
"x-unique": ["id"],
|
||
"type": "object",
|
||
"required": ["sheet", "schema_version", "columns", "rows"],
|
||
"properties": {
|
||
"sheet": { "const": "generators" },
|
||
"schema_version": { "const": 0 },
|
||
"columns": {
|
||
"type": "array",
|
||
"items": { "type": "string" },
|
||
"minItems": 9
|
||
},
|
||
"rows": {
|
||
"type": "array",
|
||
"minItems": 12,
|
||
"items": {
|
||
"type": "object",
|
||
"required": [
|
||
"id", "display_cn", "display_en", "base_cost",
|
||
"cost_ratio", "base_rate", "unlock_hall", "unlock_gate", "sprite_row"
|
||
],
|
||
"properties": {
|
||
"id": {
|
||
"type": "string",
|
||
"pattern": "^gen_[0-9]{2}_[a-z0-9]+$",
|
||
"description": "稳定字符串 ID;永不重编号、永不复用(年更=加行)"
|
||
},
|
||
"display_cn": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "简体名(GDD §3.1 班底名)"
|
||
},
|
||
"display_en": {
|
||
"type": "string",
|
||
"minLength": 1,
|
||
"description": "英文名——W1 工程侧临时译名,待文策渊按 GDD §8.4 glossary 口径确认后回填"
|
||
},
|
||
"base_cost": {
|
||
"type": "number",
|
||
"minimum": 1,
|
||
"description": "C0(GDD §3.1);整数写法,禁千分位与 K/M/B/T 后缀"
|
||
},
|
||
"cost_ratio": {
|
||
"type": "number",
|
||
"minimum": 1,
|
||
"maximum": 2,
|
||
"description": "r(1.13→1.20,GDD §3.1)"
|
||
},
|
||
"base_rate": {
|
||
"type": "number",
|
||
"minimum": 0,
|
||
"description": "rate/s(GDD §3.1);阴德/秒"
|
||
},
|
||
"unlock_hall": {
|
||
"type": "string",
|
||
"pattern": "^(none|hall_[0-9]{2}_[a-z]+)$",
|
||
"description": "殿门闸门 ID(halls.csv 行 ID)或 none"
|
||
},
|
||
"unlock_gate": {
|
||
"type": "string",
|
||
"pattern": "^(none|up_gate_[a-z0-9_]+)$",
|
||
"description": "路引闸门 ID(upgrades.csv 行 ID)或 none;gen_12 的敕封前置 = up_gate_tianzi 需转世≥2([B§4.4],W2 已建模为 upgrades.csv 行内条件)"
|
||
},
|
||
"sprite_row": {
|
||
"type": "string",
|
||
"pattern": "^res://assets/sprites/[a-z_]+/[a-z0-9_]+$",
|
||
"description": "★ ADR-3:唯一允许的逐资产代码 = sprite 路径前缀(Max 侧命名 <unit_id>_<l|r>_<frame>.png)"
|
||
}
|
||
},
|
||
"additionalProperties": false
|
||
}
|
||
}
|
||
},
|
||
"additionalProperties": false
|
||
}
|