Do not base endgame bonus on arbitrary messages
This may break save files, but doesn't, due to padding
This commit is contained in:
parent
6a90dcd017
commit
3d2ba18355
3 changed files with 17 additions and 12 deletions
17
actions.c
17
actions.c
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue