>Rubbing a clove of garlic on a gray stone to see if it went "scritch,

>scritch": "You make scratch marks on the stone".
This commit is contained in:
nethack.allison
2002-03-16 13:57:08 +00:00
parent 99329cddf6
commit ce6025df6e
+17 -5
View File
@@ -1827,7 +1827,7 @@ struct obj *otmp;
struct obj *obj; struct obj *obj;
char allowall[3]; char allowall[3];
const char *color = 0; const char *color = 0;
static const char *ambiguous = "You make scratch marks on the stone."; static const char *ambiguous_scratch = "You make scratch marks on the stone.";
const char *scritch = "\"scritch, scritch\""; const char *scritch = "\"scritch, scritch\"";
unsigned material; unsigned material;
@@ -1866,7 +1866,7 @@ struct obj *otmp;
} }
if (material == LIQUID || material == WAX || if (material == LIQUID || material == WAX ||
material == CLOTH || material == WOOD) { material == CLOTH || material == WOOD || material == GOLD) {
switch(material) { switch(material) {
case LIQUID: case LIQUID:
if (!obj->known) if (!obj->known)
@@ -1887,12 +1887,24 @@ struct obj *otmp;
goto see_streaks; /* okay even if not touchstone */ goto see_streaks; /* okay even if not touchstone */
/*NOTREACHED*/ /*NOTREACHED*/
break; break;
case GOLD:
color = "golden";
goto see_streaks;
/*NOTREACHED*/
break;
} }
return; return;
} }
if (is_flimsy(obj)) {
/* Objects passing the is_flimsy() test will not
scratch a stone. They will leave streaks on
non-touchstones and touchstones alike */
color = c_obj_colors[objects[obj->otyp].oc_color];
goto see_streaks;
}
if (otmp->otyp != TOUCHSTONE) { if (otmp->otyp != TOUCHSTONE) {
pline(ambiguous); pline(ambiguous_scratch);
return; return;
} }
@@ -1917,7 +1929,7 @@ struct obj *otmp;
/* FALLTHROUGH */ /* FALLTHROUGH */
case RING_CLASS: case RING_CLASS:
if (objects[obj->otyp].oc_material == GLASS) { if (objects[obj->otyp].oc_material == GLASS) {
pline(ambiguous); /* yet not amibguous if a known touchstone */ pline(ambiguous_scratch); /* yet not ambiguous if a known touchstone */
return; return;
} }
color = c_obj_colors[objects[obj->otyp].oc_color]; color = c_obj_colors[objects[obj->otyp].oc_color];