move some text strings from drawing.c over to the file that uses them
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* NetHack 3.6 drawing.c $NHDT-Date: 1573943500 2019/11/16 22:31:40 $ $NHDT-Branch: NetHack-3.6 $:$NHDT-Revision: 1.64 $ */
|
||||
/* NetHack 3.6 drawing.c $NHDT-Date: 1588778111 2020/05/06 15:15:11 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.76 $ */
|
||||
/* Copyright (c) NetHack Development Team 1992. */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
|
||||
@@ -21,9 +21,6 @@
|
||||
#define C(n)
|
||||
#endif
|
||||
|
||||
const char invisexplain[] = "remembered, unseen, creature",
|
||||
altinvisexplain[] = "unseen creature"; /* for clairvoyance */
|
||||
|
||||
/* Default object class symbols. See objclass.h.
|
||||
* {symbol, name, explain}
|
||||
* name: used in object_detect().
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* NetHack 3.6 pager.c $NHDT-Date: 1585776162 2020/04/01 21:22:42 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.186 $ */
|
||||
/* NetHack 3.6 pager.c $NHDT-Date: 1588778117 2020/05/06 15:15:17 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.188 $ */
|
||||
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
||||
/*-Copyright (c) Robert Patrick Rankin, 2018. */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
@@ -37,6 +37,9 @@ static void NDECL(domenucontrols);
|
||||
extern void NDECL(port_help);
|
||||
#endif
|
||||
|
||||
static const char invisexplain[] = "remembered, unseen, creature",
|
||||
altinvisexplain[] = "unseen creature"; /* for clairvoyance */
|
||||
|
||||
/* Returns "true" for characters that could represent a monster's stomach. */
|
||||
static boolean
|
||||
is_swallow_sym(c)
|
||||
@@ -980,7 +983,6 @@ struct permonst **for_supplement;
|
||||
}
|
||||
|
||||
if (sym == DEF_INVISIBLE) {
|
||||
extern const char altinvisexplain[]; /* drawing.c */
|
||||
/* for active clairvoyance, use alternate "unseen creature" */
|
||||
boolean usealt = (EDetect_monsters & I_SPECIAL) != 0L;
|
||||
const char *unseen_explain = !usealt ? invisexplain : altinvisexplain;
|
||||
|
||||
Reference in New Issue
Block a user