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
This commit is contained in:
nethack.rankin
2008-03-22 17:32:10 +00:00
parent 17f63949bc
commit 9f2322b1f8

View File

@@ -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);