]> granicus.if.org Git - nethack/commitdiff
gold and touchstones
authorcohrs <cohrs>
Sat, 15 Mar 2003 21:42:34 +0000 (21:42 +0000)
committercohrs <cohrs>
Sat, 15 Mar 2003 21:42:34 +0000 (21:42 +0000)
Implement Pat's suggestion of allowing even identified touchstones
to test gold, removing the getobj hack recently added.  This actually
brings the touchstone a bit more in line with the data.base entry.

doc/fixes35.0
src/invent.c

index a53a1adcd52e807b196b56ce851288930681a9d9..ed433419a775101a6f7a5465477d2f51e9801c3a 100644 (file)
@@ -21,6 +21,7 @@ two-weapon combat makes two attacks instead of having one attack hit with
 apply weapon skill to-hit bonus or penalty to bare-handed attacks
 only give monk's "cumbersome armor" message when the armor penalty causes
        an attack to miss
+identified touchstone can rub on gold like the data.base entry says
 
 
 Platform- and/or Interface-Specific Fixes
index 310d9ad348959cb3eb80f8867e12bfe6c542363c..0ac4fbb455a8f5bb9c696da5d8cfa5feca2e11c0 100644 (file)
@@ -968,12 +968,7 @@ register const char *let,*word;
                }
                if(ilet == def_oc_syms[COIN_CLASS]) {
                        if (!usegold) {
-                           if (!strncmp(word, "rub on ", 7)) {
-                               /* the dangers of building sentences... */
-                               You("cannot rub gold%s.", word + 3);
-                           } else {
-                               You("cannot %s gold.", word);
-                           }
+                           You("cannot %s gold.", word);
                            return(struct obj *)0;
 #ifndef GOLDOBJ
                        } else if (!allowgold) {