from <Someone>: #rub touchstone

<Someone>'s message said this was committed, but the cvs repository
didn't reflect his changes.

> Subject: patch: #rub touchstone
> Date: Wed, 20 Feb 2002 23:33:27 -0800
> <email deleted>
>
> Implement <Someone>'s suggestion.
>
> - allow the #rub command to apply to gray stones
> - update various doc & help files to reflect the change
>
> Committed to CVS.
This commit is contained in:
nethack.rankin
2002-02-24 03:19:20 +00:00
parent 3ae126c83f
commit 4bc3561a96
6 changed files with 22 additions and 8 deletions

View File

@@ -817,9 +817,12 @@ register const char *let,*word;
|| (!strcmp(word, "tin") &&
(otyp != CORPSE || !tinnable(otmp)))
|| (!strcmp(word, "rub") &&
(otmp->oclass == TOOL_CLASS &&
otyp != OIL_LAMP && otyp != MAGIC_LAMP &&
otyp != BRASS_LANTERN))
((otmp->oclass == TOOL_CLASS &&
otyp != OIL_LAMP && otyp != MAGIC_LAMP &&
otyp != BRASS_LANTERN) ||
(otmp->oclass == GEM_CLASS &&
otyp != LUCKSTONE && otyp != LOADSTONE &&
otyp != TOUCHSTONE && otyp != FLINT)))
|| ((!strcmp(word, "use or apply") ||
!strcmp(word, "untrap with")) &&
/* Picks, axes, pole-weapons, bullwhips */