summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spells1.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-04-19 15:03:47 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-04-19 15:03:47 +0000
commit9fc42394f269d48501b23bf397b9eeb9938aa6e5 (patch)
treeb44b8939897598a6456f53b9b0f894cd04e47a5b /crawl-ref/source/spells1.cc
parent382bc988303c51169e03fa2dae71dba51ba40d88 (diff)
downloadcrawl-ref-9fc42394f269d48501b23bf397b9eeb9938aa6e5.tar.gz
crawl-ref-9fc42394f269d48501b23bf397b9eeb9938aa6e5.zip
Add some of the suggested changes to Elyvilon in [2762165]: Lesser Heal
Other no longer costs piety, but it will no longer work as well on weak monsters. Note that the documentation for Heal Other has not been updated yet. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9655 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spells1.cc')
-rw-r--r--crawl-ref/source/spells1.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/crawl-ref/source/spells1.cc b/crawl-ref/source/spells1.cc
index 28a0437b8e..292a0a5b10 100644
--- a/crawl-ref/source/spells1.cc
+++ b/crawl-ref/source/spells1.cc
@@ -763,7 +763,7 @@ static int _healing_spell(int healed, bool divine_ability,
// Give a small piety return.
if (!is_summoned)
- gain_piety(1 + random2(healed/15));
+ gain_piety(random2(1 + random2(monster->max_hit_points / 12)));
}
}
@@ -787,9 +787,12 @@ static int _healing_spell(int healed, bool divine_ability,
}
if (!did_something)
+ {
canned_msg(MSG_NOTHING_HAPPENS);
+ return (0);
+ }
- return (did_something ? 1 : 0);
+ return (1);
}
// Returns: 1 -- success, 0 -- failure, -1 -- cancel