summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-cast.cc
diff options
context:
space:
mode:
authorVsevolod Kozlov <zaba@thorium.homeunix.org>2009-11-10 16:48:44 +0300
committerVsevolod Kozlov <zaba@thorium.homeunix.org>2009-11-10 16:48:44 +0300
commit54ccf63c382d3e27c7165ee57a721929dc45f77c (patch)
tree50084e3a093d19b7826ea54834d4d3a5db2e3153 /crawl-ref/source/mon-cast.cc
parent672df2f6a49ff8683255e5bad316674d16285f0c (diff)
downloadcrawl-ref-54ccf63c382d3e27c7165ee57a721929dc45f77c.tar.gz
crawl-ref-54ccf63c382d3e27c7165ee57a721929dc45f77c.zip
Make actor::heal return bool; move heal_monster to monsters::heal.
monsters::heal and heal_monster used to have slightly different logic for increasing maximum HP. Now the heal_monster logic is used everywhere. player::heal always returns true at the moment, but since its return value is never checked, that does not affect anything.
Diffstat (limited to 'crawl-ref/source/mon-cast.cc')
-rw-r--r--crawl-ref/source/mon-cast.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/crawl-ref/source/mon-cast.cc b/crawl-ref/source/mon-cast.cc
index 04311be6d4..2c2c0f1517 100644
--- a/crawl-ref/source/mon-cast.cc
+++ b/crawl-ref/source/mon-cast.cc
@@ -1597,8 +1597,7 @@ void mons_cast(monsters *monster, bolt &pbolt, spell_type spell_cast,
break;
case SPELL_MAJOR_HEALING:
- if (heal_monster(monster, 50 + random2avg(monster->hit_dice * 10, 2),
- false))
+ if (monster->heal(50 + random2avg(monster->hit_dice * 10, 2)))
{
simple_monster_message(monster, " is healed.");
}