summaryrefslogtreecommitdiff
path: root/src/store_item.hpp
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2016-09-17 09:58:13 +0200
committerBardur Arantsson <bardur@scientician.net>2016-09-17 09:58:13 +0200
commit347afc50368137901a989ac4a4fc9298056c7377 (patch)
tree77079e0abd4027427f48ccf4e8d59629b6be3228 /src/store_item.hpp
parent1229c2ce5a196b39e0c9602c8fb037b394b18833 (diff)
Unify store_info_type::item_* info std::vector<store_item>
Diffstat (limited to 'src/store_item.hpp')
-rw-r--r--src/store_item.hpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/store_item.hpp b/src/store_item.hpp
new file mode 100644
index 00000000..62d3f2a9
--- /dev/null
+++ b/src/store_item.hpp
@@ -0,0 +1,18 @@
+#pragma once
+
+#include "h-basic.h"
+
+struct store_item
+{
+ /**
+ * Legal item kinds; if > 10000, designates (TVAL - 10000) and any SVAL.
+ * Otherwise designates an entry in k_info.txt.
+ */
+ s16b kind = 0;
+
+ /**
+ * Percentage chance of generation if the entry is chosen.
+ */
+ s16b chance = 0;
+
+};