summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spells1.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-05-23 21:50:37 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-05-23 21:50:37 +0000
commite4a8dcc31b38eaef1dd6ffeb8f857831ec6cbbd5 (patch)
treec650c8699ec23c574d668c411fb31b6cbb1e8b4c /crawl-ref/source/spells1.cc
parent547bfe2ffd3e3a286706aad2b4b92477712ae0ad (diff)
downloadcrawl-ref-e4a8dcc31b38eaef1dd6ffeb8f857831ec6cbbd5.tar.gz
crawl-ref-e4a8dcc31b38eaef1dd6ffeb8f857831ec6cbbd5.zip
Indicate via the message whether healing a friendly monster gained piety
with Elyvilon, based on the previous messages. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9810 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spells1.cc')
-rw-r--r--crawl-ref/source/spells1.cc21
1 files changed, 14 insertions, 7 deletions
diff --git a/crawl-ref/source/spells1.cc b/crawl-ref/source/spells1.cc
index 2558184a29..7724d0112f 100644
--- a/crawl-ref/source/spells1.cc
+++ b/crawl-ref/source/spells1.cc
@@ -773,13 +773,11 @@ static int _healing_spell(int healed, bool divine_ability,
good_god_holy_attitude_change(monster);
else
{
-
simple_monster_message(monster, " turns neutral.");
mons_pacify(monster);
// Give a small piety return.
- if (!is_summoned)
- gain_piety(pgain);
+ gain_piety(pgain);
}
}
@@ -795,10 +793,19 @@ static int _healing_spell(int healed, bool divine_ability,
if (you.religion == GOD_ELYVILON && !is_hostile)
{
- simple_god_message(" appreciates your healing of a fellow "
- "creature.");
- if (one_chance_in(8))
- gain_piety(1);
+ int pgain = 0;
+ if (one_chance_in(8) && you.piety < MAX_PIETY)
+ pgain = 1;
+
+ if (pgain > 0)
+ simple_god_message(" approves of your healing of a fellow "
+ "creature.");
+ else
+ simple_god_message(" appreciates your healing of a fellow "
+ "creature.");
+
+ // Give a small piety return.
+ gain_piety(pgain);
}
}