]> granicus.if.org Git - nethack/commitdiff
Giants occasionally have a weapon
authorPasi Kallinen <paxed@alt.org>
Tue, 24 Jan 2023 18:54:39 +0000 (20:54 +0200)
committerPasi Kallinen <paxed@alt.org>
Tue, 24 Jan 2023 18:54:39 +0000 (20:54 +0200)
doc/fixes3-7-0.txt
src/makemon.c

index d11b215f12c82711ce2329e47b0ef8cf2a27cb13..5c03167fc2cca508fa2cbbf80598a3c1b75b8322 100644 (file)
@@ -1098,6 +1098,7 @@ if a grave is created with the corpse lying on top (bones), don't find a
        corpse or release a zombie or mummy when digging it up
 kicking a headstone might summon a ghoul
 eating garlic makes nearby monsters flee
+giants occasionally get a battle axe or a two-handed sword
 
 
 Fixes to 3.7.0-x Problems that Were Exposed Via git Repository
index 4f956f2eb49769f8a094b7441ad50f12c36dc91b..5e63da39a5ea3a5265c3ca0200bf0d317f1b0df1 100644 (file)
@@ -173,6 +173,8 @@ m_initweap(register struct monst *mtmp)
     case S_GIANT:
         if (rn2(2))
             (void) mongets(mtmp, (mm != PM_ETTIN) ? BOULDER : CLUB);
+        if ((mm != PM_ETTIN) && !rn2(5))
+            (void) mongets(mtmp, rn2(2) ? TWO_HANDED_SWORD : BATTLE_AXE);
         break;
     case S_HUMAN:
         if (is_mercenary(ptr)) {