From: Patric Mueller Date: Fri, 24 Apr 2020 21:53:25 +0000 (+0200) Subject: Record amount of gold in hero's possession in xlogfile X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c00c307d577b688677cde65845945603c30ea732;p=nethack Record amount of gold in hero's possession in xlogfile --- diff --git a/doc/fixes37.0 b/doc/fixes37.0 index ad806d427..6bd44efea 100644 --- a/doc/fixes37.0 +++ b/doc/fixes37.0 @@ -304,6 +304,7 @@ item-using monsters will zap wand of undead turning at corpse-wielding hero boiling a pool or fountain now creates a temporary cloud of steam random themed rooms in the dungeons of doom extended achievement and conduct fields for xlogfile +record amount of gold in hero's possession in xlogfile Platform- and/or Interface-Specific New Features diff --git a/src/topten.c b/src/topten.c index f83e52b51..9083c2490 100644 --- a/src/topten.c +++ b/src/topten.c @@ -379,6 +379,7 @@ int how; genders[flags.initgend].filecode, XLOG_SEP, aligns[1 - u.ualignbase[A_ORIGINAL]].filecode); Fprintf(rfile, "%cflags=0x%lx", XLOG_SEP, encodexlogflags()); + Fprintf(rfile, "%cgold=%ld", XLOG_SEP, money_cnt(g.invent) + hidden_gold()); Fprintf(rfile, "\n"); #undef XLOG_SEP }