summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/itemprop.cc
diff options
context:
space:
mode:
authorNicholas Feinberg <pleasingfung@gmail.com>2014-07-10 22:55:13 -0700
committerNicholas Feinberg <pleasingfung@gmail.com>2014-07-10 22:57:30 -0700
commit603073ef4d6b98ef9e123882a8b326395ddbffe5 (patch)
tree990ad5690472f35b8323253ec3117ada2f74ff0f /crawl-ref/source/itemprop.cc
parentf59e580eefff8ef4acfa3b18e19c2d6d72c5b7a0 (diff)
downloadcrawl-ref-603073ef4d6b98ef9e123882a8b326395ddbffe5.tar.gz
crawl-ref-603073ef4d6b98ef9e123882a8b326395ddbffe5.zip
Display less misleading sling base damage
Diffstat (limited to 'crawl-ref/source/itemprop.cc')
-rw-r--r--crawl-ref/source/itemprop.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/crawl-ref/source/itemprop.cc b/crawl-ref/source/itemprop.cc
index ee111dca8a..e97c9974fd 100644
--- a/crawl-ref/source/itemprop.cc
+++ b/crawl-ref/source/itemprop.cc
@@ -1890,6 +1890,17 @@ int ammo_type_destroy_chance(int missile_type)
}
}
+/**
+ * Returns the base damage of a given item type.
+ *
+ * @param missile_type The missile type to get the damage for.
+ * @return The base damage of the given missile type.
+ */
+int ammo_type_damage(int missile_type)
+{
+ return Missile_prop[ Missile_index[missile_type] ].dam;
+}
+
//