From 1b992642ec5032642268f9dc1dc9be24fb596dbf Mon Sep 17 00:00:00 2001 From: Ethan J Lewis Date: Sat, 9 May 2026 09:35:41 -0500 Subject: [PATCH] feat(mystery): encounters.ts uses narration() helper for prose --- src/world/encounters.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/world/encounters.ts b/src/world/encounters.ts index 5d646b7..f387898 100644 --- a/src/world/encounters.ts +++ b/src/world/encounters.ts @@ -1,4 +1,5 @@ import type { EncounterDef } from './types' +import { narration } from './loader' export const encounters: Record = { rat: { @@ -7,17 +8,17 @@ export const encounters: Record = { initialPhase: 'lurking', phases: { lurking: { - description: 'A heavy rat watches you from the third step. Its eyes catch the light.', + description: narration('rat', 'lurking'), transitions: [ { verb: 'attack', target: 'rat', - narration: 'You stamp. The rat squeals and is gone into the dark.', + narration: narration('rat', 'attack-rat-resolved'), to: 'resolved', }, { verb: 'wait', - narration: 'The rat does not move. Neither do you.', + narration: narration('rat', 'wait-stays'), to: 'lurking', }, ],