Address GitLab issue #56: handling of "fee fie foe foo" and "fum"

Also add a regression test for this.
This commit is contained in:
Eric S. Raymond 2022-04-06 13:43:08 -04:00
parent a2116b3d79
commit db384731a7
3 changed files with 2150 additions and 0 deletions

View file

@ -206,6 +206,8 @@ static phase_codes_t bigwords(vocab_t id)
(TOTING(EGGS) && game.loc == objects[EGGS].plac)) {
rspeak(NOTHING_HAPPENS);
return GO_CLEAROBJ;
} else if (id == FUM) {
goto fum;
} else {
/* Bring back troll if we steal the eggs back from him before
* crossing. */
@ -222,6 +224,7 @@ static phase_codes_t bigwords(vocab_t id)
return GO_CLEAROBJ;
}
} else {
fum:
if (game.loc == LOC_GIANTROOM) {
rspeak(START_OVER);
} else {