rotten wraith corpse

sidestep the rotten partly eaten wraith corpse impossible() message by
causing rotten wraith corpses to immediately rot away completely
This commit is contained in:
cohrs
2002-02-10 20:19:24 +00:00
parent 77ba02a2b6
commit e5a5b5253e

View File

@@ -1244,8 +1244,17 @@ eatcorpse(otmp) /* called when a corpse is selected as food */
otmp->orotten = TRUE;
(void)touchfood(otmp);
retcode = 1;
} else
consume_oeaten(otmp, 2); /* oeaten >>= 2 */
}
if (!mons[otmp->corpsenm].cnutrit) {
/* no nutrution: rots away, no message if you passed out */
if (!retcode) pline_The("corpse rots away completely.");
if (carried(otmp)) useup(otmp);
else useupf(otmp, 1L);
retcode = 2;
}
if (!retcode) consume_oeaten(otmp, 2); /* oeaten >>= 2 */
} else {
pline("%s%s %s!",
!uniq ? "This " : !type_is_pname(&mons[mnum]) ? "The " : "",