void IncrementPickUpQuantityBy(int increQuantity) { IItemIcon pickedII = thisIITAM.GetPickedII(); pickedII.IncreaseBy(increQuantity, doesIncrement: true); thisItemIcon.DecreaseBy(increQuantity, doesIncrement: true, removesEmpty: false); int newPickedUpQuantity = pickedII.GetItemQuantity(); thisItemIcon.UpdateTransferableQuantity(newPickedUpQuantity); }
public void RemoveItem(IUIItem item, bool doesIncrement, bool removesEmpty) { if (item != null) { IItemIcon thisII = GetItemIconFromItem(item); if (thisII != null) { thisII.DecreaseBy(thisII.GetItemQuantity(), doesIncrement, removesEmpty); } } }
IItemIcon CreateLeftoverII(int pickedQuantity) { IItemIcon leftoverII = thisPickUpSystemUIElementFactory.CreateItemIcon(thisItem); IUIImage leftoverIIImage = leftoverII.GetUIImage(); leftoverII.SetParentUIE(thisItemIcon.GetParentUIE(), true); leftoverIIImage.CopyPosition(thisImage); thisIG.ReplaceAndUpdateII(thisItemIcon.GetSlotID(), leftoverII); leftoverII.DisemptifyInstantly(thisItem); leftoverII.DecreaseBy(pickedQuantity, doesIncrement: true, removesEmpty: false); return(leftoverII); }