示例#1
0
 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);
        }
示例#3
0
 protected virtual void UnequipCurrentItem()
 {
     if (item.name == "Unarmed")
     {
         return;
     }
     connectedInventory.AddItem(item);
     if (item.rarity == Rank.Legendary)
     {
         (item as ModifiableItem).GetLegendaryModifier().legendaryUninstallEffect.Invoke();
     }
 }