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.
This commit is contained in:
copperwater
2019-01-26 18:32:02 -05:00
committed by Pasi Kallinen
parent 4129706a4c
commit 63d3d7b688
2 changed files with 11 additions and 0 deletions

View File

@@ -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

View File

@@ -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;