diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-02-08 00:44:14 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-02-08 00:44:14 +0000 |
commit | d419d7dc79e02aafe700dcccba8638975a4cd2e7 (patch) | |
tree | aea1a8b5dbf670bbd6c67dd031c88b8562c2b695 /crawl-ref/source/effects.cc | |
parent | dbab0ee932f675095c1bbd6a72911ded79eddf69 (diff) | |
download | crawl-ref-d419d7dc79e02aafe700dcccba8638975a4cd2e7.tar.gz crawl-ref-d419d7dc79e02aafe700dcccba8638975a4cd2e7.zip |
Add yet more minor cosmetic fixes.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8967 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/effects.cc')
-rw-r--r-- | crawl-ref/source/effects.cc | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/crawl-ref/source/effects.cc b/crawl-ref/source/effects.cc index 5bfbd5d67b..9c3dff2570 100644 --- a/crawl-ref/source/effects.cc +++ b/crawl-ref/source/effects.cc @@ -64,7 +64,7 @@ REVISION("$Rev$"); int holy_word_player(int pow, int caster, actor *attacker) { if (!player_is_unholy()) - return 0; + return (0); int hploss; @@ -75,7 +75,7 @@ int holy_word_player(int pow, int caster, actor *attacker) hploss = roll_dice(2, 15) + (random2(pow) / 3); if (!hploss) - return 0; + return (0); mpr("You are blasted by holy energy!"); @@ -106,7 +106,7 @@ int holy_word_player(int pow, int caster, actor *attacker) ouch(hploss, caster, type, aux); - return 1; + return (1); } int holy_word_monsters(coord_def where, int pow, int caster, @@ -125,12 +125,12 @@ int holy_word_monsters(coord_def where, int pow, int caster, const int mon = mgrd(where); if (mon == NON_MONSTER) - return retval; + return (retval); monsters *monster = &menv[mon]; if (!monster->alive() || !mons_is_unholy(monster)) - return retval; + return (retval); int hploss; @@ -164,7 +164,7 @@ int holy_word_monsters(coord_def where, int pow, int caster, } } - return retval; + return (retval); } int holy_word(int pow, int caster, const coord_def& where, bool silent, @@ -177,8 +177,8 @@ int holy_word(int pow, int caster, const coord_def& where, bool silent, attacker->conj_verb("speak").c_str()); } - return apply_area_within_radius(holy_word_monsters, where, pow, 8, caster, - attacker); + return (apply_area_within_radius(holy_word_monsters, where, pow, 8, caster, + attacker)); } int torment_player(int pow, int caster) @@ -201,7 +201,7 @@ int torment_player(int pow, int caster) if (!hploss) { mpr("You feel a surge of unholy energy."); - return 0; + return (0); } mpr("Your body is wracked with pain!"); @@ -241,7 +241,7 @@ int torment_player(int pow, int caster) ouch(hploss, caster, type, aux); - return 1; + return (1); } // torment_monsters() is called with power 0 because torment is @@ -263,12 +263,12 @@ int torment_monsters(coord_def where, int pow, int caster, actor *attacker) const int mon = mgrd(where); if (mon == NON_MONSTER) - return retval; + return (retval); monsters *monster = &menv[mon]; if (!monster->alive() || mons_res_negative_energy(monster) == 3) - return retval; + return (retval); int hploss = std::max(0, monster->hit_points / 2 - 1); @@ -282,12 +282,12 @@ int torment_monsters(coord_def where, int pow, int caster, actor *attacker) if (hploss) retval = 1; - return retval; + return (retval); } int torment(int caster, const coord_def& where) { - return apply_area_within_radius(torment_monsters, where, 0, 8, caster); + return (apply_area_within_radius(torment_monsters, where, 0, 8, caster)); } void immolation(int pow, int caster, coord_def where, bool known, |