Make gear appear unstackable in inventories while other items remain stackable. Each individual piece of gear can now have its own stats.

This commit is contained in:
2023-12-29 06:25:54 -06:00
parent f987e51324
commit c528d89b85
17 changed files with 163 additions and 75 deletions
+2 -2
View File
@@ -57,8 +57,8 @@ void Menu::InitializeBlacksmithCraftingWindow(){
std::vector<std::weak_ptr<Item>>armorInventory;
#pragma region Build Equipment Lists
std::for_each(Inventory::get("Equipment").begin(),Inventory::get("Equipment").end(),[&](const std::shared_ptr<Item> item){
switch(item.get()->GetEquipSlot()){
std::for_each(Inventory::get("Equipment").begin(),Inventory::get("Equipment").end(),[&](const std::weak_ptr<Item> item){
switch(item.lock()->GetEquipSlot()){
case EquipSlot::WEAPON:{
weaponInventory.push_back(item);
}break;