]> granicus.if.org Git - nethack/commitdiff
swallowing zombies/mummies
authorarromdee <arromdee>
Mon, 21 Jan 2002 22:54:17 +0000 (22:54 +0000)
committerarromdee <arromdee>
Mon, 21 Jan 2002 22:54:17 +0000 (22:54 +0000)
doc/fixes33.2
src/uhitm.c

index 4409cbce19312a661b17a39686cb6dae4d2addb5..4be625ad296393bc5854ae3e62a8c452cfbd0448 100644 (file)
@@ -403,6 +403,7 @@ spells shouldn't do negative damage
 when reading spellbooks, don't "continue studying" wrong book if original one
        gets destroyed after previous reading attempt has been interrupted
 correctly handle polymorphed quest leader
+swallowing zombies/mummies whole makes you sick, like when eating them normally
 
 
 Platform- and/or Interface-Specific Fixes
index 24efaf773575c49a28220e0ef1e9bd9f66b0c25a..1ec461d94f8110f050c7f737b098c61f72e5d303 100644 (file)
@@ -1863,8 +1863,18 @@ use_weapon:
                                if (mon->data == &mons[PM_SHADE])
                                    Your("attempt to surround %s is harmless.",
                                        mon_nam(mon));
-                               else
+                               else {
                                    sum[i]= gulpum(mon,mattk);
+                                   if (sum[i] == 2 &&
+                                           (mon->data->mlet == S_ZOMBIE ||
+                                               mon->data->mlet == S_MUMMY) &&
+                                           rn2(5) &&
+                                           !Sick_resistance) {
+                                       You_feel("%ssick.",
+                                           (Sick) ? "very " : "");
+                                       mdamageu(mon, rnd(8));
+                                   }
+                               }
                        } else
                                missum(mon, mattk);
                        break;