Do not base endgame bonus on arbitrary messages

This may break save files, but doesn't, due to padding
This commit is contained in:
NHOrus 2017-07-14 15:40:59 +03:00
parent 6a90dcd017
commit 3d2ba18355
3 changed files with 17 additions and 12 deletions

View file

@ -236,13 +236,16 @@ static void blast(void)
!game.closed)
rspeak(REQUIRES_DYNAMITE);
else {
if (HERE(ROD2))
game.bonus = SPLATTER_MESSAGE;
else if (game.loc == LOC_NE)
game.bonus = DEFEAT_MESSAGE;
else
game.bonus = VICTORY_MESSAGE;
rspeak(game.bonus);
if (HERE(ROD2)) {
game.bonus = splatter;
rspeak(SPLATTER_MESSAGE);
} else if (game.loc == LOC_NE) {
game.bonus = defeat;
rspeak(DEFEAT_MESSAGE);
} else {
game.bonus = victory;
rspeak(VICTORY_MESSAGE);
}
terminate(endgame);
}
}