From 63d3d7b68804e29ffbc7f875771f65c7cded797b Mon Sep 17 00:00:00 2001 From: copperwater Date: Sat, 26 Jan 2019 18:32:02 -0500 Subject: [PATCH] You may survive food poisoning with a Con/100 chance Another feature from SliceHack. Randomly averting an instadeath might seem a little too generous, but the only time you get food poisoning is if you're a new player who hasn't learned about tainted corpses yet or if you just did something stupid. So, be a little nicer in those scenarios. If you survive, your Con silently decreases by 1. Hey, it's better than dying. --- doc/fixes37.0 | 1 + src/timeout.c | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/doc/fixes37.0 b/doc/fixes37.0 index 0eea5c110..1db6091d9 100644 --- a/doc/fixes37.0 +++ b/doc/fixes37.0 @@ -109,6 +109,7 @@ make baby purple worms attack shriekers make hero polymorphed into baby purple worm warned against shriekers confused scroll of light summons tame cancelled lights potions of hallucination can give enlightenment +add a small chance of surviving food poisoning Fixes to 3.7.0-x Problems that Were Exposed Via git Repository diff --git a/src/timeout.c b/src/timeout.c index 1340d311d..19552f64d 100644 --- a/src/timeout.c +++ b/src/timeout.c @@ -573,6 +573,16 @@ nh_timeout() make_vomiting(0L, TRUE); break; case SICK: + /* You might be able to bounce back from food poisoning, but not + * other forms of illness. */ + if ((u.usick_type & SICK_NONVOMITABLE) == 0 + && rn2(100) < ACURR(A_CON)) { + You("have recovered from your illness."); + make_sick(0, NULL, FALSE, SICK_ALL); + exercise(A_CON, FALSE); + adjattrib(A_CON, -1, 1); + break; + } You("die from your illness."); if (kptr && kptr->name[0]) { g.killer.format = kptr->format;