From 340eb55f6f4e86a27ae17457d04d81ca52c17e6f Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Wed, 9 Jan 2008 17:27:13 +0000 Subject: List quiver in status section like you do for the hand weapon. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3234 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/items.cc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'crawl-ref/source/items.cc') diff --git a/crawl-ref/source/items.cc b/crawl-ref/source/items.cc index d5346e87c6..d43d325278 100644 --- a/crawl-ref/source/items.cc +++ b/crawl-ref/source/items.cc @@ -240,6 +240,9 @@ bool dec_inv_item_quantity( int obj, int amount ) if (you.equip[EQ_WEAPON] == obj) you.wield_change = true; + if (you.quiver == obj) + you.quiver_change = true; + if (you.inv[obj].quantity <= amount) { for (int i = 0; i < NUM_EQUIP; i++) @@ -308,6 +311,9 @@ void inc_inv_item_quantity( int obj, int amount ) { if (you.equip[EQ_WEAPON] == obj) you.wield_change = true; + + if (you.quiver == obj) + you.quiver_change = true; you.inv[obj].quantity += amount; burden_change(); @@ -1559,6 +1565,7 @@ int move_item_to_player( int obj, int quant_got, bool quiet ) item.quantity = quant_got; dec_mitm_item_quantity( obj, quant_got ); + you.quiver_change = true; burden_change(); if (!quiet) -- cgit v1.2.3-54-g00ecf