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/player.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/player.cc') diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc index e02c28e6e7..6dc93fb6f4 100644 --- a/crawl-ref/source/player.cc +++ b/crawl-ref/source/player.cc @@ -6346,9 +6346,10 @@ int player::melee_evasion(const actor *act, ev_ignore_type evit) const && !is_run_delay(current_delay_action())? 5 : 0)); } -void player::heal(int amount, bool max_too) +bool player::heal(int amount, bool max_too) { ::inc_hp(amount, max_too); + return true; /* TODO Check whether the player was healed. */ } mon_holy_type player::holiness() const -- cgit v1.2.3-54-g00ecf