public void AddItem(Item item) { list.AddItem(item); playerInventory.GetConnectedInventory(item.itemType).DeleteItem(item); RecycleValue += item.GetSellValue(); UpdateValueDisplay(); }
public void AddItem(Item item) { if (item == null) { return; } SimpleInventory inventory = equipmentDictionary[item.itemType].connectedInventory; inventory.AddItem(item); }
protected virtual void UnequipCurrentItem() { if (item.name == "Unarmed") { return; } connectedInventory.AddItem(item); if (item.rarity == Rank.Legendary) { (item as ModifiableItem).GetLegendaryModifier().legendaryUninstallEffect.Invoke(); } }