From 550bd520c116960743687b2e02d83f6fa1ba8f7d Mon Sep 17 00:00:00 2001 From: Darshan Shaligram Date: Sun, 17 Jan 2010 16:11:57 +0530 Subject: Don't include the cumulative monster count when calculating pop totals. --- crawl-ref/source/scripts/place-population.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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" -- cgit v1.2.3-54-g00ecf