summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/beam.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-04 04:37:39 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-04 04:37:39 +0000
commit6deb021e6ed4a651d530c374f5ceeec1acea06ef (patch)
treed3349dd4f24de6f9797c851c28e6f977484ac571 /crawl-ref/source/beam.cc
parentdabc27ffa91d8e115296f49461742c080813e877 (diff)
downloadcrawl-ref-6deb021e6ed4a651d530c374f5ceeec1acea06ef.tar.gz
crawl-ref-6deb021e6ed4a651d530c374f5ceeec1acea06ef.zip
Add minor cosmetic fixes.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5468 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/beam.cc')
-rw-r--r--crawl-ref/source/beam.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/crawl-ref/source/beam.cc b/crawl-ref/source/beam.cc
index 0696d4510a..8fb57564b9 100644
--- a/crawl-ref/source/beam.cc
+++ b/crawl-ref/source/beam.cc
@@ -4166,21 +4166,29 @@ static bool _beam_is_harmless(bolt &beam, monsters *mon)
return (mons_is_holy(mon)
|| is_good_god(you.religion)
&& ( is_follower(mon) || mons_neutral(mon) ));
+
case BEAM_STEAM:
return (mons_res_steam(mon) >= 3);
+
case BEAM_FIRE:
return (mons_res_fire(mon) >= 3);
+
case BEAM_COLD:
return (mons_res_cold(mon) >= 3);
+
case BEAM_MIASMA:
case BEAM_NEG:
return (mons_res_negative_energy(mon) == 3);
+
case BEAM_ELECTRICITY:
return (mons_res_elec(mon) >= 3);
+
case BEAM_POISON:
return (mons_res_poison(mon) >= 3);
+
case BEAM_ACID:
return (mons_res_acid(mon) >= 3);
+
default:
return (false);
}