summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/attitude-change.cc
diff options
context:
space:
mode:
authorNicholas Feinberg <pleasingfung@gmail.com>2014-07-13 15:38:23 -0700
committerNicholas Feinberg <pleasingfung@gmail.com>2014-07-13 17:19:02 -0700
commitd22ebac678fa1c1d0a60048a72ba445e3ed190d1 (patch)
treea63ccd59b4bb01408be9fc5843c20f2f878e2cd2 /crawl-ref/source/attitude-change.cc
parent5562ea36cc1ba917da155a9dd93e6bf71d022771 (diff)
downloadcrawl-ref-d22ebac678fa1c1d0a60048a72ba445e3ed190d1.tar.gz
crawl-ref-d22ebac678fa1c1d0a60048a72ba445e3ed190d1.zip
Separate 'permanent' and 'temporary' monster hit dice
As part of a wider scheme to make draining temporary.
Diffstat (limited to 'crawl-ref/source/attitude-change.cc')
-rw-r--r--crawl-ref/source/attitude-change.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/attitude-change.cc b/crawl-ref/source/attitude-change.cc
index 0708d5d4e5..00f8533279 100644
--- a/crawl-ref/source/attitude-change.cc
+++ b/crawl-ref/source/attitude-change.cc
@@ -88,7 +88,7 @@ void beogh_follower_convert(monster* mons, bool orc_hit)
{
mons->flags |= MF_ATT_CHANGE_ATTEMPT;
- const int hd = mons->hit_dice;
+ const int hd = mons->get_experience_level();
if (you.piety >= piety_breakpoint(2) && !player_under_penance()
&& random2(you.piety / 15) + random2(4 + you.experience_level / 3)
@@ -173,7 +173,7 @@ bool yred_slaves_abandon_you()
{
num_slaves++;
- const int hd = mons->hit_dice;
+ const int hd = mons->get_experience_level();
// During penance, followers get a saving throw.
if (random2((you.piety - you.penance[GOD_YREDELEMNUL]) / 18)
@@ -231,7 +231,7 @@ bool beogh_followers_abandon_you()
&& !mons_is_confused(mons)
&& !mons->cannot_act())
{
- const int hd = mons->hit_dice;
+ const int hd = mons->get_experience_level();
// During penance, followers get a saving throw.
if (random2((you.piety - you.penance[GOD_BEOGH]) / 18)