summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mgrow.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-10-26 11:11:03 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-10-26 11:11:03 +0000
commitfa909934b0e8289bf954c143e806cf6d42583c53 (patch)
tree7e8523c6c3890c1827d615993d030172205af150 /crawl-ref/source/mgrow.cc
parenteaf0d8123d3841efd48c81c306317e3040582fd3 (diff)
downloadcrawl-ref-fa909934b0e8289bf954c143e806cf6d42583c53.tar.gz
crawl-ref-fa909934b0e8289bf954c143e806cf6d42583c53.zip
Orcs may surrender to Beogh worshippers when beaten up. Adjusted experience gain for monsters, duration of orc battle cries and removed use of invocations to determine the success of spontaneous orc conversion.
Fixed monsters getting bad experience values. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2586 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/mgrow.cc')
-rw-r--r--crawl-ref/source/mgrow.cc10
1 files changed, 7 insertions, 3 deletions
diff --git a/crawl-ref/source/mgrow.cc b/crawl-ref/source/mgrow.cc
index a620132677..ea08169523 100644
--- a/crawl-ref/source/mgrow.cc
+++ b/crawl-ref/source/mgrow.cc
@@ -13,9 +13,9 @@
#include "stuff.h"
// Base experience required by a monster to reach HD 1.
-const int monster_xp_base = 8;
+const int monster_xp_base = 10;
// Experience multiplier to determine the experience needed to gain levels.
-const int monster_xp_multiplier = 120;
+const int monster_xp_multiplier = 130;
const mons_experience_levels mexplevs;
// Monster growing-up sequences. You can specify a chance to indicate that
@@ -70,7 +70,7 @@ mons_experience_levels::mons_experience_levels()
delta =
std::min(
std::max(delta, monster_xp_base * monster_xp_multiplier / 100),
- 3000);
+ 2500);
experience += delta;
}
}
@@ -143,6 +143,10 @@ bool monsters::level_up()
if (max_hit_points < 1000)
{
int hpboost = hit_dice > 3? max_hit_points / 8 : max_hit_points / 4;
+#ifdef DEBUG_DIAGNOSTICS
+ mprf(MSGCH_DIAGNOSTICS, "%s: HD: %d, maxhp: %d, boost: %d",
+ name(DESC_PLAIN).c_str(), hit_dice, max_hit_points, hpboost);
+#endif
if (hpboost < 2)
hpboost = 2;
if (hpboost > 20)