summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/abl-show.cc
diff options
context:
space:
mode:
authorDavid Lawrence Ramsey <dolorous@users.sourceforge.net>2009-10-08 20:14:34 -0500
committerDavid Lawrence Ramsey <dolorous@users.sourceforge.net>2009-10-08 20:14:34 -0500
commit5104ca27df9356c8c681d8a138267a2758b81745 (patch)
tree5410b3dc164fde999129be44e943a431b91b2b52 /crawl-ref/source/abl-show.cc
parenta02ac88221ce67d4b45212f530ea0cf703eb9ed3 (diff)
downloadcrawl-ref-5104ca27df9356c8c681d8a138267a2758b81745.tar.gz
crawl-ref-5104ca27df9356c8c681d8a138267a2758b81745.zip
Add minor cosmetic fixes.
Diffstat (limited to 'crawl-ref/source/abl-show.cc')
-rw-r--r--crawl-ref/source/abl-show.cc32
1 files changed, 17 insertions, 15 deletions
diff --git a/crawl-ref/source/abl-show.cc b/crawl-ref/source/abl-show.cc
index 6ab2430a3e..822ac0bb4f 100644
--- a/crawl-ref/source/abl-show.cc
+++ b/crawl-ref/source/abl-show.cc
@@ -1299,22 +1299,23 @@ static bool _do_ability(const ability_def& abil)
break;
case ABIL_DELAYED_FIREBALL:
- {
- // Note: power level of ball calculated at release -- bwr
- const int pow = calc_spell_power(SPELL_DELAYED_FIREBALL, true);
- const int fake_range = spell_range(SPELL_FIREBALL, pow, false);
+ {
+ // Note: Power level of ball calculated at release. - bwr
+ const int pow = calc_spell_power(SPELL_DELAYED_FIREBALL, true);
+ const int fake_range = spell_range(SPELL_FIREBALL, pow, false);
- if (!spell_direction(spd, beam, DIR_NONE, TARG_HOSTILE, fake_range))
- return (false);
+ if (!spell_direction(spd, beam, DIR_NONE, TARG_HOSTILE, fake_range))
+ return (false);
- beam.range = spell_range(SPELL_FIREBALL, pow, true);
- if (!fireball(pow, beam))
- return (false);
- }
+ beam.range = spell_range(SPELL_FIREBALL, pow, true);
- // only one allowed since this is instantaneous -- bwr
+ if (!fireball(pow, beam))
+ return (false);
+
+ // Only one allowed, since this is instantaneous. - bwr
you.attribute[ATTR_DELAYED_FIREBALL] = 0;
break;
+ }
case ABIL_SPIT_POISON: // Naga + spit poison mutation
{
@@ -1703,8 +1704,8 @@ static bool _do_ability(const ability_def& abil)
return (false);
power = you.skills[SK_INVOCATIONS]
- + random2( 1 + you.skills[SK_INVOCATIONS] )
- + random2( 1 + you.skills[SK_INVOCATIONS] );
+ + random2(1 + you.skills[SK_INVOCATIONS])
+ + random2(1 + you.skills[SK_INVOCATIONS]);
// Since the actual beam is random, check with BEAM_MMISSILE and the
// highest range possible (electricity).
@@ -1964,8 +1965,8 @@ static bool _do_ability(const ability_def& abil)
if (count)
{
- simple_god_message(" appreciates your contribution to the ecosystem.",
- GOD_FEAWN);
+ simple_god_message(" appreciates your contribution to the "
+ "ecosystem.", GOD_FEAWN);
}
// We are following the blood god sacrifice piety gain model, given as:
@@ -1983,6 +1984,7 @@ static bool _do_ability(const ability_def& abil)
gain_piety(piety_gain);
break;
}
+
case ABIL_FEAWN_SUNLIGHT:
if (!sunlight())
return (false);