summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/item_use.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-02-22 21:03:01 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-02-22 21:03:01 +0000
commit42d8d07399655f768c9547ed3f47f39623856291 (patch)
treecc2250fa7e40fc89e88d83de33644885ff301718 /crawl-ref/source/item_use.cc
parent910f0c606fea238e7382a713e0d465ae189c05ce (diff)
downloadcrawl-ref-42d8d07399655f768c9547ed3f47f39623856291.tar.gz
crawl-ref-42d8d07399655f768c9547ed3f47f39623856291.zip
Fix 2603266: Additional '(' needed for cycling ammo after emptying the
previously quivered stack. FR 2594741: Make ')' cycle quiver backwards. The previous behaviour has been moved to '}'. The equipped inventory listing ']' now also includes the quivered item(s). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9164 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/item_use.cc')
-rw-r--r--crawl-ref/source/item_use.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc
index c2d8273be1..41fdf840c1 100644
--- a/crawl-ref/source/item_use.cc
+++ b/crawl-ref/source/item_use.cc
@@ -1223,6 +1223,11 @@ bool takeoff_armour(int item)
return (true);
}
+bool item_is_quivered(const item_def &item)
+{
+ return (item.link == you.m_quiver->get_fire_item());
+}
+
int get_next_fire_item(int current, int direction)
{
std::vector<int> fire_order;