summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/fight.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-09-20 14:09:25 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-09-20 14:09:25 +0000
commit913179f028b4a254eb5034ef6ce945d07ac5925a (patch)
tree46de765eaa7ed73f1bc89ee6f05d4429c58c3bbd /crawl-ref/source/fight.cc
parent40c5f6d3c67bf321e2f65cf4b3d92df1c0153b0c (diff)
downloadcrawl-ref-913179f028b4a254eb5034ef6ce945d07ac5925a.tar.gz
crawl-ref-913179f028b4a254eb5034ef6ce945d07ac5925a.zip
Add minor cosmetic fixes.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10739 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/fight.cc')
-rw-r--r--crawl-ref/source/fight.cc11
1 files changed, 6 insertions, 5 deletions
diff --git a/crawl-ref/source/fight.cc b/crawl-ref/source/fight.cc
index 2d0dc36a12..c7df516e7c 100644
--- a/crawl-ref/source/fight.cc
+++ b/crawl-ref/source/fight.cc
@@ -2065,13 +2065,14 @@ int resist_adjust_damage(actor *defender, beam_type flavour,
resistible = 0;
else
{
- // Check if this is a resist that pretends to be boolean for damage
- // purposes. Only electricity and sticky flame (napalm) do this at
- // the moment; raw poison damage uses the normal formula.
+ // Check if this is a resist that pretends to be boolean for
+ // damage purposes. Only electricity, miasma and sticky
+ // flame (napalm) do this at the moment; raw poison damage
+ // uses the normal formula.
const int bonus_res = (is_boolean_resist(flavour) ? 1 : 0);
- // Use a new formula for players, but keep the old, more effective
- // for monsters.
+ // Use a new formula for players, but keep the old, more
+ // effective one for monsters.
if (monster)
resistible /= 1 + bonus_res + res * res;
else