diff options
author | Nicholas Feinberg <pleasingfung@gmail.com> | 2014-07-13 15:38:23 -0700 |
---|---|---|
committer | Nicholas Feinberg <pleasingfung@gmail.com> | 2014-07-13 17:19:02 -0700 |
commit | d22ebac678fa1c1d0a60048a72ba445e3ed190d1 (patch) | |
tree | a63ccd59b4bb01408be9fc5843c20f2f878e2cd2 /crawl-ref/source/beam.cc | |
parent | 5562ea36cc1ba917da155a9dd93e6bf71d022771 (diff) | |
download | crawl-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/beam.cc')
-rw-r--r-- | crawl-ref/source/beam.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/beam.cc b/crawl-ref/source/beam.cc index 288a0659f7..b14b8b932a 100644 --- a/crawl-ref/source/beam.cc +++ b/crawl-ref/source/beam.cc @@ -4511,7 +4511,7 @@ static bool _dazzle_monster(monster* mons, actor* act) return false; } - if (x_chance_in_y(95 - mons->hit_dice * 5 , 100)) + if (x_chance_in_y(95 - mons->get_hit_dice() * 5 , 100)) { simple_monster_message(mons, " is dazzled."); mons->add_ench(mon_enchant(ENCH_BLIND, 1, act, 40 + random2(40))); @@ -5372,7 +5372,7 @@ mon_resist_type bolt::apply_enchantment_to_monster(monster* mon) case BEAM_ENSLAVE_SOUL: { - dprf(DIAG_BEAM, "HD: %d; pow: %d", mon->hit_dice, ench_power); + dprf(DIAG_BEAM, "HD: %d; pow: %d", mon->get_hit_dice(), ench_power); if (!mons_can_be_zombified(mon) || mons_intel(mon) < I_NORMAL) return MON_UNAFFECTED; @@ -5733,7 +5733,7 @@ mon_resist_type bolt::apply_enchantment_to_monster(monster* mon) break; const int dur = - random2(div_rand_round(ench_power, mon->hit_dice) + 1) + random2(div_rand_round(ench_power, mon->get_hit_dice()) + 1) * BASELINE_DELAY; mon->add_ench(mon_enchant(ENCH_ANTIMAGIC, 0, agent(), // doesn't matter |