aboutsummaryrefslogtreecommitdiff
path: root/building_guide/rooms.md
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-09-18 20:03:13 -0400
committerhistoria <[not public]>2026-09-18 20:03:13 -0400
commit79764732406d6484f67d3dec045483dcb5d08c28 (patch)
tree7a64e8581a540b97ed554f5723e2d587424ab1c6 /building_guide/rooms.md
parentf1e461ab6aec6b9bf056bbe2daa88a251e0f21da (diff)
downloadthehouseoficarus-79764732406d6484f67d3dec045483dcb5d08c28.tar.gz
feat: better card ascii art
Diffstat (limited to 'building_guide/rooms.md')
-rw-r--r--building_guide/rooms.md37
1 files changed, 25 insertions, 12 deletions
diff --git a/building_guide/rooms.md b/building_guide/rooms.md
index 3b9c120..c70b379 100644
--- a/building_guide/rooms.md
+++ b/building_guide/rooms.md
@@ -10,11 +10,18 @@ Minimal room:
name: "Town Square"
description: "Cobblestone paths lead in all directions. A fountain gurgles peacefully."
exits:
- north: 2
- west: 7
- east: 3
+ north:
+ room: 2
+ west:
+ room: 7
+ east:
+ room: 3
```
+Every exit is a mapping with a `room:` target. The scalar shorthand
+(`north: 2`) is **not** accepted by the loader: it fails strict YAML decoding
+and the room is reported as a load ERROR.
+
### Map color
A room may set a `color` that tints its node on the map and the links connecting it:
@@ -53,9 +60,12 @@ Always passable, any direction:
```yaml
exits:
- north: 2
- ne: 3
- southeast: 4
+ north:
+ room: 2
+ ne:
+ room: 3
+ southeast:
+ room: 4
```
#### Conditional exits
@@ -200,8 +210,8 @@ Simple placement (no wandering):
```yaml
mobs:
- - "newbie_trainer"
- - "man"
+ - id: newbie_trainer
+ - id: man
```
With wander config per-instance:
@@ -574,11 +584,12 @@ the room every few ticks using combat formulas.
name: "Exposed Solar Array"
hazard: solar_radiation # ID of data/hazards/solar_radiation.yaml
exits:
- south: 99999180
+ south:
+ room: 99999180
objects:
- id: rock_outcrop # safespot object shields players from the hazard
mobs:
- - solar_panel_frame # task worksite (see mobs.md)
+ - id: solar_panel_frame # task worksite (see mobs.md)
```
- Players get a `[Y/n]` confirmation when walking from a safe room into a hazardous one
@@ -732,7 +743,8 @@ on_use:
```yaml
name: "Hidden Passage"
exits:
- south: 2
+ south:
+ room: 2
north:
room: 8
condition:
@@ -762,7 +774,8 @@ stackable: false
```yaml
name: "Locked Storage"
exits:
- west: 2
+ west:
+ room: 2
east:
room: 6
condition: