]> granicus.if.org Git - nethack/commitdiff
messages when destroying a chest
authorcohrs <cohrs>
Fri, 5 Jul 2002 15:58:16 +0000 (15:58 +0000)
committercohrs <cohrs>
Fri, 5 Jul 2002 15:58:16 +0000 (15:58 +0000)
Remove the special case of "the" vs "a" in chest_shatter_msg(), just
use an/An as appropriate.

src/lock.c

index 58da7e690478fceace73b5438b90b55711324e5e..59be265381bb5ccf6615a75364aad7d5c05c8aa3 100644 (file)
@@ -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 */