Files
nethack/doc
nethack.rankin 6336dbbb65 fix #U1202 - shop robbery oversights
A user reported that when breaking potions inside a box in a shop, he
wasn't charged for them.  The code was calling stolen_value() as intended,
but that routine only charged for types of items which the shop normally
carries.  That meant that breaking the contents of a box in a general
store would charge for them but doing so in a tool shop would, not even
though the tool shopkeeper would gladly sell such things when you picked
them up instead of causing them to go away.

     When fixing this, I noticed that stolen_value() was only charging
for single items.  Most of the time that was right, because throwing and
kicking things always split one off, but there are cases (such as zapping
a wand of teleportation at shop goods) where an entire stack gets stolen
as a group.  This makes stolen_value() handle all quantities.
2004-11-20 01:41:01 +00:00
..
2002-01-05 21:05:47 +00:00
2002-01-05 21:05:47 +00:00
2002-01-05 21:05:47 +00:00
2002-01-05 21:05:47 +00:00
2002-01-11 18:02:22 +00:00
2003-05-11 15:09:24 +00:00
2002-01-05 21:05:47 +00:00
2002-01-05 21:05:47 +00:00
2002-01-05 21:05:47 +00:00
2002-01-05 21:05:47 +00:00
2002-01-05 21:05:47 +00:00
2002-01-05 21:05:47 +00:00
2002-01-05 21:05:47 +00:00
2002-01-05 21:05:47 +00:00
2002-01-05 21:05:47 +00:00
2003-05-11 13:40:01 +00:00
2003-08-26 15:11:58 +00:00
2004-11-20 01:41:01 +00:00
2004-10-22 02:02:49 +00:00
2003-11-16 04:20:29 +00:00
2002-01-05 21:05:47 +00:00
2002-01-05 21:05:47 +00:00
2004-03-27 05:07:17 +00:00
2004-03-27 05:07:17 +00:00
2002-01-05 21:05:47 +00:00
2002-01-05 21:05:47 +00:00