From: cohrs Date: Fri, 5 Jul 2002 15:58:16 +0000 (+0000) Subject: messages when destroying a chest X-Git-Tag: MOVE2GIT~2670 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=194e43f8823742da1e06cb507c91793958146e00;p=nethack messages when destroying a chest Remove the special case of "the" vs "a" in chest_shatter_msg(), just use an/An as appropriate. --- diff --git a/src/lock.c b/src/lock.c index 58da7e690..59be26538 100644 --- a/src/lock.c +++ b/src/lock.c @@ -872,12 +872,12 @@ STATIC_OVL void chest_shatter_msg(otmp) struct obj *otmp; { - const char *disposition, *article = (otmp->quan > 1L) ? "A" : "The"; + const char *disposition; const char *thing; long save_Blinded; if (otmp->oclass == POTION_CLASS) { - You("%s a %s shatter!", Blind ? "hear" : "see", bottlename()); + You("%s %s shatter!", Blind ? "hear" : "see", an(bottlename())); if (!breathless(youmonst.data) || haseyes(youmonst.data)) potionbreathe(otmp); return; @@ -904,7 +904,7 @@ struct obj *otmp; default: disposition = "is destroyed"; break; } - pline("%s %s %s!", article, thing, disposition); + pline("%s %s!", An(thing), disposition); } #endif /* OVLB */