Make rope golem have some death drops

This commit is contained in:
Pasi Kallinen
2022-02-26 23:46:55 +02:00
parent d0f349cbd1
commit 9e666b75f6
2 changed files with 8 additions and 0 deletions

View 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

View File

@@ -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--)