aboutsummaryrefslogtreecommitdiff
path: root/building_guide/rooms.md
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-06-25 04:46:40 -0400
committerhistoria <[not public]>2026-06-25 04:46:40 -0400
commit2725e2927a1595c7b100d942d1f14146252adeb7 (patch)
treee8bc2292634a2d686c751981ddb3097517cccc6a /building_guide/rooms.md
parent94a06fbbe682701ca4d4bd2a70cd74d8df29c932 (diff)
downloadthehouseoficarus-2725e2927a1595c7b100d942d1f14146252adeb7.tar.gz
feat: who, global chat, removed redundant YAML IDs
Diffstat (limited to 'building_guide/rooms.md')
-rw-r--r--building_guide/rooms.md7
1 files changed, 5 insertions, 2 deletions
diff --git a/building_guide/rooms.md b/building_guide/rooms.md
index 735a6b4..e1408c5 100644
--- a/building_guide/rooms.md
+++ b/building_guide/rooms.md
@@ -1,8 +1,12 @@
## Rooms
+**The filename is the ID.** A room's numeric filename is its ID (`1.yaml` → room `1`); the
+loader derives it from the filename. Do not put an `id:` field in the file — it is ignored.
+Exits and other rooms reference a room by that number. (A nested `- id:` under `objects:` or
+`mobs:` is a *reference* to an object/mob by its filename, and is still required.)
+
Minimal room:
```yaml
-id: 1
name: "Town Square"
description: "Cobblestone paths lead in all directions. A fountain gurgles peacefully."
exits:
@@ -186,7 +190,6 @@ A room can reference a shared hazard by ID. The hazard rolls an attack against
everyone in the room every few ticks using the combat formulas (see `hazards.md`).
```yaml
-id: 99999181
name: "Exposed Solar Array"
hazard: solar_radiation # ID of a data/hazards/<id>.yaml definition
exits: