Unfalsify coverage check
This commit is contained in:
parent
89e1833d8f
commit
fbc80f0363
3 changed files with 14 additions and 9 deletions
10
actions.c
10
actions.c
|
@ -968,18 +968,18 @@ static int reservoir(void)
|
||||||
static int rub(token_t verb, token_t obj)
|
static int rub(token_t verb, token_t obj)
|
||||||
/* Rub. Yields various snide remarks except for lit urn. */
|
/* Rub. Yields various snide remarks except for lit urn. */
|
||||||
{
|
{
|
||||||
int spk = actions[verb].message;
|
|
||||||
if (obj != LAMP)
|
|
||||||
spk = PECULIAR_NOTHING;
|
|
||||||
if (obj == URN && game.prop[URN] == URN_LIT) {
|
if (obj == URN && game.prop[URN] == URN_LIT) {
|
||||||
DESTROY(URN);
|
DESTROY(URN);
|
||||||
drop(AMBER, game.loc);
|
drop(AMBER, game.loc);
|
||||||
game.prop[AMBER] = AMBER_IN_ROCK;
|
game.prop[AMBER] = AMBER_IN_ROCK;
|
||||||
--game.tally;
|
--game.tally;
|
||||||
drop(CAVITY, game.loc);
|
drop(CAVITY, game.loc);
|
||||||
spk = URN_GENIES;
|
rspeak(URN_GENIES);
|
||||||
|
} else if (obj != LAMP) {
|
||||||
|
rspeak(PECULIAR_NOTHING);
|
||||||
|
} else {
|
||||||
|
rspeak(actions[verb].message);
|
||||||
}
|
}
|
||||||
rspeak(spk);
|
|
||||||
return GO_CLEAROBJ;
|
return GO_CLEAROBJ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -32,6 +32,10 @@ OK
|
||||||
|
|
||||||
OK
|
OK
|
||||||
|
|
||||||
|
> rub keys
|
||||||
|
|
||||||
|
Peculiar. Nothing unexpected happens.
|
||||||
|
|
||||||
> out
|
> out
|
||||||
|
|
||||||
You're in front of building.
|
You're in front of building.
|
||||||
|
@ -180,7 +184,7 @@ OK
|
||||||
The little bird is now dead. Its body disappears.
|
The little bird is now dead. Its body disappears.
|
||||||
|
|
||||||
|
|
||||||
You scored 30 out of a possible 430, using 29 turns.
|
You scored 30 out of a possible 430, using 30 turns.
|
||||||
|
|
||||||
You are obviously a rank amateur. Better luck next time.
|
You are obviously a rank amateur. Better luck next time.
|
||||||
|
|
||||||
|
|
|
@ -4,6 +4,7 @@ seed 694608006
|
||||||
in
|
in
|
||||||
take lamp
|
take lamp
|
||||||
take keys
|
take keys
|
||||||
|
rub keys
|
||||||
out
|
out
|
||||||
go s
|
go s
|
||||||
walk s
|
walk s
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue