diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-09-20 14:09:25 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-09-20 14:09:25 +0000 |
commit | 913179f028b4a254eb5034ef6ce945d07ac5925a (patch) | |
tree | 46de765eaa7ed73f1bc89ee6f05d4429c58c3bbd /crawl-ref | |
parent | 40c5f6d3c67bf321e2f65cf4b3d92df1c0153b0c (diff) | |
download | crawl-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')
-rw-r--r-- | crawl-ref/source/fight.cc | 11 | ||||
-rw-r--r-- | crawl-ref/source/mon-util.cc | 2 |
2 files changed, 7 insertions, 6 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 diff --git a/crawl-ref/source/mon-util.cc b/crawl-ref/source/mon-util.cc index 718d0bcd5f..a4394ac806 100644 --- a/crawl-ref/source/mon-util.cc +++ b/crawl-ref/source/mon-util.cc @@ -1318,7 +1318,7 @@ bool mons_res_asphyx(const monsters *mon) int mons_res_acid(const monsters *mon) { - return get_mons_resists(mon).acid; + return (get_mons_resists(mon).acid); } int mons_res_poison(const monsters *mon) |