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/xom.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/xom.cc')
-rw-r--r-- | crawl-ref/source/xom.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/crawl-ref/source/xom.cc b/crawl-ref/source/xom.cc index cc7d38c9f2..c03a21dfdb 100644 --- a/crawl-ref/source/xom.cc +++ b/crawl-ref/source/xom.cc @@ -1632,10 +1632,11 @@ static int _xom_snakes_to_sticks(int sever, bool debug = false) const int sub_type = (base_type == OBJ_MISSILES ? (x_chance_in_y(3,5) ? MI_ARROW : MI_JAVELIN) - : _xom_random_stickable(mi->hit_dice)); + : _xom_random_stickable(mi->get_experience_level())); int thing_created = items(0, base_type, sub_type, true, - mi->hit_dice / 3 - 1, 0, 0, -1, -1); + mi->get_experience_level() / 3 - 1, + 0, 0, -1, -1); if (thing_created == NON_ITEM) continue; |