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

@ -7,8 +7,8 @@
"description": "A torch that barely lights the way. You wonder if it'd be better to not see the person who murders you.",
"inventory_count": 1,
"components": [
{"_type": "LightSource", "config": {"strength": 70, "radius": 2.0}},
{"_type": "Tile", "config": {"chr": "\u0f08"}}
{"_type": "LightSource", "strength": 70, "radius": 2.0},
{"_type": "Tile", "chr": "\u0f08"}
]
},
"SWORD_RUSTY": {
@ -19,8 +19,8 @@
"description": "A sword left to rot in a deep hole where it acquired a patina of dirt and tetanus. You aren't sure if it's more deadly for you to hold it or for the people you stab with it.",
"inventory_count": 1,
"components": [
{"_type": "Weapon", "config": {"damage": 15}},
{"_type": "Tile", "config": {"chr": "\u1e37"}}
{"_type": "Weapon", "damage": 15},
{"_type": "Tile", "chr": "\u1e37"}
]
},
"SWORD_LIGHT_AND_FLAME": {
@ -31,9 +31,9 @@
"description": "A sword so powerful, a great man from the Land of The Rising Sun thrust it into the ocean of Nerf to chill its effects.",
"inventory_count": 1,
"components": [
{"_type": "LightSource", "config": {"strength": 70, "radius": 1.8}},
{"_type": "Tile", "config": {"chr": "\u0236"}},
{"_type": "Weapon", "config": {"damage": 30}}
{"_type": "LightSource", "strength": 70, "radius": 1.8},
{"_type": "Tile", "chr": "\u0236"},
{"_type": "Weapon", "damage": 30}
]
},
"CHEST_SMALL": {
@ -43,8 +43,8 @@
"background": [150, 100, 189],
"description": "A small chest of gold. You wonder who would leave something like this around.",
"components": [
{"_type": "Tile", "config": {"chr": "\uaaea"}},
{"_type": "Loot", "config": {"amount": 10}}
{"_type": "Tile", "chr": "\uaaea"},
{"_type": "Loot", "amount": 10}
],
"inventory_count": 1
},
@ -56,8 +56,8 @@
"description": "A torch on a wall you can't pick up.",
"inventory_count": 0,
"components": [
{"_type": "Tile", "config": {"chr": "\u077e"}},
{"_type": "LightSource", "config": {"strength": 60, "radius": 1.8}}
{"_type": "Tile", "chr": "\u077e"},
{"_type": "LightSource", "strength": 60, "radius": 1.8}
]
},
"POTION_HEALING_SMALL": {
@ -68,8 +68,8 @@
"description": "A small healing potion.",
"inventory_count": 1,
"components": [
{"_type": "Tile", "config": {"chr": "\u03eb"}},
{"_type": "Curative", "config": {"hp": 20}}
{"_type": "Tile", "chr": "\u03eb"},
{"_type": "Curative", "hp": 20}
]
}
}