From 6b01fefe35f81ddbb55cb02f887932646e8b86c0 Mon Sep 17 00:00:00 2001 From: dolorous Date: Mon, 7 Apr 2008 01:45:09 +0000 Subject: Add minor cosmetic fixes. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4085 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/spells1.cc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'crawl-ref/source/spells1.cc') 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(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 ) { -- cgit v1.2.3-54-g00ecf