summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/stash.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-04-13 08:04:42 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-04-13 08:04:42 +0000
commitcab797009b47f77520b8db9f8b427ba9ea14f63c (patch)
tree3257807bf2686cfb1a5f2f9d9f66040eb2df6ef4 /crawl-ref/source/stash.cc
parent659553d325a49df4870dcfa18af7f9bece5cbf16 (diff)
downloadcrawl-ref-cab797009b47f77520b8db9f8b427ba9ea14f63c.tar.gz
crawl-ref-cab797009b47f77520b8db9f8b427ba9ea14f63c.zip
* Allow panlords to have the chaos-branded weapons.
* update stash tracker after Xom's teleportation journey. * A few tweaks to Xom debug noting. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9599 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/stash.cc')
-rw-r--r--crawl-ref/source/stash.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/crawl-ref/source/stash.cc b/crawl-ref/source/stash.cc
index 0b1002c5e3..691f387289 100644
--- a/crawl-ref/source/stash.cc
+++ b/crawl-ref/source/stash.cc
@@ -102,6 +102,16 @@ std::string stash_annotate_item(const char *s,
return text;
}
+void maybe_update_stashes()
+{
+ if (Options.stash_tracking && !crawl_state.arena)
+ {
+ StashTrack.update_visible_stashes(
+ Options.stash_tracking == STM_ALL ? StashTracker::ST_AGGRESSIVE
+ : StashTracker::ST_PASSIVE);
+ }
+}
+
bool is_stash(int x, int y)
{
LevelStashes *ls = StashTrack.find_current_level();