Record number of wishes and artifact wishes in xlogfile

This commit is contained in:
Patric Mueller
2020-06-07 16:39:58 +02:00
parent f4c1e84bdd
commit 8564ee95b0
2 changed files with 3 additions and 0 deletions

View File

@@ -365,6 +365,7 @@ make camera flash which reveals previously unseen map features or objects or
monsters record those on the hero's map; monsters revert to 'unseen' monsters record those on the hero's map; monsters revert to 'unseen'
boolean options can optionally have the form "name:value" with value taken boolean options can optionally have the form "name:value" with value taken
from among "true", "yes", "on", or "false", "no", "off" from among "true", "yes", "on", or "false", "no", "off"
record number of wishes and artifact wishes in xlogfile
Platform- and/or Interface-Specific New Features Platform- and/or Interface-Specific New Features

View File

@@ -380,6 +380,8 @@ int how;
aligns[1 - u.ualignbase[A_ORIGINAL]].filecode); aligns[1 - u.ualignbase[A_ORIGINAL]].filecode);
Fprintf(rfile, "%cflags=0x%lx", XLOG_SEP, encodexlogflags()); Fprintf(rfile, "%cflags=0x%lx", XLOG_SEP, encodexlogflags());
Fprintf(rfile, "%cgold=%ld", XLOG_SEP, money_cnt(g.invent) + hidden_gold()); Fprintf(rfile, "%cgold=%ld", XLOG_SEP, money_cnt(g.invent) + hidden_gold());
Fprintf(rfile, "%cwish_cnt=%ld", XLOG_SEP, u.uconduct.wishes);
Fprintf(rfile, "%carti_wish_cnt=%ld", XLOG_SEP, u.uconduct.wisharti);
Fprintf(rfile, "\n"); Fprintf(rfile, "\n");
#undef XLOG_SEP #undef XLOG_SEP
} }