summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spells1.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-04-07 01:45:09 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-04-07 01:45:09 +0000
commit6b01fefe35f81ddbb55cb02f887932646e8b86c0 (patch)
treed803027a39383932a3aafab13e7f1f623231c2d9 /crawl-ref/source/spells1.cc
parented065735ffa2e0d9356ace415844fd9c441c36d1 (diff)
downloadcrawl-ref-6b01fefe35f81ddbb55cb02f887932646e8b86c0.tar.gz
crawl-ref-6b01fefe35f81ddbb55cb02f887932646e8b86c0.zip
Add minor cosmetic fixes.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4085 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spells1.cc')
-rw-r--r--crawl-ref/source/spells1.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/crawl-ref/source/spells1.cc b/crawl-ref/source/spells1.cc
index 62081acdbc..c45fc3cf97 100644
--- a/crawl-ref/source/spells1.cc
+++ b/crawl-ref/source/spells1.cc
@@ -612,7 +612,7 @@ static bool _can_pacify_monster(const monsters *mon, const int healed)
: 1; // other
const int random_factor = random2(you.skills[SK_INVOCATIONS] * healed/3);
-
+
#ifdef DEBUG_DIAGNOSTICS
mprf(MSGCH_DIAGNOSTICS,
"pacifying %s? max hp: %d, factor: %d, Inv: %d, healed: %d, rnd: %d",
@@ -642,7 +642,7 @@ static int _healing_spell( int healed, int target_x = -1, int target_y = -1)
bmove.ty = target_y;
bmove.isValid = true;
}
-
+
if (!bmove.isValid || !in_bounds(bmove.tx, bmove.ty))
{
canned_msg( MSG_OK );
@@ -657,7 +657,7 @@ static int _healing_spell( int healed, int target_x = -1, int target_y = -1)
}
const int mgr = mgrd[bmove.tx][bmove.ty];
-
+
if (mgr == NON_MONSTER)
{
mpr("There isn't anything there!");
@@ -665,7 +665,7 @@ static int _healing_spell( int healed, int target_x = -1, int target_y = -1)
}
monsters *monster = &menv[mgr];
-
+
// don't heal monster you can't pacify
if (you.religion == GOD_ELYVILON && _mons_hostile(monster)
&& !_can_pacify_monster(monster, healed))
@@ -686,7 +686,7 @@ static int _healing_spell( int healed, int target_x = -1, int target_y = -1)
const monsters *mons = static_cast<const monsters*>(monster);
print_wounds(mons);
}
-
+
if (you.religion == GOD_ELYVILON && !_mons_hostile(monster))
{
simple_god_message(" appreciates the healing of a fellow creature.");
@@ -696,7 +696,7 @@ static int _healing_spell( int healed, int target_x = -1, int target_y = -1)
}
nothing_happens = false;
}
-
+
if (you.religion == GOD_ELYVILON && _mons_hostile(monster))
{
simple_god_message(" supports your offer of peace.");
@@ -733,7 +733,7 @@ char cast_greatest_healing( int pow )
{
return _healing_spell(50 + random2avg(49, 2));
}
-#endif
+#endif
int cast_healing( int pow, int target_x, int target_y )
{