From: nethack.allison Date: Sat, 16 Mar 2002 13:57:08 +0000 (+0000) Subject: >Rubbing a clove of garlic on a gray stone to see if it went "scritch, X-Git-Tag: MOVE2GIT~2963 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ce6025df6e78ac6943c8d4c30972b15c7224d7e2;p=nethack >Rubbing a clove of garlic on a gray stone to see if it went "scritch, >scritch": "You make scratch marks on the stone". --- diff --git a/src/apply.c b/src/apply.c index b11c00e09..f127f17b5 100644 --- a/src/apply.c +++ b/src/apply.c @@ -1827,7 +1827,7 @@ struct obj *otmp; struct obj *obj; char allowall[3]; 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\""; unsigned material; @@ -1866,7 +1866,7 @@ struct obj *otmp; } if (material == LIQUID || material == WAX || - material == CLOTH || material == WOOD) { + material == CLOTH || material == WOOD || material == GOLD) { switch(material) { case LIQUID: if (!obj->known) @@ -1887,12 +1887,24 @@ struct obj *otmp; goto see_streaks; /* okay even if not touchstone */ /*NOTREACHED*/ break; + case GOLD: + color = "golden"; + goto see_streaks; + /*NOTREACHED*/ + break; } 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) { - pline(ambiguous); + pline(ambiguous_scratch); return; } @@ -1917,7 +1929,7 @@ struct obj *otmp; /* FALLTHROUGH */ case RING_CLASS: 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; } color = c_obj_colors[objects[obj->otyp].oc_color];