public void OnConsume(InventoryController playerInventory, AttributeController playerStats, SlotPosition slotPosition) { Debug.Log("Consume " + Name); playerInventory.ConsumeItem(slotPosition); ApplyBuff(playerStats); }
public void OnRemoveFromInventory(InventoryController playerInventory, SlotPosition slotPosition) { Debug.Log("RemoveFromInventory " + Name); playerInventory.RemoveItem(slotPosition); }
public void OnStack(InventoryController playerInventory, SlotPosition?slotPosition = null) { Debug.Log("Stack " + Name); playerInventory.StackItem(Copy(), slotPosition); }
public void OnPutInInventory(InventoryController playerInventory, SlotPosition?slotPosition = null) { Debug.Log("PutInInventory " + Name); playerInventory.AddItem(Copy(), slotPosition); }
public void OnSplit(InventoryController playerInventory, SlotPosition slotPosition, int splitCount) { Debug.Log("Split " + Name); playerInventory.SplitItem(slotPosition, splitCount); }