summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/item_use.cc
diff options
context:
space:
mode:
authorNicholas Feinberg <pleasingfung@gmail.com>2014-07-17 22:26:56 -0700
committerNicholas Feinberg <pleasingfung@gmail.com>2014-07-18 18:13:59 -0700
commitfd3010e7d3e9bd5aaf5189135b7fb5dace197dc5 (patch)
tree248939f9660396b89bf8ca08cb3f2d68b32e0cfe /crawl-ref/source/item_use.cc
parentce9369710a903f8ee724f44517969014bb95b3e9 (diff)
downloadcrawl-ref-fd3010e7d3e9bd5aaf5189135b7fb5dace197dc5.tar.gz
crawl-ref-fd3010e7d3e9bd5aaf5189135b7fb5dace197dc5.zip
Make armour swapping take a fixed turn count
Diffstat (limited to 'crawl-ref/source/item_use.cc')
-rw-r--r--crawl-ref/source/item_use.cc17
1 files changed, 7 insertions, 10 deletions
diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc
index 75320437bc..bb41d27bb0 100644
--- a/crawl-ref/source/item_use.cc
+++ b/crawl-ref/source/item_use.cc
@@ -462,18 +462,15 @@ void wear_armour(int slot) // slot is for tiles
do_wear_armour(armour_wear_2, false);
}
+/**
+ * The number of turns it takes to put on or take off a given piece of armour.
+ *
+ * @param item The armour in question.
+ * @return The number of turns it takes to don or doff the item.
+ */
static int armour_equip_delay(const item_def &item)
{
- int delay = property(item, PARM_AC);
-
- // Shields are comparatively easy to wear.
- if (is_shield(item))
- delay = delay / 2 + 1;
-
- if (delay < 1)
- delay = 1;
-
- return delay;
+ return 5;
}
bool can_wear_armour(const item_def &item, bool verbose, bool ignore_temporary)