diff options
author | Vsevolod Kozlov <zaba@thorium.homeunix.org> | 2009-11-10 16:48:44 +0300 |
---|---|---|
committer | Vsevolod Kozlov <zaba@thorium.homeunix.org> | 2009-11-10 16:48:44 +0300 |
commit | 54ccf63c382d3e27c7165ee57a721929dc45f77c (patch) | |
tree | 50084e3a093d19b7826ea54834d4d3a5db2e3153 /crawl-ref/source/player.h | |
parent | 672df2f6a49ff8683255e5bad316674d16285f0c (diff) | |
download | crawl-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/player.h')
-rw-r--r-- | crawl-ref/source/player.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/player.h b/crawl-ref/source/player.h index 881e8f4f18..3f19574b95 100644 --- a/crawl-ref/source/player.h +++ b/crawl-ref/source/player.h @@ -427,7 +427,7 @@ public: void petrify(actor *, int str); void slow_down(actor *, int str); void confuse(actor *, int strength); - void heal(int amount, bool max_too = false); + bool heal(int amount, bool max_too = false); bool drain_exp(actor *, bool quiet = false, int pow = 3); bool rot(actor *, int amount, int immediate = 0, bool quiet = false); int hurt(const actor *attacker, int amount, |