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.
This commit is contained in:
cohrs
2003-03-15 21:42:34 +00:00
parent 6746cebac9
commit 79735fde8b
2 changed files with 2 additions and 6 deletions

View 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

View 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) {