diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-01-09 17:27:13 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-01-09 17:27:13 +0000 |
commit | 340eb55f6f4e86a27ae17457d04d81ca52c17e6f (patch) | |
tree | 32b3d924f5feda39cee37eb4139e21f541ffb819 /crawl-ref/source/items.cc | |
parent | 5698a4093e17ffde7c118393b221830c1b29dd94 (diff) | |
download | crawl-ref-340eb55f6f4e86a27ae17457d04d81ca52c17e6f.tar.gz crawl-ref-340eb55f6f4e86a27ae17457d04d81ca52c17e6f.zip |
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
Diffstat (limited to 'crawl-ref/source/items.cc')
-rw-r--r-- | crawl-ref/source/items.cc | 7 |
1 files changed, 7 insertions, 0 deletions
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) |