diff options
author | pauldubois <pauldubois@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-04-14 07:35:39 +0000 |
---|---|---|
committer | pauldubois <pauldubois@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-04-14 07:35:39 +0000 |
commit | 94ceb87517474ac372a41a52a3448104f51435bf (patch) | |
tree | 9a39e73ebab7856f7da8ea68aa6e6c1a15ee4713 /crawl-ref/source/items.cc | |
parent | bfeb59ed40adef39b01dcb1fb9a8e6a500eec1b9 (diff) | |
download | crawl-ref-94ceb87517474ac372a41a52a3448104f51435bf.tar.gz crawl-ref-94ceb87517474ac372a41a52a3448104f51435bf.zip |
Quiver work:
+ bug: if wield sling and no quiver, then pick up stones: should quiver
+ implement: save and load (does not break saves)
+ remove: fire_quiver_best
+ remove: you.quiver
+ bug: identifying items doesn't update quiver properly
+ rename: you.quiver_change -> you.redraw_quiver
+ test no item because of =f
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4227 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/items.cc')
-rw-r--r-- | crawl-ref/source/items.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/items.cc b/crawl-ref/source/items.cc index 52aee95021..f7aa0a111b 100644 --- a/crawl-ref/source/items.cc +++ b/crawl-ref/source/items.cc @@ -244,7 +244,7 @@ bool dec_inv_item_quantity( int obj, int amount ) if (you.equip[EQ_WEAPON] == obj) you.wield_change = true; - you.m_quiver->on_inv_quantity_change(obj, amount); + you.m_quiver->on_inv_quantity_changed(obj, amount); if (you.inv[obj].quantity <= amount) { @@ -315,7 +315,7 @@ void inc_inv_item_quantity( int obj, int amount ) if (you.equip[EQ_WEAPON] == obj) you.wield_change = true; - you.m_quiver->on_inv_quantity_change(obj, amount); + you.m_quiver->on_inv_quantity_changed(obj, amount); you.inv[obj].quantity += amount; burden_change(); } @@ -1587,7 +1587,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; + you.m_quiver->on_inv_quantity_changed(freeslot, quant_got); burden_change(); if (!quiet) |