]> granicus.if.org Git - nethack/commitdiff
confused remove curse
authornethack.rankin <nethack.rankin>
Fri, 15 Apr 2005 02:59:03 +0000 (02:59 +0000)
committernethack.rankin <nethack.rankin>
Fri, 15 Apr 2005 02:59:03 +0000 (02:59 +0000)
     When confused remove curse acts upon an object to randomly bless or
curse it, clear the bknown flag.  Do this for all objects which get subjected
to the effect, even ones which are already blessed or cursed and hence don't
change state.

doc/fixes34.4
src/read.c

index 12f2b40c97867064ca03758a52097fe03b0cd4dc..2bb0164115b128aa7a1ae5bda0fd4bf4973688f1 100644 (file)
@@ -112,6 +112,7 @@ vision was not updated when polymorphing a statue into a boulder
 armor which auto-curses when worn by hero should do same if worn by monster
 limit how high accuracy, damage, or protection can become via eating rings
 when blinded hero detects a trap by touch, make sure it shows up on the map
+confused remove curse will cause loss of knowledge of items' curse/bless state
 
 
 Platform- and/or Interface-Specific Fixes
index c88d25aaafb676b46e34615e0a6ab54ab6c5b0ab..80def904dcdad9e979113426f55dbda1ab60b0bd 100644 (file)
@@ -1,4 +1,4 @@
-/*     SCCS Id: @(#)read.c     3.5     2005/03/28      */
+/*     SCCS Id: @(#)read.c     3.5     2005/04/14      */
 /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
 /* NetHack may be freely redistributed.  See license for details. */
 
@@ -970,6 +970,9 @@ struct obj *sobj;
 
                            if (confused) {
                                blessorcurse(obj, 2);
+                               /* lose knowledge of this object's curse/bless
+                                  state (even if it didn't actually change) */
+                               obj->bknown = 0;
                                /* blessorcurse() only affects uncursed items
                                   so no need to worry about price of water
                                   going down (hence no costly_alteration) */