From 9f2322b1f86a7588b687112a5added37f7a9980c Mon Sep 17 00:00:00 2001 From: "nethack.rankin" Date: Sat, 22 Mar 2008 17:32:10 +0000 Subject: [PATCH] tweak probing while swallowed (trunk only) Follow up to the patch that adds a fake inventory entry for the swallowed hero when probing an engulfer. Make the header for the hero be plural to match those of object classes, and prefix the hero entry itself with a/an to reflect its count of 1. | Swallowed Creature -> Swallowed Creatures | > - elven ranger called wizard -> > - an elven ranger called wizard --- src/pickup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pickup.c b/src/pickup.c index 8388ef5b4..4d6ff2fae 100644 --- a/src/pickup.c +++ b/src/pickup.c @@ -812,7 +812,7 @@ boolean FDECL((*allow), (OBJ_P));/* allow function */ any = zeroany; if (sorted && n > 1) { - Sprintf(buf, "%s Creature", + Sprintf(buf, "%s Creatures", is_animal(u.ustuck->data) ? "Swallowed" : "Engulfed"); add_menu(win, NO_GLYPH, &any, 0, 0, iflags.menu_headings, buf, MENU_UNSELECTED); @@ -823,7 +823,7 @@ boolean FDECL((*allow), (OBJ_P));/* allow function */ add_menu(win, mon_to_glyph(&youmonst), &any, /* fake inventory letter, no group accelerator */ CONTAINED_SYM, 0, - ATR_NONE, self_lookat(buf), MENU_UNSELECTED); + ATR_NONE, an(self_lookat(buf)), MENU_UNSELECTED); } end_menu(win, qstr);