summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spells4.cc
diff options
context:
space:
mode:
authorDavid Lawrence Ramsey <dolorous@users.sourceforge.net>2009-10-20 20:01:19 -0500
committerDavid Lawrence Ramsey <dolorous@users.sourceforge.net>2009-10-20 20:01:58 -0500
commite3a04ec3a1b79e8f8ae8937e3fe16552384e557b (patch)
tree899b4426d9cc3deef16e1ed1031c88df0f0c5054 /crawl-ref/source/spells4.cc
parent00e0df0c6cfcd47a9f71bf1bbd211db340baaf06 (diff)
downloadcrawl-ref-e3a04ec3a1b79e8f8ae8937e3fe16552384e557b.tar.gz
crawl-ref-e3a04ec3a1b79e8f8ae8937e3fe16552384e557b.zip
Remove tabs, and add minor cosmetic fixes.
Diffstat (limited to 'crawl-ref/source/spells4.cc')
-rw-r--r--crawl-ref/source/spells4.cc42
1 files changed, 20 insertions, 22 deletions
diff --git a/crawl-ref/source/spells4.cc b/crawl-ref/source/spells4.cc
index 5ac7df2a32..42e99068d9 100644
--- a/crawl-ref/source/spells4.cc
+++ b/crawl-ref/source/spells4.cc
@@ -2044,26 +2044,24 @@ void cast_stoneskin(int pow)
bool do_slow_monster(monsters* mon, kill_category whose_kill)
{
- // Try to remove haste, if monster is hasted.
- if (mon->del_ench(ENCH_HASTE, true))
- {
- if (simple_monster_message(mon, " is no longer moving quickly."))
- {
- return true;
- }
- }
-
- // Not hasted, slow it.
- if (!mon->has_ench(ENCH_SLOW)
- && !mons_is_stationary(mon)
- && mon->add_ench(mon_enchant(ENCH_SLOW, 0, whose_kill)))
- {
- if (!mons_is_paralysed(mon) && !mons_is_petrified(mon)
- && simple_monster_message(mon, " seems to slow down."))
- {
- return true;
- }
- }
-
- return false;
+ // Try to remove haste, if monster is hasted.
+ if (mon->del_ench(ENCH_HASTE, true))
+ {
+ if (simple_monster_message(mon, " is no longer moving quickly."))
+ return (true);
+ }
+
+ // Not hasted, slow it.
+ if (!mon->has_ench(ENCH_SLOW)
+ && !mons_is_stationary(mon)
+ && mon->add_ench(mon_enchant(ENCH_SLOW, 0, whose_kill)))
+ {
+ if (!mons_is_paralysed(mon) && !mons_is_petrified(mon)
+ && simple_monster_message(mon, " seems to slow down."))
+ {
+ return (true);
+ }
+ }
+
+ return (false);
}