curing deafness
Make healing magic which cures blindness also cure deafness. So, drinking non-cursed potion of healing or any extra healing or full healing; breathing fumes from blessed potion of healing or non-cursed potion of extra healing or any potion of full healing; prayer reward to cure blindness as a minor trouble. (Doesn't affect unicorn horns which already treat deafness and blindness as two distinct troubles that are eligible to be cured.) More of a missing feature than a bug fix, so I listed it in the new features section of the fixes file.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* NetHack 3.6 potion.c $NHDT-Date: 1547518427 2019/01/15 02:13:47 $ $NHDT-Branch: NetHack-3.6.2-beta01 $:$NHDT-Revision: 1.159 $ */
|
||||
/* NetHack 3.6 potion.c $NHDT-Date: 1549074254 2019/02/02 02:24:14 $ $NHDT-Branch: NetHack-3.6.2-beta01 $:$NHDT-Revision: 1.160 $ */
|
||||
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
||||
/*-Copyright (c) Robert Patrick Rankin, 2013. */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
@@ -1161,6 +1161,8 @@ register boolean curesick, cureblind;
|
||||
mundane 'dirt', but if it doesn't, blindness isn't cured */
|
||||
u.ucreamed = 0;
|
||||
make_blinded(0L, TRUE);
|
||||
/* heal deafness too */
|
||||
make_deaf(0L, TRUE);
|
||||
}
|
||||
if (curesick) {
|
||||
make_vomiting(0L, TRUE);
|
||||
@@ -1642,8 +1644,10 @@ register struct obj *obj;
|
||||
u.uhp++, context.botl = 1;
|
||||
if (obj->blessed)
|
||||
cureblind = TRUE;
|
||||
if (cureblind)
|
||||
if (cureblind) {
|
||||
make_blinded(0L, !u.ucreamed);
|
||||
make_deaf(0L, TRUE);
|
||||
}
|
||||
exercise(A_CON, TRUE);
|
||||
break;
|
||||
case POT_SICKNESS:
|
||||
|
||||
Reference in New Issue
Block a user