]> granicus.if.org Git - nethack/commitdiff
Make Juiblex resist magical digging from inside
authorPasi Kallinen <paxed@alt.org>
Wed, 18 Mar 2020 07:16:22 +0000 (09:16 +0200)
committerPasi Kallinen <paxed@alt.org>
Wed, 18 Mar 2020 07:16:26 +0000 (09:16 +0200)
Juiblex should be a little bit harder to beat than zapping a digging
wand once you've gotten swallowed and then whacking him once.

Make his HP halve every time you zap digging instead of setting it
to 1.

Change via UnNetHack.

doc/fixes37.0
src/dig.c

index 16e3a4feb3163e9bb57f3edb91abee07cfb334fe..1a63ba915b634826328091410efaf536a0f1f975 100644 (file)
@@ -83,6 +83,7 @@ revamp amnesia to forget skills instead of objects or maps
 when Punished and carrying the iron ball and levitating, hurtling in the
        opposite direction of a thrown object didn't bring along the chain
 recognize "kirin" as alias for "ki-rin" when asked to create a monster
+make unique swallowing monsters (Juiblex) resist magical digging from inside
 
 
 Fixes to 3.7.0-x Problems that Were Exposed Via git Repository
index 64dc5f1177298b97c8db593ceec692c99bd75e42..05cdbbdd7a77192e40133c35b571f82a46004a8b 100644 (file)
--- a/src/dig.c
+++ b/src/dig.c
@@ -1409,7 +1409,10 @@ zap_dig()
             if (is_animal(mtmp->data))
                 You("pierce %s %s wall!", s_suffix(mon_nam(mtmp)),
                     mbodypart(mtmp, STOMACH));
-            mtmp->mhp = 1; /* almost dead */
+            if (unique_corpstat(mtmp->data))
+                mtmp->mhp = (mtmp->mhp + 1) / 2;
+            else
+                mtmp->mhp = 1; /* almost dead */
             expels(mtmp, mtmp->data, !is_animal(mtmp->data));
         }
         return;