summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/item_use.cc
diff options
context:
space:
mode:
authorNicholas Feinberg <pleasingfung@gmail.com>2014-07-18 18:46:10 -0700
committerNicholas Feinberg <pleasingfung@gmail.com>2014-07-18 18:46:10 -0700
commitf44659b3475cc4018ceb21a64102c647f5c86b82 (patch)
treee851017c9875f4eab5ce687f71682b1c857c22a7 /crawl-ref/source/item_use.cc
parent9073fdf32277715b61381bbe9f5146b78ff67ab9 (diff)
downloadcrawl-ref-f44659b3475cc4018ceb21a64102c647f5c86b82.tar.gz
crawl-ref-f44659b3475cc4018ceb21a64102c647f5c86b82.zip
Don't add an extra turn's delay to donning/doffing armour
Also fixes swapping armour with W being faster than T -> W.
Diffstat (limited to 'crawl-ref/source/item_use.cc')
-rw-r--r--crawl-ref/source/item_use.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc
index f250e79a1f..d49ed9df15 100644
--- a/crawl-ref/source/item_use.cc
+++ b/crawl-ref/source/item_use.cc
@@ -785,6 +785,7 @@ bool do_wear_armour(int item, bool quiet)
}
you.turn_is_over = true;
+ you.time_taken = 0; // will be handled by equip delay
if (!_safe_to_remove_or_wear(invitem, false))
return false;
@@ -862,6 +863,7 @@ bool takeoff_armour(int item)
}
you.turn_is_over = true;
+ you.time_taken = 0; // will be handled by unequip delay
const int delay = armour_equip_delay(invitem);
start_delay(DELAY_ARMOUR_OFF, delay, item);