diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-07-25 16:25:25 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-07-25 16:25:25 +0000 |
commit | b736da84096898e66c6cd777020319d4391b604c (patch) | |
tree | ac7b0684ea88b1438eb19a7260bc3d4123ee82d0 /crawl-ref/source/Kills.cc | |
parent | 3cd7d88e4a445431c8ce6f1e8b6c107228649b4e (diff) | |
download | crawl-ref-b736da84096898e66c6cd777020319d4391b604c.tar.gz crawl-ref-b736da84096898e66c6cd777020319d4391b604c.zip |
More milestones and logfile fields for the Crawl tournament.
Add milestones for worshipping and renouncing gods.
Record number of kills and all skills at level 27 in the logfile and milestones.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10406 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/Kills.cc')
-rw-r--r-- | crawl-ref/source/Kills.cc | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/crawl-ref/source/Kills.cc b/crawl-ref/source/Kills.cc index bc61b59af5..34111138e7 100644 --- a/crawl-ref/source/Kills.cc +++ b/crawl-ref/source/Kills.cc @@ -107,6 +107,21 @@ void KillMaster::record_kill(const monsters *mon, int killer, bool ispet) categorized_kills[kc].record_kill(mon); } +long KillMaster::total_kills() const +{ + long grandtotal = 0L; + for (int i = KC_YOU; i < KC_NCATEGORIES; ++i) + { + if (categorized_kills[i].empty()) + continue; + + std::vector<kill_exp> kills; + long count = categorized_kills[i].get_kills(kills); + grandtotal += count; + } + return (grandtotal); +} + std::string KillMaster::kill_info() const { if (empty()) |