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:
nethack.rankin
2002-11-21 00:47:12 +00:00
parent 5701729bc1
commit 7b9f2f6e3e
5 changed files with 22 additions and 9 deletions

View File

@@ -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 ); */