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

@@ -22,3 +22,15 @@
id: key
name: Brass Key
description: A small brass key, polished from use.
- type: switchable
id: generator
name: Generator
description: A rusty generator with a heavy lever.
initialState: false
onText: |
You heave the lever. Somewhere deep in the manor, the lights flicker on.
offText: |
You pull the lever back; the manor falls dark again.
effects:
- { setFlag: power_on }