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/mon-place.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/mon-place.cc')
-rw-r--r-- | crawl-ref/source/mon-place.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/crawl-ref/source/mon-place.cc b/crawl-ref/source/mon-place.cc index 0f7c11995b..13c2c206a7 100644 --- a/crawl-ref/source/mon-place.cc +++ b/crawl-ref/source/mon-place.cc @@ -1454,7 +1454,7 @@ static monster* _place_monster_aux(const mgen_data &mg, const monster *leader, bonus2 = mbase->hpdice[2]; bonus3 = mbase->hpdice[3]; } - mon->hit_dice = mg.hd; + mon->set_hit_dice(mg.hd); // Re-roll HP. int hp = hit_points(mg.hd, m_ent->hpdice[1] + bonus1, m_ent->hpdice[2] + bonus2); @@ -1935,20 +1935,20 @@ void roll_zombie_hp(monster* mon) switch (mon->type) { case MONS_ZOMBIE: - hp = hit_points(mon->hit_dice, 6, 5); + hp = hit_points(mon->get_hit_dice(), 6, 5); break; case MONS_SKELETON: - hp = hit_points(mon->hit_dice, 5, 4); + hp = hit_points(mon->get_hit_dice(), 5, 4); break; case MONS_SIMULACRUM: // Simulacra aren't tough, but you can create piles of them. - bwr - hp = hit_points(mon->hit_dice, 1, 4); + hp = hit_points(mon->get_hit_dice(), 1, 4); break; case MONS_SPECTRAL_THING: - hp = hit_points(mon->hit_dice, 4, 4); + hp = hit_points(mon->get_hit_dice(), 4, 4); break; default: |