Tell json to be more strict about missing fields to avoid that bug in the future, then fix all of the data.

This commit is contained in:
Zed A. Shaw 2025-02-09 14:17:07 -05:00
parent b6831b75a3
commit 27bb08d62c
4 changed files with 56 additions and 39 deletions

View file

@ -3,39 +3,48 @@
"id": "STAIRS_DOWN",
"name": "Stairs Down",
"placement": "fixed",
"foreground": [24, 205, 189],
"background": [24, 205, 189],
"description": "Stairs that go down further into the dungeon.",
"inventory_count": 0,
"randomized": false,
"components": [
{"_type": "Tile", "chr": "\u2ac5"},
{"_type": "Device", "test": true, "events": ["Events::GUI::STAIRS_DOWN"]}
{"_type": "Tile", "chr": "\u2ac5",
"foreground": [24, 205, 189],
"background": [24, 205, 189]
},
{"_type": "Device",
"config": {"test": true},
"events": ["Events::GUI::STAIRS_DOWN"]}
]
},
"STAIRS_UP": {
"id": "STAIRS_UP",
"name": "Stairs Up",
"foreground": [24, 205, 189],
"background": [24, 205, 189],
"description": "Stairs that go up, for the weak.",
"inventory_count": 0,
"placement": "fixed",
"components": [
{"_type": "Tile", "chr": "\u2259"},
{"_type": "Device", "test": true, "events": ["Events::GUI::STAIRS_UP"]}
{"_type": "Tile", "chr": "\u2259",
"foreground": [24, 205, 189],
"background": [24, 205, 189]
},
{"_type": "Device",
"config": {"test": true},
"events": ["Events::GUI::STAIRS_UP"]}
]
},
"SPIKE_TRAP": {
"id": "SPIKE_TRAP",
"name": "Spike trap",
"foreground": [24, 205, 189],
"background": [24, 205, 189],
"description": "Spikes stab you from the floor.",
"inventory_count": 0,
"components": [
{"_type": "Tile", "chr": "\u1ac7"},
{"_type": "Device", "test": true, "events": ["Events::GUI::TRAP"]}
{"_type": "Tile", "chr": "\u1ac7",
"foreground": [24, 205, 189],
"background": [24, 205, 189]
},
{"_type": "Device",
"config": {"test": true},
"events": ["Events::GUI::TRAP"]}
]
}
}