]> granicus.if.org Git - nethack/commit
shop bones
authornethack.rankin <nethack.rankin>
Fri, 2 Mar 2007 03:28:25 +0000 (03:28 +0000)
committernethack.rankin <nethack.rankin>
Fri, 2 Mar 2007 03:28:25 +0000 (03:28 +0000)
commit23eb08a4621750de14d4b144949116f0ff7e5306
tree8f7c5751b693e206bee94c65b672033b53429b2d
parentc5450cbe5e4a6f6db13c7da6c66d6c4477c02cde
shop bones

     Dying at a shop doorway, or at the free spot one step in, while not
owing the shopkeeper anything would yield "<shk> gratefully inherites all
your possessions" but leave those possesions where the next hero could
just pick them up for free.  Move them all the way inside the shop, as
happens when the hero dies while owing the shk.  Also, if hero has gold
left after shopkeeper takes any payment owed, force it to go into shk's
inventory instead of having it end up in the pile of other stuff.

     finish_paybill() duplicated much of drop_upon_death(), but not the
two-weapon hack to avoid curse() causing hero's secondary weapon to be
dropped while in the midst of removing it from inventory (but unlike the
old 3.4.1 panic for that, this one just triggered a warning about nonzero
worn mask).  It also lacked the named fruit fixup, whatever that does.
Make finish_paybill() call drop_upon_death() instead of copying it.
doc/fixes34.4
include/extern.h
src/bones.c
src/shk.c