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:
13
src/apply.c
13
src/apply.c
@@ -1146,13 +1146,24 @@ light_cocktail(obj)
|
||||
begin_burn(obj, FALSE);
|
||||
}
|
||||
|
||||
static NEARDATA const char cuddly[] = { TOOL_CLASS, 0 };
|
||||
static NEARDATA const char cuddly[] = { TOOL_CLASS, GEM_CLASS, 0 };
|
||||
|
||||
int
|
||||
dorub()
|
||||
{
|
||||
struct obj *obj = getobj(cuddly, "rub");
|
||||
|
||||
if (obj && obj->oclass == GEM_CLASS) {
|
||||
if (obj->otyp == FLINT || obj->otyp == LUCKSTONE ||
|
||||
obj->otyp == LOADSTONE || obj->otyp == TOUCHSTONE) {
|
||||
use_stone(obj);
|
||||
return 1;
|
||||
} else {
|
||||
pline("Sorry, I don't know how to use that.");
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
if(!obj || (obj != uwep && !wield_tool(obj))) return 0;
|
||||
|
||||
/* now uwep is obj */
|
||||
|
||||
Reference in New Issue
Block a user