]> granicus.if.org Git - nethack/commit
annoying shop bug
authornethack.rankin <nethack.rankin>
Sat, 23 Mar 2002 06:53:09 +0000 (06:53 +0000)
committernethack.rankin <nethack.rankin>
Sat, 23 Mar 2002 06:53:09 +0000 (06:53 +0000)
commit365a76ca283717bb30cf31b7944e6e959d4e3ff0
tree614cb6e4ec4336927b1e5f641c2d6baec06d84c9
parentdb95c38e2008aef495365aed6b6ab24c98521165
annoying shop bug
     The shop billing code assumes that food marked partly eaten
is worthless, but the eating code was changed to make sure that any
eating attempt will never leave food marked as not partly eaten.
The end result is that non-corpse food which is consumed in a
single byte can be eaten off shop floors for free, and if eaten
from inventory--so already on shop bill--the "Ix" display of used
up goods lists the item as partly eaten (with right price though).

     This fix makes single-byte food be handled the same as other
food:  the first byte taken causes the food to be auto-purchased
immediately instead of waiting until it's used up to add it to the
shopping bill.
doc/fixes34.1
src/eat.c