summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/itemprop.cc
diff options
context:
space:
mode:
authorpauldubois <pauldubois@c06c8d41-db1a-0410-9941-cceddc491573>2008-04-14 07:35:39 +0000
committerpauldubois <pauldubois@c06c8d41-db1a-0410-9941-cceddc491573>2008-04-14 07:35:39 +0000
commit94ceb87517474ac372a41a52a3448104f51435bf (patch)
tree9a39e73ebab7856f7da8ea68aa6e6c1a15ee4713 /crawl-ref/source/itemprop.cc
parentbfeb59ed40adef39b01dcb1fb9a8e6a500eec1b9 (diff)
downloadcrawl-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/itemprop.cc')
-rw-r--r--crawl-ref/source/itemprop.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/crawl-ref/source/itemprop.cc b/crawl-ref/source/itemprop.cc
index d225351ce5..4f99b634f0 100644
--- a/crawl-ref/source/itemprop.cc
+++ b/crawl-ref/source/itemprop.cc
@@ -32,6 +32,7 @@
#include "mon-util.h"
#include "notes.h"
#include "player.h"
+#include "quiver.h"
#include "randart.h"
#include "skills2.h"
#include "stuff.h"
@@ -475,8 +476,6 @@ void do_curse_item( item_def &item )
}
item.flags |= ISFLAG_CURSED;
-
- you.quiver_change = true; // potentially affected
}
void do_uncurse_item( item_def &item )
@@ -531,6 +530,7 @@ bool item_is_critical(const item_def &item)
void set_ident_flags( item_def &item, unsigned long flags )
{
+ preserve_quiver_slots p;
if ((item.flags & flags) != flags)
{
item.flags |= flags;
@@ -551,6 +551,7 @@ void set_ident_flags( item_def &item, unsigned long flags )
void unset_ident_flags( item_def &item, unsigned long flags )
{
+ preserve_quiver_slots p;
item.flags &= (~flags);
}