fix part of #H43 - probing feedback when engulfed

From a bug report, feedback of the form

Status of the fog cloud (neutral):  Level 2  HP 5(5)  AC 0, engulfed you.

sounds odd.  "Engulfing you" seems a little odd as well, since the engulf
has already taken place, but I think it works out better.  For symmetry,
replace "swallowed you" by "swallowing you".  But that one will never
occur, because all the animals with engulfing attacks will now yield the
more precise and much more significant "digesting you".

     The code formatting is strange.  Lining up the text parts works out
a lot better than attempting to fit the associated tests within the space
left after the large indentation being used.
This commit is contained in:
nethack.rankin
2006-02-21 06:07:22 +00:00
parent b6eff2405a
commit b6b522398d
2 changed files with 9 additions and 7 deletions

View File

@@ -193,7 +193,8 @@ candles should not be fireproof
monsters could end up off the left side of the Ranger quest start level
worms don't have scales, krakens have tentacles, stalkers have a head
you no longer "fry to a crisp" as a water elemental
leather spellbooks violate vegetarian conduct
eating leather spellbook violates vegetarian conduct
more precise probing/stethoscope feedback when engulfed
Platform- and/or Interface-Specific Fixes

View File

@@ -1,4 +1,4 @@
/* SCCS Id: @(#)pline.c 3.5 2005/10/01 */
/* SCCS Id: @(#)pline.c 3.5 2006/02/20 */
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
/* NetHack may be freely redistributed. See license for details. */
@@ -357,11 +357,12 @@ register struct monst *mtmp;
if (mtmp->mundetected) Strcat(info, ", concealed");
if (mtmp->minvis) Strcat(info, ", invisible");
if (mtmp == u.ustuck) Strcat(info,
(sticks(youmonst.data)) ? ", held by you" :
u.uswallow ? (is_animal(u.ustuck->data) ?
", swallowed you" :
", engulfed you") :
", holding you");
sticks(youmonst.data) ? ", held by you" :
!u.uswallow ? ", holding you" :
attacktype_fordmg(u.ustuck->data, AT_ENGL, AD_DGST) ?
", digesting you" :
is_animal(u.ustuck->data) ? ", swallowing you" :
", engulfing you");
#ifdef STEED
if (mtmp == u.usteed) Strcat(info, ", carrying you");
#endif