feat(content): demo the state engine (generator unlocks/lights the cellar)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-05-31 22:01:57 +02:00
parent 00bad46661
commit a0b80f2a4b
4 changed files with 37 additions and 2 deletions

View File

@@ -9,6 +9,11 @@
south: dungeon
items: [letter, lamp]
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
@@ -40,12 +45,17 @@
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 dark, damp room. A rusty generator squats in the corner.
exits:
north: kitchen
items: []
items: [generator]
npcs: []