summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-act.cc
diff options
context:
space:
mode:
authorNeil Moore <neil@s-z.org>2014-05-12 18:00:32 -0400
committerNeil Moore <neil@s-z.org>2014-05-12 18:11:14 -0400
commit9bc6d1f085097d001f0ff31f9bb900bb71957212 (patch)
treeca6c52fa82eac19c98baec7ce93b557e4d5be22e /crawl-ref/source/mon-act.cc
parentbca6d2d0ab66b008f7f1664769ba4a3a655a3444 (diff)
downloadcrawl-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/mon-act.cc')
-rw-r--r--crawl-ref/source/mon-act.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/crawl-ref/source/mon-act.cc b/crawl-ref/source/mon-act.cc
index 43e9a29d76..531ad855f5 100644
--- a/crawl-ref/source/mon-act.cc
+++ b/crawl-ref/source/mon-act.cc
@@ -1737,7 +1737,9 @@ static void _pre_monster_move(monster* mons)
{
if (mons->props["foe_pos"].get_coord().distance_from(mons->pos())
> foe->pos().distance_from(mons->pos()))
+ {
mons->props["foe_approaching"].get_bool() = true;
+ }
else
mons->props["foe_approaching"].get_bool() = false;
@@ -3344,7 +3346,9 @@ bool mon_can_move_to_pos(const monster* mons, const coord_def& delta,
if (targmonster->type == MONS_TOADSTOOL
&& mons->type == MONS_WANDERING_MUSHROOM)
+ {
return true;
+ }
// Cut down plants only when no alternative, or they're
// our target.
@@ -3702,7 +3706,9 @@ static bool _may_cutdown(monster* mons, monster* targ)
// Don't try to attack briars unless their damage will be insignificant
if (targ->type == MONS_BRIAR_PATCH && mons->type != MONS_THORN_HUNTER
&& (mons->armour_class() * mons->hit_points) < 400)
+ {
return false;
+ }
else
return true;
}
@@ -4141,9 +4147,11 @@ static void _heated_area(monster* mons)
if (final_damage > 0)
{
if (mons->observable())
+ {
mprf("%s is %s by your radiant heat.",
mons->name(DESC_THE).c_str(),
(final_damage) > 10 ? "blasted" : "burned");
+ }
behaviour_event(mons, ME_DISTURB, 0, mons->pos());