]> granicus.if.org Git - nethack/commit
breaking lock of shop chest (trunk only)
authornethack.rankin <nethack.rankin>
Wed, 3 Jan 2007 03:58:31 +0000 (03:58 +0000)
committernethack.rankin <nethack.rankin>
Wed, 3 Jan 2007 03:58:31 +0000 (03:58 +0000)
commitdccedb99ba2bebb8a411ee973d1981872a19207e
treeec8b39e62902a6d024cc744d1f28f2dd0c2c016d
parent1354b380b5d6deadd6e1001df723cf15dacf0e78
breaking lock of shop chest (trunk only)

     From the newsgroup:  you weren't charged anything if you broke the
lock of a box or chest which was owned by a shop.  Force the hero to pay
for the damaged container; any contents remain owned by the shop and don't
affect the cost of the forced purchase.  This existing entry in fixes35.0
is adequate to cover the fix:

various actions--such as enchanting--performed on an unpaid shop object
either force the hero to buy the item (when its value is lowered) or
increase the current bill (when its value is raised)
include/extern.h
include/hack.h
src/dokick.c
src/lock.c
src/mkobj.c