]> granicus.if.org Git - nethack/commitdiff
Make rope golem have some death drops
authorPasi Kallinen <paxed@alt.org>
Sat, 26 Feb 2022 21:46:55 +0000 (23:46 +0200)
committerPasi Kallinen <paxed@alt.org>
Sat, 26 Feb 2022 21:46:55 +0000 (23:46 +0200)
doc/fixes3-7-0.txt
src/mon.c

index 2d6aa7ef9ebe5f3c6a5bdac1074cd9744656d961..cfb259257f48b64037cead0701e9d6116ab78d9a 100644 (file)
@@ -824,6 +824,7 @@ if a lit potion of oil on the floor was launched by an explosion and it hit
        it could trigger an "obj_is_local" panic when end of game cleanup
        tried to extinguish it as a light source
 place_object() validated coordinates after using them to index level.objects
+killed rope golem may drop leashes and bullwhips
 
 
 Fixes to 3.7.0-x Problems that Were Exposed Via git Repository
index 3dd7a562ff10a883c36697bcc409d16029e5b24e..4349a577d0b1bc9ba87d540edd61ec8f77a6673a 100644 (file)
--- a/src/mon.c
+++ b/src/mon.c
@@ -607,6 +607,13 @@ make_corpse(struct monst *mtmp, unsigned int corpseflags)
         }
         free_mgivenname(mtmp);
         break;
+    case PM_ROPE_GOLEM:
+        num = rn2(3);
+        while (num-- > 0) {
+            obj = mksobj_at(rn2(2) ? LEASH : BULLWHIP, x, y, TRUE, FALSE);
+        }
+        free_mgivenname(mtmp);
+        break;
     case PM_LEATHER_GOLEM:
         num = d(2, 4);
         while (num--)