summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-10-27 10:31:49 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-10-27 10:31:49 +0000
commit8b4e9684439e4f8177cb872549fdfe13fea2d064 (patch)
tree5cbb9ac4d8370c3471305148cbf10ef5cfa1bac5 /crawl-ref/source
parent0a5123f9f193aff98a112bdc915ef94aa819cc5d (diff)
downloadcrawl-ref-8b4e9684439e4f8177cb872549fdfe13fea2d064.tar.gz
crawl-ref-8b4e9684439e4f8177cb872549fdfe13fea2d064.zip
Vestibule monster generation drops off quickly and approaches zero.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2620 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source')
-rw-r--r--crawl-ref/source/monplace.cc25
1 files changed, 7 insertions, 18 deletions
diff --git a/crawl-ref/source/monplace.cc b/crawl-ref/source/monplace.cc
index 7a90decae6..9e69932070 100644
--- a/crawl-ref/source/monplace.cc
+++ b/crawl-ref/source/monplace.cc
@@ -169,30 +169,19 @@ static int fuzz_mons_level(int level)
static void hell_spawn_random_monsters()
{
- const int speedup_turn = 3000;
-
- // Monster generation in the Vestibule starts ratcheting up quickly
- // after speedup_turn turns spent in the Vestibule.
- int genodds = (you.char_direction == GDT_DESCENDING) ? 240 : 8;
- if (env.turns_on_level > speedup_turn)
+ // Monster generation in the Vestibule drops off quickly.
+ const int taper_off_turn = 500;
+ int genodds = 240;
+ if (env.turns_on_level > taper_off_turn)
{
- genodds -= (env.turns_on_level - speedup_turn) / 14;
- if (genodds < 3)
- genodds = 3;
+ genodds += (env.turns_on_level - taper_off_turn);
+ genodds = (genodds < 0? 20000 : std::min(genodds, 20000));
}
if (one_chance_in(genodds))
{
- int distance_odds = 10;
- if (env.turns_on_level > speedup_turn)
- distance_odds -= (env.turns_on_level - speedup_turn) / 100;
-
- if (distance_odds < 2)
- distance_odds = 2;
-
proximity_type prox =
- (one_chance_in(distance_odds) ? PROX_NEAR_STAIRS
- : PROX_AWAY_FROM_PLAYER);
+ (one_chance_in(10) ? PROX_NEAR_STAIRS : PROX_AWAY_FROM_PLAYER);
mons_place( WANDERING_MONSTER, BEH_HOSTILE, MHITNOT, false,
50, 50, LEVEL_DUNGEON, prox );
viewwindow(true, false);