Rxtend test coverage, remove magic numbers.
This commit is contained in:
parent
ff7db8b0c8
commit
c8dbb241e8
5 changed files with 20 additions and 5 deletions
|
@ -558,7 +558,7 @@ int fill(token_t verb, token_t obj)
|
||||||
spk = URN_NOPOUR;
|
spk = URN_NOPOUR;
|
||||||
if (LIQUID() != 0)
|
if (LIQUID() != 0)
|
||||||
spk = BOTTLE_FULL;
|
spk = BOTTLE_FULL;
|
||||||
if (spk == 107) {
|
if (spk == BOTTLED_WATER) {
|
||||||
game.prop[BOTTLE] = MOD(COND[game.loc], 4) / 2 * 2;
|
game.prop[BOTTLE] = MOD(COND[game.loc], 4) / 2 * 2;
|
||||||
k = LIQUID();
|
k = LIQUID();
|
||||||
if (TOTING(BOTTLE))
|
if (TOTING(BOTTLE))
|
||||||
|
@ -982,7 +982,7 @@ static int wave(token_t verb, token_t obj)
|
||||||
return GO_CLEAROBJ;
|
return GO_CLEAROBJ;
|
||||||
}
|
}
|
||||||
if (HERE(BIRD))spk = FREE_FLY + MOD(game.prop[BIRD], 2);
|
if (HERE(BIRD))spk = FREE_FLY + MOD(game.prop[BIRD], 2);
|
||||||
if (spk == 206 && game.loc == game.place[STEPS] && game.prop[JADE] < 0) {
|
if (spk == FREE_FLY && game.loc == game.place[STEPS] && game.prop[JADE] < 0) {
|
||||||
DROP(JADE, game.loc);
|
DROP(JADE, game.loc);
|
||||||
game.prop[JADE] = 0;
|
game.prop[JADE] = 0;
|
||||||
--game.tally;
|
--game.tally;
|
||||||
|
|
|
@ -924,6 +924,10 @@ You're in west pit.
|
||||||
There is a 12-foot-tall beanstalk stretching up out of the pit,
|
There is a 12-foot-tall beanstalk stretching up out of the pit,
|
||||||
bellowing "WATER!! WATER!!"
|
bellowing "WATER!! WATER!!"
|
||||||
|
|
||||||
|
> H'CFL
|
||||||
|
|
||||||
|
Nothing happens.
|
||||||
|
|
||||||
> u
|
> u
|
||||||
|
|
||||||
You're at west end of Twopit Room.
|
You're at west end of Twopit Room.
|
||||||
|
@ -970,7 +974,7 @@ to try to reincarnate you?
|
||||||
|
|
||||||
OK
|
OK
|
||||||
|
|
||||||
You scored 177 out of a possible 430, using 154 turns.
|
You scored 177 out of a possible 430, using 155 turns.
|
||||||
|
|
||||||
You may now consider yourself a "Seasoned Adventurer".
|
You may now consider yourself a "Seasoned Adventurer".
|
||||||
|
|
||||||
|
|
|
@ -150,6 +150,7 @@ slab
|
||||||
s
|
s
|
||||||
d
|
d
|
||||||
water plant
|
water plant
|
||||||
|
H'CFL
|
||||||
u
|
u
|
||||||
w
|
w
|
||||||
u
|
u
|
||||||
|
|
|
@ -46,6 +46,10 @@ Your feet are now wet.
|
||||||
|
|
||||||
The stream is gurgling placidly.
|
The stream is gurgling placidly.
|
||||||
|
|
||||||
|
> carry
|
||||||
|
|
||||||
|
Carry what?
|
||||||
|
|
||||||
> forward
|
> forward
|
||||||
|
|
||||||
I am unsure how you are facing. Use compass points or nearby objects.
|
I am unsure how you are facing. Use compass points or nearby objects.
|
||||||
|
@ -183,6 +187,10 @@ OK
|
||||||
|
|
||||||
I'm game. Would you care to explain how?
|
I'm game. Would you care to explain how?
|
||||||
|
|
||||||
|
> fly keys
|
||||||
|
|
||||||
|
I'm game. Would you care to explain how?
|
||||||
|
|
||||||
> throw keys
|
> throw keys
|
||||||
|
|
||||||
OK
|
OK
|
||||||
|
@ -312,7 +320,7 @@ Okay, "BOO".
|
||||||
|
|
||||||
> score
|
> score
|
||||||
|
|
||||||
You have garnered 27 out of a possible 430 points, using 59 turns.
|
You have garnered 27 out of a possible 430 points, using 61 turns.
|
||||||
|
|
||||||
> quit bottle
|
> quit bottle
|
||||||
|
|
||||||
|
@ -326,7 +334,7 @@ Do you really want to quit now?
|
||||||
|
|
||||||
OK
|
OK
|
||||||
|
|
||||||
You scored 27 out of a possible 430, using 61 turns.
|
You scored 27 out of a possible 430, using 63 turns.
|
||||||
|
|
||||||
You are obviously a rank amateur. Better luck next time.
|
You are obviously a rank amateur. Better luck next time.
|
||||||
|
|
||||||
|
|
|
@ -5,6 +5,7 @@ seed 1801426495
|
||||||
cave
|
cave
|
||||||
enter stream
|
enter stream
|
||||||
listen
|
listen
|
||||||
|
carry
|
||||||
forward
|
forward
|
||||||
eat
|
eat
|
||||||
drink
|
drink
|
||||||
|
@ -36,6 +37,7 @@ break keys
|
||||||
wake keys
|
wake keys
|
||||||
take keys
|
take keys
|
||||||
feed keys
|
feed keys
|
||||||
|
fly keys
|
||||||
throw keys
|
throw keys
|
||||||
eat food
|
eat food
|
||||||
drink blood
|
drink blood
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue