From 54ccf63c382d3e27c7165ee57a721929dc45f77c Mon Sep 17 00:00:00 2001 From: Vsevolod Kozlov Date: Tue, 10 Nov 2009 16:48:44 +0300 Subject: 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. --- crawl-ref/source/beam.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crawl-ref/source/beam.cc') diff --git a/crawl-ref/source/beam.cc b/crawl-ref/source/beam.cc index 976d62b1a5..4f5e94ba9e 100644 --- a/crawl-ref/source/beam.cc +++ b/crawl-ref/source/beam.cc @@ -5266,7 +5266,7 @@ mon_resist_type bolt::apply_enchantment_to_monster(monsters* mon) obvious_effect = true; msg_generated = true; // to avoid duplicate "nothing happens" } - else if (heal_monster(mon, 5 + damage.roll(), false)) + else if (mon->heal(5 + damage.roll())) { if (mon->hit_points == mon->max_hit_points) { -- cgit v1.2.3-54-g00ecf