Exemple #1
0
 public override void FromItem(InventoryItemBase item)
 {
     UnityEngine.Debug.Log("From extended...");
     base.FromItem(item);
 }
        public override bool CanAddItem(InventoryItemBase item)
        {
            return(true); // TODO: Add limit to vendor collection - OR Add currency, see if vendor can purchase items.
//            return base.CanAddItem(item);
        }
 public override bool OverrideUseMethod(InventoryItemBase item)
 {
     currentVendor.BuyItemFromVendor(item, false);
     return(true);
 }
Exemple #4
0
 private void OnUsedItem(InventoryItemBase item, uint itemid, uint slot, uint amount)
 {
     toArr[slot] = fromCollection[slot].item;
 }
Exemple #5
0
 private void OnRemovedReference(InventoryItemBase item, uint slot)
 {
     toArr[slot] = fromCollection[slot].item;
 }
 public InventoryItemGeneratorItem(InventoryItemBase item, float chanceFactor)
 {
     this.item         = item;
     this.chanceFactor = chanceFactor;
 }
Exemple #7
0
        public override bool OverrideUseMethod(InventoryItemBase item)
        {
//            InventoryManager.AddItemAndRemove(item);
            return(true);
        }
 private void ColOnOnRemovedItem(InventoryItemBase item, uint itemID, uint slot, uint amount)
 {
     RepaintOfID(itemID);
 }