From: cohrs Date: Sat, 15 Mar 2003 21:42:34 +0000 (+0000) Subject: gold and touchstones X-Git-Tag: MOVE2GIT~2072 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=79735fde8bfc30441a16db46b4d9ac41ec62caa1;p=nethack gold and touchstones 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. --- diff --git a/doc/fixes35.0 b/doc/fixes35.0 index a53a1adcd..ed433419a 100644 --- a/doc/fixes35.0 +++ b/doc/fixes35.0 @@ -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 diff --git a/src/invent.c b/src/invent.c index 310d9ad34..0ac4fbb45 100644 --- a/src/invent.c +++ b/src/invent.c @@ -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) {