Partially address GitLab issue #27: arbitrary_messages unreachable
This commit is contained in:
parent
7f18e66866
commit
66fba512a7
6 changed files with 29 additions and 11 deletions
|
@ -995,7 +995,7 @@ static int lock(verb_t verb, obj_t obj)
|
||||||
if (verb == LOCK)
|
if (verb == LOCK)
|
||||||
rspeak(HUH_MAN);
|
rspeak(HUH_MAN);
|
||||||
else if (!TOTING(TRIDENT))
|
else if (!TOTING(TRIDENT))
|
||||||
rspeak(OYSTER_OPENER);
|
rspeak(CLAM_OPENER);
|
||||||
else {
|
else {
|
||||||
DESTROY(CLAM);
|
DESTROY(CLAM);
|
||||||
drop(OYSTER, game.loc);
|
drop(OYSTER, game.loc);
|
||||||
|
@ -1006,8 +1006,12 @@ static int lock(verb_t verb, obj_t obj)
|
||||||
case OYSTER:
|
case OYSTER:
|
||||||
if (verb == LOCK)
|
if (verb == LOCK)
|
||||||
rspeak(HUH_MAN);
|
rspeak(HUH_MAN);
|
||||||
else
|
else if (TOTING(OYSTER))
|
||||||
|
rspeak(DROP_OYSTER);
|
||||||
|
else if (!TOTING(TRIDENT))
|
||||||
rspeak(OYSTER_OPENER);
|
rspeak(OYSTER_OPENER);
|
||||||
|
else
|
||||||
|
rspeak(OYSTER_OPENS);
|
||||||
break;
|
break;
|
||||||
case DOOR:
|
case DOOR:
|
||||||
rspeak((game.prop[DOOR] == DOOR_UNRUSTED) ? OK_MAN : RUSTY_DOOR);
|
rspeak((game.prop[DOOR] == DOOR_UNRUSTED) ? OK_MAN : RUSTY_DOOR);
|
||||||
|
|
|
@ -2666,7 +2666,7 @@ arbitrary_messages: !!omap
|
||||||
- DWARF_SINGLE: 'There is a threatening little dwarf in the room with you!'
|
- DWARF_SINGLE: 'There is a threatening little dwarf in the room with you!'
|
||||||
- KNIFE_THROWN: 'One sharp nasty knife is thrown at you!'
|
- KNIFE_THROWN: 'One sharp nasty knife is thrown at you!'
|
||||||
- SAYS_PLUGH: 'A hollow voice says "PLUGH".'
|
- SAYS_PLUGH: 'A hollow voice says "PLUGH".'
|
||||||
- GETS_YOU: 'It gets you!'
|
#- GETS_YOU: 'It gets you!'
|
||||||
- MISSES_YOU: 'It misses!'
|
- MISSES_YOU: 'It misses!'
|
||||||
- UNSURE_FACING: 'I am unsure how you are facing. Use compass points or nearby objects.'
|
- UNSURE_FACING: 'I am unsure how you are facing. Use compass points or nearby objects.'
|
||||||
- NO_INOUT_HERE: |-
|
- NO_INOUT_HERE: |-
|
||||||
|
@ -2761,7 +2761,7 @@ arbitrary_messages: !!omap
|
||||||
You'd best take inventory and drop something.
|
You'd best take inventory and drop something.
|
||||||
- CLAM_BLOCKER: 'You can''t fit this five-foot clam through that little passage!'
|
- CLAM_BLOCKER: 'You can''t fit this five-foot clam through that little passage!'
|
||||||
- OYSTER_BLOCKER: 'You can''t fit this five-foot oyster through that little passage!'
|
- OYSTER_BLOCKER: 'You can''t fit this five-foot oyster through that little passage!'
|
||||||
- DROP_CLAM: 'I advise you to put down the clam before opening it. >STRAIN!<'
|
#- DROP_CLAM: 'I advise you to put down the clam before opening it. >STRAIN!<'
|
||||||
- DROP_OYSTER: 'I advise you to put down the oyster before opening it. >WRENCH!<'
|
- DROP_OYSTER: 'I advise you to put down the oyster before opening it. >WRENCH!<'
|
||||||
- CLAM_OPENER: 'You don''t have anything strong enough to open the clam.'
|
- CLAM_OPENER: 'You don''t have anything strong enough to open the clam.'
|
||||||
- OYSTER_OPENER: 'You don''t have anything strong enough to open the oyster.'
|
- OYSTER_OPENER: 'You don''t have anything strong enough to open the oyster.'
|
||||||
|
|
|
@ -2935,7 +2935,7 @@ Huh?
|
||||||
|
|
||||||
> unlock oyster
|
> unlock oyster
|
||||||
|
|
||||||
You don't have anything strong enough to open the oyster.
|
I advise you to put down the oyster before opening it. >WRENCH!<
|
||||||
|
|
||||||
> drop oyster
|
> drop oyster
|
||||||
|
|
||||||
|
|
|
@ -2914,11 +2914,20 @@ not disturb the dwarves!" An immense mirror is hanging against one
|
||||||
wall, and stretches to the other end of the room, where various other
|
wall, and stretches to the other end of the room, where various other
|
||||||
sundry objects can be glimpsed dimly in the distance.
|
sundry objects can be glimpsed dimly in the distance.
|
||||||
|
|
||||||
> e
|
> take oyster
|
||||||
|
|
||||||
There is no way to go that direction.
|
OK
|
||||||
|
|
||||||
You're at ne end.
|
Interesting. There seems to be something written on the underside of
|
||||||
|
the oyster.
|
||||||
|
|
||||||
|
> drop oyster
|
||||||
|
|
||||||
|
OK
|
||||||
|
|
||||||
|
> open oyster
|
||||||
|
|
||||||
|
You don't have anything strong enough to open the oyster.
|
||||||
|
|
||||||
> sw
|
> sw
|
||||||
|
|
||||||
|
@ -2969,6 +2978,8 @@ OK
|
||||||
|
|
||||||
You're at ne end.
|
You're at ne end.
|
||||||
|
|
||||||
|
There is an enormous oyster here with its shell tightly closed.
|
||||||
|
|
||||||
> listen
|
> listen
|
||||||
|
|
||||||
You can hear the murmuring of the beanstalks and the snoring of the
|
You can hear the murmuring of the beanstalks and the snoring of the
|
||||||
|
@ -2980,7 +2991,7 @@ There is a loud explosion, and a twenty-foot hole appears in the far
|
||||||
wall, burying the snakes in the rubble. A river of molten lava pours
|
wall, burying the snakes in the rubble. A river of molten lava pours
|
||||||
in through the hole, destroying everything in its path, including you!
|
in through the hole, destroying everything in its path, including you!
|
||||||
|
|
||||||
You scored 399 out of a possible 430, using 474 turns.
|
You scored 399 out of a possible 430, using 476 turns.
|
||||||
|
|
||||||
Your score puts you in Master Adventurer Class B.
|
Your score puts you in Master Adventurer Class B.
|
||||||
|
|
||||||
|
|
|
@ -468,7 +468,10 @@ e
|
||||||
e
|
e
|
||||||
e
|
e
|
||||||
e
|
e
|
||||||
e
|
# Expecting failure here
|
||||||
|
take oyster
|
||||||
|
drop oyster
|
||||||
|
open oyster
|
||||||
sw
|
sw
|
||||||
# We want the xyzzy and plugh words to fail here
|
# We want the xyzzy and plugh words to fail here
|
||||||
xyzzy
|
xyzzy
|
||||||
|
|
|
@ -1271,7 +1271,7 @@ There is an enormous clam here with its shell tightly closed.
|
||||||
|
|
||||||
> open clam
|
> open clam
|
||||||
|
|
||||||
You don't have anything strong enough to open the oyster.
|
You don't have anything strong enough to open the clam.
|
||||||
|
|
||||||
|
|
||||||
You scored 179 out of a possible 430, using 216 turns.
|
You scored 179 out of a possible 430, using 216 turns.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue