summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/monplace.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-07-12 09:33:21 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-07-12 09:33:21 +0000
commit74c498a25a9ea3e5d03a41e6cc0e9822e94d5c9c (patch)
treee9690d2a18f9f1c94881fab0e77a710bfd130388 /crawl-ref/source/monplace.cc
parent19c5f0f487097c52311565adcc12546c703e0a79 (diff)
downloadcrawl-ref-74c498a25a9ea3e5d03a41e6cc0e9822e94d5c9c.tar.gz
crawl-ref-74c498a25a9ea3e5d03a41e6cc0e9822e94d5c9c.zip
Beogh balancing:
- Cut Beogh's racial armour bonus. - Reduced weapon damage bonus by 50% at low piety. - Increased smiting food and piety cost. The piety cost may still be too low given how easy it is to gain Beogh piety. Tweaked monster generation, which had become too bland. Reintroduced shoal vault (onia_ninara_012_swampy_vault_shoal) which seems to work now. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1844 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/monplace.cc')
-rw-r--r--crawl-ref/source/monplace.cc21
1 files changed, 17 insertions, 4 deletions
diff --git a/crawl-ref/source/monplace.cc b/crawl-ref/source/monplace.cc
index a6ef07c3f1..115a9c28ab 100644
--- a/crawl-ref/source/monplace.cc
+++ b/crawl-ref/source/monplace.cc
@@ -135,10 +135,20 @@ static bool need_super_ood(int lev_mons)
&& one_chance_in(5000));
}
+/*
static bool need_moderate_ood(int lev_mons)
{
- return (env.turns_on_level > 700 - lev_mons * 117
- && one_chance_in(50));
+ return (env.turns_on_level > 700 - lev_mons * 117? one_chance_in(40) :
+ one_chance_in(50));
+}
+*/
+
+static int fuzz_mons_level(int level)
+{
+ int fuzz = random2avg(11, 5);
+ if (fuzz > 5)
+ level += fuzz - 5;
+ return (level);
}
bool place_monster(int &id, int mon_type, int power, beh_type behaviour,
@@ -177,13 +187,16 @@ bool place_monster(int &id, int mon_type, int power, beh_type behaviour,
if (player_in_branch( BRANCH_MAIN_DUNGEON )
&& lev_mons < 28)
{
+ lev_mons = fuzz_mons_level(lev_mons);
+
// potentially nasty surprise, but very rare
if (need_super_ood(lev_mons))
lev_mons += random2(12);
// slightly out of depth monsters are more common:
- if (need_moderate_ood(lev_mons))
- lev_mons += random2(5);
+ // [ds] Replaced with a fuzz above for a more varied mix.
+ //if (need_moderate_ood(lev_mons))
+ // lev_mons += random2(5);
if (lev_mons > 27)
lev_mons = 27;