]> granicus.if.org Git - nethack/commitdiff
Make wood golem death drops more varied
authorPasi Kallinen <paxed@alt.org>
Tue, 22 Feb 2022 12:57:41 +0000 (14:57 +0200)
committerPasi Kallinen <paxed@alt.org>
Tue, 22 Feb 2022 12:57:41 +0000 (14:57 +0200)
doc/fixes3-7-0.txt
src/mon.c

index 8eab4d51bb6a866e5551e9800c19d40ea8484eb1..2fe92c56fdea13c36dd338caad51e71c5917c76b 100644 (file)
@@ -812,6 +812,8 @@ heroes starting with a spell have at least one level one spell, and
 huge monsters get easily out of pits
 give a message when a trapped monster frees itself from some trap
 change kitchen sink glyph to a white {
+killed wood golem has a chance to also drop small shields, clubs,
+       elven spears, and boomerangs
 
 
 Fixes to 3.7.0-x Problems that Were Exposed Via git Repository
index 11c0e833cde56cfc38ed5286ba5d3f007e269eca..ac59af910d3d881ae5ffdb8e734927b6bd191173 100644 (file)
--- a/src/mon.c
+++ b/src/mon.c
@@ -598,7 +598,12 @@ make_corpse(struct monst *mtmp, unsigned int corpseflags)
     case PM_WOOD_GOLEM:
         num = d(2, 4);
         while (num--) {
-            obj = mksobj_at(QUARTERSTAFF, x, y, TRUE, FALSE);
+            obj = mksobj_at(
+                            rn2(2) ? QUARTERSTAFF
+                            : rn2(3) ? SMALL_SHIELD
+                            : rn2(3) ? CLUB
+                            : rn2(3) ? ELVEN_SPEAR : BOOMERANG,
+                            x, y, TRUE, FALSE);
         }
         free_mgivenname(mtmp);
         break;