static void ApplyFixedItem(Item fixedItem, Inventory newTemplateInv, InventoryTemplate newInv, int i) { if (fixedItem.Amount > 0) { if (newInv.AmountNegativeOrPositive[i]) { newTemplateInv.AddItem(fixedItem); } else { newTemplateInv.ReduceAmountOfItems(fixedItem); } } }