Chronicle of major events, and livelog
Log game events, such as entering a new dungeon level, breaking a conduct, or killing a unique monster, in a new "Major events" chronicle. The entries record the turn when the event happened. The log can be viewed with #chronicle -command, and the entries also show up in the end-of-game dump, if that is available. This feature is on by default, but can be disabled by defining NO_CHRONICLE compile-time option. This also contains "live logging", writing the events as they happen into a single livelog-file. This is mostly useful for public servers. The livelog is off by default, and must be compiled in with LIVELOG, and then turned on in sysconf. Mostly this a version of livelogging from the Hardfought server, with some changes.
This commit is contained in:
@@ -463,4 +463,21 @@ extern struct nomakedefs_s nomakedefs;
|
||||
#define unctrl(c) ((c) <= C('z') ? (0x60 | (c)) : (c))
|
||||
#define unmeta(c) (0x7f & (c))
|
||||
|
||||
/* Game log message type flags */
|
||||
#define LL_NONE 0x0000 /* No message is livelogged */
|
||||
#define LL_WISH 0x0001 /* Report stuff people type at the wish prompt */
|
||||
#define LL_ACHIEVE 0x0002 /* Achievements bitfield + invocation, planes */
|
||||
#define LL_UMONST 0x0004 /* Kill, Bribe or otherwise dispatch unique monsters */
|
||||
#define LL_DIVINEGIFT 0x0008 /* Sacrifice gifts, crowning */
|
||||
#define LL_LIFESAVE 0x0010 /* Use up amulet of lifesaving */
|
||||
#define LL_CONDUCT 0x0020 /* Break conduct - not reported early-game */
|
||||
#define LL_ARTIFACT 0x0040 /* Excalibur, Sting, Orcrist, plus sac gifts and artwishes */
|
||||
#define LL_GENOCIDE 0x0080 /* Logging of genocides */
|
||||
#define LL_KILLEDPET 0x0100 /* Killed a tame monster */
|
||||
#define LL_ALIGNMENT 0x0200 /* changed alignment temporarily or permanently */
|
||||
#define LL_DUMP_ASC 0x0400 /* Log URL for dumplog if ascended */
|
||||
#define LL_DUMP_ALL 0x0800 /* Log dumplog url for all games */
|
||||
#define LL_MINORAC 0x1000 /* Log 'minor' achievements - can be spammy */
|
||||
#define LL_DEBUG 0x8000 /* For debugging messages and other spam */
|
||||
|
||||
#endif /* GLOBAL_H */
|
||||
|
||||
Reference in New Issue
Block a user