From 9e666b75f63eca7e537f55ed8c02ce31ef9434f0 Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Sat, 26 Feb 2022 23:46:55 +0200 Subject: [PATCH] Make rope golem have some death drops --- doc/fixes3-7-0.txt | 1 + src/mon.c | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/doc/fixes3-7-0.txt b/doc/fixes3-7-0.txt index 2d6aa7ef9..cfb259257 100644 --- a/doc/fixes3-7-0.txt +++ b/doc/fixes3-7-0.txt @@ -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 diff --git a/src/mon.c b/src/mon.c index 3dd7a562f..4349a577d 100644 --- 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--)