From c8c7c22a927d7edd7cc64b1ed2eb41f6d713ac9b Mon Sep 17 00:00:00 2001 From: arromdee Date: Mon, 21 Jan 2002 22:54:17 +0000 Subject: [PATCH] swallowing zombies/mummies --- doc/fixes33.2 | 1 + src/uhitm.c | 12 +++++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/doc/fixes33.2 b/doc/fixes33.2 index 4409cbce1..4be625ad2 100644 --- a/doc/fixes33.2 +++ b/doc/fixes33.2 @@ -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 diff --git a/src/uhitm.c b/src/uhitm.c index 24efaf773..1ec461d94 100644 --- a/src/uhitm.c +++ b/src/uhitm.c @@ -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;