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:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user