summaryrefslogtreecommitdiff
path: root/src/store_info_type.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_info_type.hpp
parent1229c2ce5a196b39e0c9602c8fb037b394b18833 (diff)
Unify store_info_type::item_* info std::vector<store_item>
Diffstat (limited to 'src/store_info_type.hpp')
-rw-r--r--src/store_info_type.hpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/store_info_type.hpp b/src/store_info_type.hpp
index a735fdfc..9d0ba55f 100644
--- a/src/store_info_type.hpp
+++ b/src/store_info_type.hpp
@@ -2,11 +2,9 @@
#include "h-basic.h"
#include "store_flag_set.hpp"
+#include "store_item.hpp"
-/**
- * Number of items to choose stock from
- */
-constexpr int STORE_CHOICES = 56;
+#include <vector>
/**
* Store descriptor.
@@ -15,9 +13,7 @@ struct store_info_type
{
const char *name = nullptr; /* Name */
- s16b item_kind[STORE_CHOICES] = { 0 }; /* Table -- Legal item kinds */
- s16b item_chance[STORE_CHOICES] = { 0 };
- byte item_num = 0; /* Number of items */
+ std::vector<store_item> items; /* Table -- Legal item kinds */
s16b max_obj = 0; /* Number of items this store can hold */