summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-miscast.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/spl-miscast.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/spl-miscast.cc')
-rw-r--r--crawl-ref/source/spl-miscast.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/crawl-ref/source/spl-miscast.cc b/crawl-ref/source/spl-miscast.cc
index d00664d849..b130ea4429 100644
--- a/crawl-ref/source/spl-miscast.cc
+++ b/crawl-ref/source/spl-miscast.cc
@@ -1606,7 +1606,7 @@ void MiscastEffect::_divination_mon(int severity)
mon_msg_seen = "@The_monster@ looks disoriented.";
target->confuse(
act_source,
- 1 + random2(3 + act_source->get_experience_level()));
+ 1 + random2(3 + act_source->get_hit_dice()));
break;
}
break;
@@ -1615,7 +1615,7 @@ void MiscastEffect::_divination_mon(int severity)
mon_msg_seen = "@The_monster@ shudders.";
target->confuse(
act_source,
- 5 + random2(3 + act_source->get_experience_level()));
+ 5 + random2(3 + act_source->get_hit_dice()));
break;
case 3: // nasty
@@ -1624,7 +1624,7 @@ void MiscastEffect::_divination_mon(int severity)
target_as_monster()->forget_random_spell();
target->confuse(
act_source,
- 8 + random2(3 + act_source->get_experience_level()));
+ 8 + random2(3 + act_source->get_hit_dice()));
break;
}
do_msg();
@@ -2209,7 +2209,7 @@ void MiscastEffect::_fire(int severity)
{
monster* mon_target = target_as_monster();
mon_target->add_ench(mon_enchant(ENCH_STICKY_FLAME,
- min(4, 1 + random2(mon_target->hit_dice) / 2),
+ min(4, 1 + random2(mon_target->get_hit_dice()) / 2),
guilty));
}
break;