summaryrefslogtreecommitdiffstats
path: root/stone_soup/crawl-ref/source/shopping.h
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2006-09-18 15:08:25 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2006-09-18 15:08:25 +0000
commita4d4f3ecccb29c3f5fc1ce55579119106c399911 (patch)
tree5677ea04b4dfdadd961c01ba3baf7502f8d6e0d0 /stone_soup/crawl-ref/source/shopping.h
parent571501e1135989d3b9dc44e3d332562a7cf78b35 (diff)
downloadcrawl-ref-a4d4f3ecccb29c3f5fc1ce55579119106c399911.tar.gz
crawl-ref-a4d4f3ecccb29c3f5fc1ce55579119106c399911.zip
Updated stone_soup-0.1b1 tag to include fix for Poison Arrow of Doom.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/tags/stone_soup-0.1b1@49 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'stone_soup/crawl-ref/source/shopping.h')
-rw-r--r--stone_soup/crawl-ref/source/shopping.h49
1 files changed, 49 insertions, 0 deletions
diff --git a/stone_soup/crawl-ref/source/shopping.h b/stone_soup/crawl-ref/source/shopping.h
new file mode 100644
index 0000000000..8891f16eb9
--- /dev/null
+++ b/stone_soup/crawl-ref/source/shopping.h
@@ -0,0 +1,49 @@
+/*
+ * File: shopping.cc
+ * Summary: Shop keeper functions.
+ * Written by: Linley Henzell
+ *
+ * Change History (most recent first):
+ *
+ * <1> -/--/-- LRH Created
+ */
+
+
+#ifndef SHOPPING_H
+#define SHOPPING_H
+
+#include "externs.h"
+
+typedef FixedArray < int, 4, 50 > id_fix_arr;
+typedef char id_arr[4][50];
+
+void shop_init_id_type(int shoptype, id_fix_arr &shop_id);
+void shop_uninit_id_type(int shoptype, const id_fix_arr &shop_id);
+
+int randart_value( const item_def &item );
+
+// last updated 12may2000 {dlb}
+/* ***********************************************************************
+ * called from: chardump - invent - ouch - religion - shopping
+ * *********************************************************************** */
+
+// 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, id_arr id, bool ident = false );
+
+
+// last updated 12may2000 {dlb}
+/* ***********************************************************************
+ * called from: misc
+ * *********************************************************************** */
+void shop(void);
+
+const shop_struct *get_shop(int sx, int sy);
+
+// last updated 06mar2001 {gdl}
+/* ***********************************************************************
+ * called from: items direct
+ * *********************************************************************** */
+const char *shop_name(int sx, int sy);
+
+#endif