adjusted item codes logic to handle multiple items per code

This commit is contained in:
Kamil
2020-12-21 23:01:21 +01:00
committed by Gent S
parent ff75aa6693
commit 5f82658c8d
4 changed files with 41 additions and 28 deletions

View File

@@ -34,7 +34,7 @@ namespace ItemManager {
// pair <Itemset, Rarity> -> vector of pointers (map iterators) to records in ItemData (it looks a lot scarier than it is)
extern std::map<std::pair<int32_t, int32_t>,
std::vector<std::map<std::pair<int32_t, int32_t>, Item>::iterator>> CrateItems;
extern std::map<std::string, std::pair<int32_t, int32_t>> CodeItems; // code -> <id, type>
extern std::map<std::string, std::vector<std::pair<int32_t, int32_t>>> CodeItems; // code -> vector of <id, type>
void init();