stealing heaven
Fix the reported problem of getting impossible warnings for unpaid inventory items during final disclosure if you level teleport out of the dungeon while holding shop goods. The fix makes you trigger a shop robbery first; that required a minor end of game change to prevent the shopkeeper from seeming to tag along (shk would take your possessions as if you'd died on the shop level).
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* SCCS Id: @(#)end.c 3.4 2002/10/04 */
|
||||
/* SCCS Id: @(#)end.c 3.4 2002/11/20 */
|
||||
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
|
||||
@@ -690,7 +690,7 @@ die:
|
||||
|
||||
if (how != PANICKED) {
|
||||
/* these affect score and/or bones, but avoid them during panic */
|
||||
taken = paybill(how != QUIT);
|
||||
taken = paybill((how == ESCAPED) ? -1 : (how != QUIT));
|
||||
paygd();
|
||||
clearpriests();
|
||||
} else taken = FALSE; /* lint; assert( !bones_ok ); */
|
||||
|
||||
Reference in New Issue
Block a user