Files
Jander_Semester2/Semesterprojekt/src/main/resources/world/rooms.yaml
2026-05-31 22:50:46 +02:00

62 lines
1.3 KiB
YAML

- id: kitchen
name: Old Kitchen
description: |
A dusty kitchen. Cobwebs hang from the rafters
and a letter lies on the table.
exits:
north: hallway
east: cellar
south: dungeon
items: [letter, lamp, front_door]
npcs: [old_man]
exitLocks:
- direction: east
requires: [{ flag: power_on }]
blocked: |
The cellar door is held shut by a magnetic lock — dead without power.
- id: hallway
name: Dark Hallway
description: |
A long, dimly lit hallway. It smells musty.
Faint footsteps echo somewhere far away.
exits:
south: kitchen
west: library
items: []
npcs: []
- id: library
name: Library
description: |
Tall shelves crammed with mouldering books.
An old chest stands in the corner.
exits:
east: hallway
items: [shovel]
npcs: []
- id: cellar
name: Damp Cellar
description: |
Cold, damp, and very dark. You can barely
make out shapes against the far wall.
exits:
west: kitchen
items: []
npcs: []
descriptionStates:
- when: [{ flag: power_on }]
text: |
With the power back, a bare bulb buzzes overhead, revealing
shelves of dusty jars along the far wall.
- id: dungeon
name: Dungeon
description: |
A dark, damp room. A rusty generator squats in the corner.
exits:
north: kitchen
items: [generator]
npcs: []