From 629eb1c615ca948ef9d972df7714ad9dd0a73d2c Mon Sep 17 00:00:00 2001 From: Jared Tinney (Twinge) Date: Sat, 13 Feb 2010 21:31:57 -0800 Subject: [PATCH] Skeleton Depth Fix & D:2 OOD Reduction --- crawl-ref/source/mon-pick.cc | 4 ++-- crawl-ref/source/mon-place.cc | 7 ++++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/crawl-ref/source/mon-pick.cc b/crawl-ref/source/mon-pick.cc index 59a9b9f..7979feb 100644 --- a/crawl-ref/source/mon-pick.cc +++ b/crawl-ref/source/mon-pick.cc @@ -615,6 +615,7 @@ int mons_standard_level(int mcls) case MONS_ORC_WIZARD: case MONS_PHANTOM: case MONS_SCORPION: + case MONS_SKELETON_SMALL: return 8; case MONS_WATER_MOCCASIN: @@ -714,6 +715,7 @@ int mons_standard_level(int mcls) case MONS_GARGOYLE: case MONS_GIANT_AMOEBA: case MONS_KOBOLD_DEMONOLOGIST: + case MONS_SKELETON_LARGE: // Higher than actual threat level so that they will still show up in The Vaults return 18; case MONS_GIANT_SLUG: @@ -735,7 +737,6 @@ int mons_standard_level(int mcls) case MONS_GIANT_SNAIL: case MONS_GREAT_ORB_OF_EYES: case MONS_ICE_DRAGON: - case MONS_SKELETON_LARGE: case MONS_NAGA_MAGE: case MONS_NAGA_WARRIOR: case MONS_NECROMANCER: @@ -743,7 +744,6 @@ int mons_standard_level(int mcls) case MONS_QUEEN_BEE: case MONS_RED_WASP: case MONS_SHADOW_WRAITH: - case MONS_SKELETON_SMALL: case MONS_SPINY_WORM: case MONS_VERY_UGLY_THING: case MONS_HARPY: diff --git a/crawl-ref/source/mon-place.cc b/crawl-ref/source/mon-place.cc index 30395b1..6634ab7 100644 --- a/crawl-ref/source/mon-place.cc +++ b/crawl-ref/source/mon-place.cc @@ -274,7 +274,12 @@ static int _fuzz_mons_level(int level) 1000)) { const int fuzzspan = 7; - const int fuzz = std::max(0, random_range(-fuzzspan, fuzzspan, 2)); + int fuzz = std::max(0, random_range(-fuzzspan, fuzzspan, 2)); + + //OOD Chances are reduced slightly on D:2 - a little less than 1 in 9 instead of 1 in 7 + if (you.absdepth0 == 1 && one_chance_in(4)) + fuzz = 0; + #ifdef DEBUG_DIAGNOSTICS if (fuzz) dprf("Monster level fuzz: %d (old: %d, new: %d)", -- 1.6.5.1