X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=actions.c;h=3946b0e7268a0539e9a7b39fd19fccf9b3995bbb;hb=5ab94ce8deaee9b358bfa36e22d9e432e78335be;hp=f38f9e5ad271f5dc9229b4a544e68a3c6c43ed5d;hpb=8984e48e78c8e83df9c93d6e34c0d8e1cfabc2b5;p=open-adventure.git diff --git a/actions.c b/actions.c index f38f9e5..3946b0e 100644 --- a/actions.c +++ b/actions.c @@ -1105,8 +1105,14 @@ static phase_codes_t read(command_t command) if (DARK(game.loc)) { sspeak(NO_SEE, command.word[0].raw); - } else if (command.obj == OYSTER && !game.clshnt && game.closed) { - game.clshnt = yes(arbitrary_messages[CLUE_QUERY], arbitrary_messages[WAYOUT_CLUE], arbitrary_messages[OK_MAN]); + } else if (command.obj == OYSTER) { + if (!TOTING(OYSTER) || !game.closed) { + rspeak(DONT_UNDERSTAND); + } else if (!game.clshnt) { + game.clshnt = yes(arbitrary_messages[CLUE_QUERY], arbitrary_messages[WAYOUT_CLUE], arbitrary_messages[OK_MAN]); + } else if (game.clshnt) { + pspeak(OYSTER, hear, true, 1); // Not really a sound, but oh well. + } } else if (objects[command.obj].texts[0] == NULL || game.prop[command.obj] == STATE_NOTFOUND) { speak(actions[command.verb].message); @@ -1348,8 +1354,8 @@ phase_codes_t action(command_t command) /* FALL THROUGH */; else if (command.obj == DWARF && atdwrf(game.loc) > 0) /* FALL THROUGH */; - else if ((LIQUID() == command.obj && HERE(BOTTLE)) || - command.obj == LIQLOC(game.loc)) + else if (!game.closed && ((LIQUID() == command.obj && HERE(BOTTLE)) || + command.obj == LIQLOC(game.loc))) /* FALL THROUGH */; else if (command.obj == OIL && HERE(URN) && game.prop[URN] != URN_EMPTY) { command.obj = URN;