]> granicus.if.org Git - nethack/commitdiff
Record amount of gold in hero's possession in xlogfile
authorPatric Mueller <bhaak@gmx.net>
Fri, 24 Apr 2020 21:53:25 +0000 (23:53 +0200)
committerPatric Mueller <bhaak@gmx.net>
Fri, 24 Apr 2020 21:53:25 +0000 (23:53 +0200)
doc/fixes37.0
src/topten.c

index ad806d4274a0e00e22a380cabe15dc82f1fc7fe7..6bd44efea317260b99de046b92008feab23e154a 100644 (file)
@@ -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
index f83e52b515891dcf5128a1026879c6eda768939f..9083c2490aa54f5092746084d9b5a0b13f4d08d9 100644 (file)
@@ -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
 }