summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/cloud.cc
diff options
context:
space:
mode:
authorgammafunk <gammafunk@gmail.com>2014-08-05 19:46:48 -0500
committergammafunk <gammafunk@gmail.com>2014-08-05 19:56:32 -0500
commit28e3730145ef18d613acfa864b65aaffd953440d (patch)
treee94fce2527a84f6695bb389444e8a37dbba30b81 /crawl-ref/source/cloud.cc
parent57b3fc90fd53850f7dc4e0e4fb6dd3d0ed48fedb (diff)
downloadcrawl-ref-28e3730145ef18d613acfa864b65aaffd953440d.tar.gz
crawl-ref-28e3730145ef18d613acfa864b65aaffd953440d.zip
Simplify out a function
Diffstat (limited to 'crawl-ref/source/cloud.cc')
-rw-r--r--crawl-ref/source/cloud.cc12
1 files changed, 0 insertions, 12 deletions
diff --git a/crawl-ref/source/cloud.cc b/crawl-ref/source/cloud.cc
index b99fe48f11..3c46374c55 100644
--- a/crawl-ref/source/cloud.cc
+++ b/crawl-ref/source/cloud.cc
@@ -702,18 +702,6 @@ cloud_type random_smoke_type()
}
return CLOUD_DEBUGGING;
}
-
-// Returns by how much damage gets divided due to elemental resistances.
-// Damage is reduced to, level 1 -> 1/2, level 2 -> 1/3, level 3 -> 1/5, or
-// for "boolean" attacks (which use bonus_res = 1, sticky flame/electricity)
-// to level 1 -> 1/3, level 2 -> 1/4, or level 3 -> 1/6.
-// With the old formula (1 + resist * resist) this used to be
-// 1/2, 1/5, 1/10 (normal) and 1/3, 1/6, 1/11 (boolean), respectively.
-int resist_fraction(int resist, int bonus_res)
-{
- return (3*resist + 1)/2 + bonus_res;
-}
-
int max_cloud_damage(cloud_type cl_type, int power)
{
cloud_struct cloud;