diff options
author | Neil Moore <neil@s-z.org> | 2014-05-12 18:00:32 -0400 |
---|---|---|
committer | Neil Moore <neil@s-z.org> | 2014-05-12 18:11:14 -0400 |
commit | 9bc6d1f085097d001f0ff31f9bb900bb71957212 (patch) | |
tree | ca6c52fa82eac19c98baec7ce93b557e4d5be22e /crawl-ref/source/spl-damage.cc | |
parent | bca6d2d0ab66b008f7f1664769ba4a3a655a3444 (diff) | |
download | crawl-ref-9bc6d1f085097d001f0ff31f9bb900bb71957212.tar.gz crawl-ref-9bc6d1f085097d001f0ff31f9bb900bb71957212.zip |
Formatting fixes (add braces).
This fixes all the instances caught by unbrace.
Diffstat (limited to 'crawl-ref/source/spl-damage.cc')
-rw-r--r-- | crawl-ref/source/spl-damage.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/crawl-ref/source/spl-damage.cc b/crawl-ref/source/spl-damage.cc index 6c22a90b47..aaf7d6e804 100644 --- a/crawl-ref/source/spl-damage.cc +++ b/crawl-ref/source/spl-damage.cc @@ -768,8 +768,10 @@ spret_type cast_los_attack_spell(spell_type spell, int pow, actor* agent, if (actual) { if (post_hook) + { (*post_hook)(agent, affects_you, affected_monsters, pow, total_damage); + } return SPRET_SUCCESS; } @@ -1331,8 +1333,10 @@ bool mons_shatter(monster* caster, bool actual) if (actual) { if (silence) + { mprf("The dungeon shakes around %s!", caster->name(DESC_THE).c_str()); + } else { noisy(30, caster->pos(), caster->mindex()); @@ -2525,6 +2529,7 @@ void forest_damage(const actor *mon) const int hd = mon->get_experience_level(); if (one_chance_in(4)) + { forest_message(pos, random_choose( "The trees move their gnarly branches around.", "You feel roots moving beneath the ground.", @@ -2532,6 +2537,7 @@ void forest_damage(const actor *mon) "Trunks creak and shift.", "Tree limbs sway around you.", 0), MSGCH_TALK_VISUAL); + } for (radius_iterator ri(pos, LOS_NO_TRANS); ri; ++ri) { |