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:
@@ -513,6 +513,10 @@ rob_shop(struct monst* shkp)
|
||||
/* by this point, we know an actual robbery has taken place */
|
||||
eshkp->robbed += total;
|
||||
You("stole %ld %s worth of merchandise.", total, currency(total));
|
||||
livelog_printf(LL_ACHIEVE, "stole %ld %s worth of merchandise from %s %s",
|
||||
total, currency(total), s_suffix(shkname(shkp)),
|
||||
shtypes[eshkp->shoptype - SHOPBASE].name);
|
||||
|
||||
if (!Role_if(PM_ROGUE)) /* stealing is unlawful */
|
||||
adjalign(-sgn(u.ualign.type));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user