From d34e557df5076453be7f8970da001ed835fbd2dc Mon Sep 17 00:00:00 2001 From: "nethack.rankin" Date: Thu, 21 Jun 2007 02:15:26 +0000 Subject: [PATCH] very old death drop bug From an entry in $cvsroot/shared/bugs/buglist From a bug report: when item weights were all scaled up by a factor of 10 for 3.1.0, the code controlling random item drops by monsters still limited small ones to dropping things of 3 weight units of less. Scale that up to 30. --- doc/fixes34.4 | 1 + src/mon.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/fixes34.4 b/doc/fixes34.4 index fb6ec7710..08c682f0f 100644 --- a/doc/fixes34.4 +++ b/doc/fixes34.4 @@ -356,6 +356,7 @@ using weapon to kill tame engulfer from inside triggered "placing defunct monster onto map?" warning nymphs could steal carried boulders amnesia of object discoveries would never forget the very last one +code controlling item drops by small monsters still used pre-3.1.0 weight Platform- and/or Interface-Specific Fixes diff --git a/src/mon.c b/src/mon.c index 25ceed878..1e3076fd1 100644 --- a/src/mon.c +++ b/src/mon.c @@ -2027,7 +2027,7 @@ int dest; otyp = otmp->otyp; if (mdat->msize < MZ_HUMAN && otyp != FOOD_RATION && otyp != LEASH && otyp != FIGURINE && - (otmp->owt > 3 || + (otmp->owt > 30 || objects[otyp].oc_big /*oc_bimanual/oc_bulky*/ || is_spear(otmp) || is_pole(otmp) || otyp == MORNING_STAR)) {