Implemented configurable randomization in the world builder, and then got the beginning of devices to work for the next part of going down a level through stairs.
This commit is contained in:
parent
7acbd0379f
commit
d2162910f6
10 changed files with 73 additions and 36 deletions
|
@ -6,7 +6,8 @@
|
|||
|
||||
},
|
||||
"worldgen": {
|
||||
"enemy_probability": 60,
|
||||
"empty_room_probability": 20
|
||||
"enemy_probability": 20,
|
||||
"empty_room_probability": 20,
|
||||
"device_probability": 20
|
||||
}
|
||||
}
|
||||
|
|
26
assets/devices.json
Normal file
26
assets/devices.json
Normal file
|
@ -0,0 +1,26 @@
|
|||
{
|
||||
"STAIRS_DOWN": {
|
||||
"id": "STAIRS_DOWN",
|
||||
"name": "Stairs Down",
|
||||
"foreground": [24, 205, 189],
|
||||
"background": [24, 205, 189],
|
||||
"description": "Stairs that go down further into the dungeon.",
|
||||
"inventory_count": 0,
|
||||
"components": [
|
||||
{"type": "Tile", "config": {"chr": "\u2ac5"}},
|
||||
{"type": "Device", "config": {"active": true}}
|
||||
]
|
||||
},
|
||||
"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,
|
||||
"components": [
|
||||
{"type": "Tile", "config": {"chr": "\u2259"}},
|
||||
{"type": "Device", "config": {"active": true}}
|
||||
]
|
||||
}
|
||||
}
|
|
@ -71,27 +71,5 @@
|
|||
{"type": "Tile", "config": {"chr": "\u03eb"}},
|
||||
{"type": "Curative", "config": {"hp": 20}}
|
||||
]
|
||||
},
|
||||
"STAIRS_DOWN": {
|
||||
"id": "STAIRS_DOWN",
|
||||
"name": "Stairs Down",
|
||||
"foreground": [24, 205, 189],
|
||||
"background": [24, 205, 189],
|
||||
"description": "Stairs that go down further into the dungeon.",
|
||||
"inventory_count": 0,
|
||||
"components": [
|
||||
{"type": "Tile", "config": {"chr": "\u2ac5"}}
|
||||
]
|
||||
},
|
||||
"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,
|
||||
"components": [
|
||||
{"type": "Tile", "config": {"chr": "\u2259"}}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue