From: Eric S. Raymond Date: Sun, 16 Jul 2017 09:08:03 +0000 (-0400) Subject: Apply state_change() to mirror object. X-Git-Tag: 1.3~84 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=9eda1f424dcdc8c154b6a881feed270eeb17e83e;p=open-adventure.git Apply state_change() to mirror object. --- diff --git a/actions.c b/actions.c index 48de9d0..c4d86b4 100644 --- a/actions.c +++ b/actions.c @@ -253,7 +253,7 @@ static int vbreak(verb_t verb, obj_t obj) switch (obj) { case MIRROR: if (game.closed) { - rspeak(BREAK_MIRROR); + state_change(MIRROR, MIRROR_BROKEN); return GO_DWARFWAKE; } else { rspeak(TOO_FAR); diff --git a/adventure.yaml b/adventure.yaml index 8336ac4..f857ac7 100644 --- a/adventure.yaml +++ b/adventure.yaml @@ -2883,9 +2883,6 @@ arbitrary_messages: !!omap information to escape? Sorry, but this initial hint is all you get." - DONT_UNDERSTAND: &dont_understand 'I''m afraid I don''t understand.' - HAND_PASSTHROUGH: 'Your hand passes through it as though it weren''t there.' -- BREAK_MIRROR: |- - You strike the mirror a resounding blow, whereupon it shatters into a - myriad tiny fragments. - PROD_DWARF: |- You prod the nearest dwarf, who wakes up grumpily, takes one look at you, curses, and grabs for his axe. @@ -3274,7 +3271,15 @@ objects: !!omap inventory: '*mirror' locations: LOC_MIRRORCANYON immovable: true - descriptions: !!null + states: [MIRROR_UNBROKEN, MIRROR_BROKEN] + descriptions: + - '' + - '' + changes: + - '' + - |- + You strike the mirror a resounding blow, whereupon it shatters into a + myriad tiny fragments. - PLANT: words: ['plant', 'beans'] inventory: '*plant'