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:
13
src/pline.c
13
src/pline.c
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user