Item Loadout Usage Tests added. 101/101 unit tests passing. Release Build 9947.

This commit is contained in:
2024-07-09 10:49:12 -05:00
parent 01d61c95f4
commit 9d95796062
5 changed files with 59 additions and 1 deletions
+1
View File
@@ -93,6 +93,7 @@ void ItemInfo::InitializeItems(){
Inventory::loadoutItemsUsed={};
Inventory::sortedInv.clear();
Inventory::blacksmithInventory.clear();
Inventory::_inventory.clear();
ITEM_CONVERSIONS.Reset();
ITEM_DATA.Reset();
+1
View File
@@ -250,6 +250,7 @@ class Inventory{
friend class Item;
friend class SaveFile;
friend class InventoryCreator;
friend class ItemTests::ItemTest;
public:
static std::weak_ptr<Item>AddItem(IT it,uint32_t amt=1,bool monsterDrop=false);
//Returns the actual amount available in your main inventory.
+1
View File
@@ -105,6 +105,7 @@ class Player{
friend class Inventory;
friend void ItemOverlay::Draw();
friend class PlayerTests::PlayerTest;
friend class ItemTests::ItemTest;
public:
Player();
//So this is rather fascinating and only exists because we have the ability to change classes which means we need to initialize a class
+1 -1
View File
@@ -39,7 +39,7 @@ All rights reserved.
#define VERSION_MAJOR 1
#define VERSION_MINOR 2
#define VERSION_PATCH 3
#define VERSION_BUILD 9944
#define VERSION_BUILD 9947
#define stringify(a) stringify_(a)
#define stringify_(a) #a