summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/shopping.h
diff options
context:
space:
mode:
authorNathaniel Rook <nrook@wesleyan.edu>2011-07-03 11:07:25 -0400
committerDavid Ploog <dploog@users.sourceforge.net>2011-07-05 19:32:35 +0200
commit8be54678bfd0933f7af7dfc2fdfd6ac37e370dab (patch)
tree14f8c2667842bdb59d4d15d50690e7614235aafb /crawl-ref/source/shopping.h
parent1f6f62d07378973a0fac46d70bacd221c432ccb6 (diff)
downloadcrawl-ref-8be54678bfd0933f7af7dfc2fdfd6ac37e370dab.tar.gz
crawl-ref-8be54678bfd0933f7af7dfc2fdfd6ac37e370dab.zip
Bad consumables are treated as valueless for sacrificial purposes.
Signed-off-by: David Ploog <dploog@users.sourceforge.net>
Diffstat (limited to 'crawl-ref/source/shopping.h')
-rw-r--r--crawl-ref/source/shopping.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/crawl-ref/source/shopping.h b/crawl-ref/source/shopping.h
index 91a742f38d..f2a32f3c76 100644
--- a/crawl-ref/source/shopping.h
+++ b/crawl-ref/source/shopping.h
@@ -14,6 +14,11 @@ int artefact_value(const item_def &item);
// ident == true overrides the item ident level and gives the price
// as if the item was fully id'd
unsigned int item_value(item_def item, bool ident = false);
+// Return true if an item is classified as a worthless consumable.
+// Note that this does not take into account the player's condition:
+// curse scrolls are worthless for everyone, most potions aren't worthless
+// for mummies, etcetera.
+bool is_worthless_consumable(const item_def &item);
void shop();
shop_struct *get_shop(const coord_def& where);