Merge remote-tracking branch 'origin/NetHack-3.6.0'
This commit is contained in:
@@ -521,6 +521,32 @@ typedef unsigned char uchar;
|
||||
# define CONWAY /* Conway's Life level */
|
||||
#endif
|
||||
|
||||
/* #define DUMPLOG */ /* End-of-game dump logs */
|
||||
#ifdef DUMPLOG
|
||||
|
||||
#ifndef DUMPLOG_MSG_COUNT
|
||||
#define DUMPLOG_MSG_COUNT 50
|
||||
#endif
|
||||
|
||||
#ifndef DUMPLOG_FILE
|
||||
#define DUMPLOG_FILE "/tmp/nethack.%n.%d.log"
|
||||
/* DUMPLOG_FILE allows following placeholders:
|
||||
%% literal '%'
|
||||
%v version (eg. "3.6.1-0")
|
||||
%u game UID
|
||||
%t game start time, UNIX timestamp format
|
||||
%T current time, UNIX timestamp format
|
||||
%d game start time, YYYYMMDDhhmmss format
|
||||
%D current time, YYYYMMDDhhmmss format
|
||||
%n player name
|
||||
%N first character of player name
|
||||
DUMPLOG_FILE is not used if SYSCF is defined
|
||||
*/
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
/* End of Section 4 */
|
||||
|
||||
#ifdef TTY_TILES_ESCCODES
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* NetHack 3.6 extern.h $NHDT-Date: 1471112244 2016/08/13 18:17:24 $ $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.570 $ */
|
||||
/* NetHack 3.6 extern.h $NHDT-Date: 1489192904 2017/03/11 00:41:44 $ $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.583 $ */
|
||||
/* Copyright (c) Steve Creps, 1988. */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
|
||||
@@ -141,6 +141,8 @@ E int NDECL(getbones);
|
||||
|
||||
/* ### botl.c ### */
|
||||
|
||||
E char *NDECL(do_statusline1);
|
||||
E char *NDECL(do_statusline2);
|
||||
E int FDECL(xlev_to_rank, (int));
|
||||
E int FDECL(title_to_mon, (const char *, int *, int *));
|
||||
E void NDECL(max_rank_sz);
|
||||
@@ -268,6 +270,7 @@ E void NDECL(warnreveal);
|
||||
E int FDECL(dosearch0, (int));
|
||||
E int NDECL(dosearch);
|
||||
E void NDECL(sokoban_detect);
|
||||
E void NDECL(dump_map);
|
||||
E void FDECL(reveal_terrain, (int, int));
|
||||
|
||||
/* ### dig.c ### */
|
||||
@@ -1801,6 +1804,10 @@ E boolean FDECL(is_autopickup_exception, (struct obj *, BOOLEAN_P));
|
||||
|
||||
/* ### pline.c ### */
|
||||
|
||||
#ifdef DUMPLOG
|
||||
E void FDECL(dumplogmsg, (const char *));
|
||||
E void NDECL(dumplogfreemessages);
|
||||
#endif
|
||||
E void VDECL(pline, (const char *, ...)) PRINTF_F(1, 2);
|
||||
E void VDECL(Norep, (const char *, ...)) PRINTF_F(1, 2);
|
||||
E void NDECL(free_youbuf);
|
||||
@@ -2714,6 +2721,11 @@ E void FDECL(genl_status_threshold, (int, int, anything, int, int, int));
|
||||
#endif
|
||||
#endif
|
||||
|
||||
E void FDECL(dump_open_log, (time_t));
|
||||
E void NDECL(dump_close_log);
|
||||
E void FDECL(dump_redirect, (BOOLEAN_P));
|
||||
E void FDECL(dump_forward_putstr, (winid, int, const char*, int));
|
||||
|
||||
/* ### wizard.c ### */
|
||||
|
||||
E void NDECL(amulet);
|
||||
|
||||
@@ -201,6 +201,7 @@ struct instance_flags {
|
||||
boolean vision_inited; /* true if vision is ready */
|
||||
boolean sanity_check; /* run sanity checks */
|
||||
boolean mon_polycontrol; /* debug: control monster polymorphs */
|
||||
boolean in_dumplog; /* doing the dumplog right now? */
|
||||
|
||||
/* stuff that is related to options and/or user or platform preferences
|
||||
*/
|
||||
|
||||
@@ -342,6 +342,14 @@ struct obj {
|
||||
&& !undiscovered_artifact(ART_EYES_OF_THE_OVERWORLD)))
|
||||
#define pair_of(o) ((o)->otyp == LENSES || is_gloves(o) || is_boots(o))
|
||||
|
||||
#define is_mines_prize(o) \
|
||||
((o)->otyp == LUCKSTONE && Is_mineend_level(&u.uz))
|
||||
#define is_soko_prize(o) \
|
||||
(((o)->otyp == AMULET_OF_REFLECTION \
|
||||
|| (o)->otyp == BAG_OF_HOLDING) \
|
||||
&& Is_sokoend_level(&u.uz))
|
||||
|
||||
|
||||
/* Flags for get_obj_location(). */
|
||||
#define CONTAINED_TOO 0x1
|
||||
#define BURIED_TOO 0x2
|
||||
|
||||
@@ -15,6 +15,9 @@ struct sysopt {
|
||||
char *shellers; /* like wizards, for ! command (-DSHELL); also ^Z */
|
||||
char *genericusers; /* usernames that prompt for user name */
|
||||
char *debugfiles; /* files to show debugplines in. '*' is all. */
|
||||
#ifdef DUMPLOG
|
||||
char *dumplogfile; /* where the dump file is saved */
|
||||
#endif
|
||||
int env_dbgfl; /* 1: debugfiles comes from getenv("DEBUGFILES")
|
||||
* so sysconf's DEBUGFILES shouldn't override it;
|
||||
* 0: getenv() hasn't been attempted yet;
|
||||
|
||||
Reference in New Issue
Block a user