feat(mystery): encounters.ts uses narration() helper for prose
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
import type { EncounterDef } from './types'
|
import type { EncounterDef } from './types'
|
||||||
|
import { narration } from './loader'
|
||||||
|
|
||||||
export const encounters: Record<string, EncounterDef> = {
|
export const encounters: Record<string, EncounterDef> = {
|
||||||
rat: {
|
rat: {
|
||||||
@@ -7,17 +8,17 @@ export const encounters: Record<string, EncounterDef> = {
|
|||||||
initialPhase: 'lurking',
|
initialPhase: 'lurking',
|
||||||
phases: {
|
phases: {
|
||||||
lurking: {
|
lurking: {
|
||||||
description: 'A heavy rat watches you from the third step. Its eyes catch the light.',
|
description: narration('rat', 'lurking'),
|
||||||
transitions: [
|
transitions: [
|
||||||
{
|
{
|
||||||
verb: 'attack',
|
verb: 'attack',
|
||||||
target: 'rat',
|
target: 'rat',
|
||||||
narration: 'You stamp. The rat squeals and is gone into the dark.',
|
narration: narration('rat', 'attack-rat-resolved'),
|
||||||
to: 'resolved',
|
to: 'resolved',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
verb: 'wait',
|
verb: 'wait',
|
||||||
narration: 'The rat does not move. Neither do you.',
|
narration: narration('rat', 'wait-stays'),
|
||||||
to: 'lurking',
|
to: 'lurking',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user