unicorn horn vs sustain ability (trunk only)

Forwarded from newsgroup by <Someone> in February, 2005:  non-cursed
unicorn horn fixes lost Str/Con/&c stats even when ring of sustain ability
is supposedly locking those at current value.  This makes unicorn horn
honor the Fixed_abil intrinsic.  The potion and spell of restore ability
still override that, so they now have potential for use even after player
has acquired a unihorn.  Prayer also continues to override Fixed_abil.
Major prayer result to heal crippled strength now attempts to uncurse a
ring of sustain ability (or gloves or weapon covering it up--similar
situation as with cursed levitation).  Minor prayer result to fix lost
stats resets those without attempting to do anything about Fixed_abil.
This commit is contained in:
nethack.rankin
2007-05-29 03:52:02 +00:00
parent ef3f758569
commit 8d880dd143
4 changed files with 26 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
/* SCCS Id: @(#)potion.c 3.5 2007/02/05 */
/* SCCS Id: @(#)potion.c 3.5 2007/05/29 */
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
/* NetHack may be freely redistributed. See license for details. */
@@ -478,6 +478,7 @@ peffects(otmp)
pline("Ulch! This makes you feel mediocre!");
break;
} else {
/* unlike unicorn horn, overrides Fixed_abil */
pline("Wow! This makes you feel %s!",
(otmp->blessed) ?
(unfixable_trouble_count(FALSE) ? "better" : "great")