From dbab0ee932f675095c1bbd6a72911ded79eddf69 Mon Sep 17 00:00:00 2001 From: dolorous Date: Sat, 7 Feb 2009 23:24:12 +0000 Subject: Add still more minor cosmetic fixes. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8966 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/spells4.cc | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'crawl-ref/source/spells4.cc') diff --git a/crawl-ref/source/spells4.cc b/crawl-ref/source/spells4.cc index 66a786b29d..8315ed4580 100644 --- a/crawl-ref/source/spells4.cc +++ b/crawl-ref/source/spells4.cc @@ -768,7 +768,7 @@ void cast_silence(int pow) } } -static int _discharge_monsters( coord_def where, int pow, int, actor *) +static int _discharge_monsters(coord_def where, int pow, int, actor *) { const int mon = mgrd(where); int damage = 0; @@ -778,10 +778,10 @@ static int _discharge_monsters( coord_def where, int pow, int, actor *) if (where == you.pos()) { - mpr( "You are struck by lightning." ); - damage = 3 + random2( 5 + pow / 10 ); + mpr("You are struck by lightning."); + damage = 3 + random2(5 + pow / 10); damage = check_your_resists( damage, BEAM_ELECTRICITY ); - if ( player_is_airborne() ) + if (player_is_airborne()) damage /= 2; ouch(damage, NON_MONSTER, KILLED_BY_WILD_MAGIC); } @@ -796,9 +796,9 @@ static int _discharge_monsters( coord_def where, int pow, int, actor *) if (damage) { - mprf( "%s is struck by lightning.", - menv[mon].name(DESC_CAP_THE).c_str()); - _player_hurt_monster( mon, damage ); + mprf("%s is struck by lightning.", + menv[mon].name(DESC_CAP_THE).c_str()); + _player_hurt_monster(mon, damage); } } @@ -806,31 +806,31 @@ static int _discharge_monsters( coord_def where, int pow, int, actor *) // Low power slight chance added for low power characters -- bwr if ((pow >= 10 && !one_chance_in(3)) || (pow >= 3 && one_chance_in(10))) { - mpr( "The lightning arcs!" ); + mpr("The lightning arcs!"); pow /= (coinflip() ? 2 : 3); - damage += apply_random_around_square( _discharge_monsters, where, - true, pow, 1 ); + damage += apply_random_around_square(_discharge_monsters, where, + true, pow, 1); } else if (damage > 0) { // Only printed if we did damage, so that the messages in // cast_discharge() are clean. -- bwr - mpr( "The lightning grounds out." ); + mpr("The lightning grounds out."); } return (damage); } -void cast_discharge( int pow ) +void cast_discharge(int pow) { - int num_targs = 1 + random2( 1 + pow / 25 ); + int num_targs = 1 + random2(1 + pow / 25); int dam; - dam = apply_random_around_square( _discharge_monsters, you.pos(), - true, pow, num_targs ); + dam = apply_random_around_square(_discharge_monsters, you.pos(), + true, pow, num_targs); #if DEBUG_DIAGNOSTICS - mprf(MSGCH_DIAGNOSTICS, "Arcs: %d Damage: %d", num_targs, dam ); + mprf(MSGCH_DIAGNOSTICS, "Arcs: %d Damage: %d", num_targs, dam); #endif if (dam == 0) @@ -871,7 +871,7 @@ static int _distortion_monsters(coord_def where, int pow, int, actor *) "cast bend on self" ); } - return 1; + return (1); } int monster_attacked = mgrd(where); -- cgit v1.2.3-54-g00ecf