This fixes the stupid 'bug' where nothing would render because I actually had the data type wrong in the json after moving to the new format.

This commit is contained in:
Zed A. Shaw 2025-02-09 14:05:39 -05:00
parent a69be90464
commit b6831b75a3
3 changed files with 28 additions and 34 deletions

View file

@ -9,10 +9,8 @@
"inventory_count": 0,
"randomized": false,
"components": [
{"_type": "Tile", "config": {"chr": "\u2ac5"}},
{"_type": "Device",
"config": {"test": true}, "events": ["Events::GUI::STAIRS_DOWN"]
}
{"_type": "Tile", "chr": "\u2ac5"},
{"_type": "Device", "test": true, "events": ["Events::GUI::STAIRS_DOWN"]}
]
},
"STAIRS_UP": {
@ -24,10 +22,8 @@
"inventory_count": 0,
"placement": "fixed",
"components": [
{"_type": "Tile", "config": {"chr": "\u2259"}},
{"_type": "Device",
"config": {"test": true}, "events": ["Events::GUI::STAIRS_UP"]
}
{"_type": "Tile", "chr": "\u2259"},
{"_type": "Device", "test": true, "events": ["Events::GUI::STAIRS_UP"]}
]
},
"SPIKE_TRAP": {
@ -38,10 +34,8 @@
"description": "Spikes stab you from the floor.",
"inventory_count": 0,
"components": [
{"_type": "Tile", "config": {"chr": "\u1ac7"}},
{"_type": "Device",
"config": {"test": true}, "events": ["Events::GUI::TRAP"]
}
{"_type": "Tile", "chr": "\u1ac7"},
{"_type": "Device", "test": true, "events": ["Events::GUI::TRAP"]}
]
}
}