summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/acr.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-06 17:34:17 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-06 17:34:17 +0000
commit84866d5434ff81a0ca20f3328f695b55a1f0e62d (patch)
tree4cc3a926eae10b84074c079d7ef3f3cad55c5f82 /crawl-ref/source/acr.cc
parentf2bec3cbdf98876893d9562e88567a8fc50c7d76 (diff)
downloadcrawl-ref-84866d5434ff81a0ca20f3328f695b55a1f0e62d.tar.gz
crawl-ref-84866d5434ff81a0ca20f3328f695b55a1f0e62d.zip
Fix 2010077: Increase respawning rates again.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6430 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/acr.cc')
-rw-r--r--crawl-ref/source/acr.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/crawl-ref/source/acr.cc b/crawl-ref/source/acr.cc
index 1549cbcc37..23aa7cd34f 100644
--- a/crawl-ref/source/acr.cc
+++ b/crawl-ref/source/acr.cc
@@ -3193,8 +3193,20 @@ static void _world_reacts()
_check_banished();
}
else
+ {
+ const long old_synch_time = you.synch_time;
you.synch_time -= you.time_taken;
+ // Call spawn_random_monsters() more often than the rest of
+ // handle_time() so the spawning rates work out correctly.
+ if (old_synch_time >= 150 && you.synch_time < 150
+ || old_synch_time >= 100 && you.synch_time < 100
+ || old_synch_time >= 50 && you.synch_time < 50)
+ {
+ spawn_random_monsters();
+ }
+ }
+
manage_clouds();
if (you.duration[DUR_FIRE_SHIELD] > 0)