feat(mystery): sample 3-room world for engine validation

This commit is contained in:
2026-05-08 23:26:45 -05:00
parent 49fc5a1015
commit d8c9b44058
5 changed files with 132 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
import type { EncounterDef } from './types'
export const encounters: Record<string, EncounterDef> = {
rat: {
id: 'rat',
startsIn: 'cellar-stair',
initialPhase: 'lurking',
phases: {
lurking: {
description: 'A heavy rat watches you from the third step. Its eyes catch the light.',
transitions: [
{
verb: 'attack',
target: 'rat',
narration: 'You stamp. The rat squeals and is gone into the dark.',
to: 'resolved',
},
{
verb: 'wait',
narration: 'The rat does not move. Neither do you.',
to: 'lurking',
},
],
},
},
onResolved: { setFlags: { ratGone: true } },
defaultWrongVerbNarration: 'The rat watches.',
},
}