]> granicus.if.org Git - nethack/commit
treasure drop drop (trunk only)
authornethack.rankin <nethack.rankin>
Thu, 19 Jul 2007 07:02:46 +0000 (07:02 +0000)
committernethack.rankin <nethack.rankin>
Thu, 19 Jul 2007 07:02:46 +0000 (07:02 +0000)
commit16ad2bd0b85ef63cc83759ffeeb40cef90797811
tree7187d20a7c26cdd77a40439216ce9e8f4ab71ebc
parent83bb85c8af603bc1f7afc386ce1fd06a11639228
treasure drop drop (trunk only)

     From the newsgroup:  objects created when killing a monster over
water weren't being affected by falling into the water.  The objects were
being created directly on the floor instead of being dropped as if they'd
been in the monster's inventory.  This fixes the random "treasure drop"
item, but special items--like dragon scales and the miscellaneous golem
remains--produced by make_corpse() are still put directly onto the floor.

     The check to prevent small monsters from dropping big objects was
overly complex, possibly due to the 3.1.x weight threshold bug which was
just recently fixed.  Food rations and leashes pass the weight test so
don't need to be special cased; spears, polearms, and morning stars fail
the weight test.  (Javelins are an exception; they pass the weight test
so are allowed to be dropped by small monsters now since spears aren't
special cased any more.)
doc/fixes35.0
src/mon.c