summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/shopping.h
diff options
context:
space:
mode:
authorNeil Moore <neil@s-z.org>2012-07-08 13:39:03 -0400
committerNeil Moore <neil@s-z.org>2012-07-08 13:39:03 -0400
commit23fe4b95ce781d8326635f6d32c9c4861ebc9349 (patch)
tree7abe1f9e65184a2f8a0e0f83ddf507bcaf1435b8 /crawl-ref/source/shopping.h
parent748d2e9721ae56c7170e4432180659628eb0fb2e (diff)
downloadcrawl-ref-23fe4b95ce781d8326635f6d32c9c4861ebc9349.tar.gz
crawl-ref-23fe4b95ce781d8326635f6d32c9c4861ebc9349.zip
Allow shopping in disconnected levels.
Items are removed from the shopping list when the level they are on is deleted.
Diffstat (limited to 'crawl-ref/source/shopping.h')
-rw-r--r--crawl-ref/source/shopping.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/crawl-ref/source/shopping.h b/crawl-ref/source/shopping.h
index 22d9b66dfd..a40eb5c8c0 100644
--- a/crawl-ref/source/shopping.h
+++ b/crawl-ref/source/shopping.h
@@ -53,6 +53,8 @@ public:
bool del_thing(const item_def &item, const level_pos* pos = NULL);
bool del_thing(std::string desc, const level_pos* pos = NULL);
+ void del_things_from(const level_id &lid);
+
unsigned int cull_identical_items(const item_def& item, int cost = -1);
void gold_changed(int old_amount, int new_amount);