public int GetCPCost(CraftingSim sim) { int cpCost = CPCost; if (sim.GetStepSettings().RecipeCondition == RecipeCondition.Pliant) { cpCost = (int)Math.Ceiling(cpCost / 2d); } return(cpCost); }
public int GetDurabilityCost(CraftingSim sim) { if (DurabilityCost <= 0) { return(DurabilityCost); } int durabilityCost = DurabilityCost; if (sim.GetStepSettings().RecipeCondition == RecipeCondition.Sturdy) { durabilityCost /= 2; } if (sim.WasteNotBuff != null) { durabilityCost = (int)Math.Ceiling(durabilityCost / 2d); } return(durabilityCost); }