diff options
author | Johanna Ploog <j-p-e-g@users.sourceforge.net> | 2009-12-15 23:17:59 +0100 |
---|---|---|
committer | Johanna Ploog <j-p-e-g@users.sourceforge.net> | 2009-12-16 00:37:56 +0100 |
commit | eafd79ae664bb6e38f4ddcd97fda1ef60570e0e1 (patch) | |
tree | 3e264a6a5a1d971925e9a55fabd6f84e64d79315 /crawl-ref/source/wiz-item.cc | |
parent | 88cc1ee26273aa1b2030efaabba3b5886125df07 (diff) | |
download | crawl-ref-eafd79ae664bb6e38f4ddcd97fda1ef60570e0e1.tar.gz crawl-ref-eafd79ae664bb6e38f4ddcd97fda1ef60570e0e1.zip |
Don't mark books acquired during acquirement statistics as "seen".
This _could_ be useful for the question "Which books can I expect to have
seen after N acquirements?"
However, when running the acquirement statistics I prefer a slightly
different question: "What are the chances of getting a certain book in
this precise situation?"
Don't know which of the two is the "correct" one, but I think it is annoying
if I have to recreate a character for my book acquirement statistics just
because the old one already "saw" all interesting spells, thus heavily
skewing the results.
Diffstat (limited to 'crawl-ref/source/wiz-item.cc')
-rw-r--r-- | crawl-ref/source/wiz-item.cc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/crawl-ref/source/wiz-item.cc b/crawl-ref/source/wiz-item.cc index bc72ffc00e..f214c2846c 100644 --- a/crawl-ref/source/wiz-item.cc +++ b/crawl-ref/source/wiz-item.cc @@ -889,7 +889,7 @@ static void _debug_acquirement_stats(FILE *ostat) int item_index = NON_ITEM; - if (!acquirement(type, AQ_WIZMODE, true, &item_index) + if (!acquirement(type, AQ_WIZMODE, true, &item_index, true) || item_index == NON_ITEM || !mitm[item_index].is_valid()) { @@ -964,6 +964,7 @@ static void _debug_acquirement_stats(FILE *ostat) EQ_GLOVES, EQ_BOOTS, EQ_AMULET, EQ_RIGHT_RING, EQ_LEFT_RING }; + bool naked = true; for (int i = 0; i < NUM_EQUIP; i++) { int eqslot = e_order[i]; @@ -979,10 +980,11 @@ static void _debug_acquirement_stats(FILE *ostat) fprintf(ostat, "%-7s: %s %s\n", equip_slot_to_name(eqslot), item.name(DESC_PLAIN, true).c_str(), melded ? "(melded)" : ""); + naked = false; } -// else if (e_order[i] == EQ_WEAPON) -// fprintf(ostat, "%-7s: unarmed\n", equip_slot_to_name(eqslot)); } + if (naked) + fprintf(ostat, "Not wearing or wielding anything.\n"); // Also print the skills, in case they matter. std::string skills = "\nSkills:\n"; @@ -992,7 +994,7 @@ static void _debug_acquirement_stats(FILE *ostat) // TODO: For spellbooks, for each spell discipline list the number of // known spells and castable seen/unseen spells - fprintf(ostat, "Acquirement called %d times, total quantity = %d\n\n", + fprintf(ostat, "\nAcquirement called %d times, total quantity = %d\n\n", acq_calls, total_quant); fprintf(ostat, "%5.2f%% artefacts.\n", |