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/player.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/player.cc')
-rw-r--r-- | crawl-ref/source/player.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc index 84164a2a96..8909a7006d 100644 --- a/crawl-ref/source/player.cc +++ b/crawl-ref/source/player.cc @@ -8036,7 +8036,7 @@ bool player::attempt_escape(int attempts) // player breaks free if (4+n)d(8+str/4) >= 5d(8+HD/4) if (roll_dice(4 + escape_attempts, 8 + div_rand_round(strength(), 4)) - >= roll_dice(5, 8 + div_rand_round(themonst->hit_dice, 4))) + >= roll_dice(5, 8 + div_rand_round(themonst->get_hit_dice(), 4))) { mprf("You escape %s's grasp.", themonst->name(DESC_THE, true).c_str()); |