Improved behavior when magic words are said before they're seen.

Note: there is a tiny risk that this could break savefile
compatibility, as I swiped an unused int member in the game structure
and turned it into a bool. int and bool *should* be the same sixe...
This commit is contained in:
Eric S. Raymond 2023-04-05 19:49:38 -04:00
parent 4ce4de190e
commit fe378b9e13
7 changed files with 15 additions and 3 deletions

2
main.c
View file

@ -935,6 +935,8 @@ static void listobjects(void)
game.prop[RUG] = RUG_DRAGON;
if (obj == CHAIN)
game.prop[CHAIN] = CHAINING_BEAR;
if (obj == EGGS)
game.seenbigwords = true;
--game.tally;
/* Note: There used to be a test here to see whether the
* player had blown it so badly that he could never ever see