diff options
author | Darshan Shaligram <dshaligram@users.sourceforge.net> | 2010-01-17 16:11:57 +0530 |
---|---|---|
committer | Darshan Shaligram <dshaligram@users.sourceforge.net> | 2010-01-17 16:11:57 +0530 |
commit | 550bd520c116960743687b2e02d83f6fa1ba8f7d (patch) | |
tree | b635f1073826c7cc08ea51f86cfb0fb3efcd6b4d | |
parent | 8a6746ad0a331b00efd6ac9964ac9444faa27c3f (diff) | |
download | crawl-ref-550bd520c116960743687b2e02d83f6fa1ba8f7d.tar.gz crawl-ref-550bd520c116960743687b2e02d83f6fa1ba8f7d.zip |
Don't include the cumulative monster count when calculating pop totals.
-rw-r--r-- | crawl-ref/source/scripts/place-population.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/crawl-ref/source/scripts/place-population.lua b/crawl-ref/source/scripts/place-population.lua index 8b8095d956..76b77559e6 100644 --- a/crawl-ref/source/scripts/place-population.lua +++ b/crawl-ref/source/scripts/place-population.lua @@ -34,7 +34,9 @@ local function report_monster_counts_at(place, mcount_map) local total = 0 for _, monster_pop in ipairs(monster_counts) do - total = total + monster_pop[2].total + if monster_pop[1] ~= 'TOTAL' then + total = total + monster_pop[2].total + end end text = text .. "Count | XPAv | XPMin | XPMax | XPSigma | CountMin | CountMax | CountSigma | % | Monster\n" |