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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user