static public decimal TotalThreeDosePotsMade(decimal unfPotsToProcessInput, bool portableWellCheck, bool wastelessHerbloreCheck) { PotionClass threeDosePotions = new PotionClass(); IngredientsClass secondaryIngredient = new IngredientsClass(); secondaryIngredient.unfPotionStock = unfPotsToProcessInput; if (portableWellCheck == true && wastelessHerbloreCheck == true) { decimal x = 1.15m; threeDosePotions.totalPotsMade = unfPotsToProcessInput * x; return(threeDosePotions.totalPotsMade); } else if (portableWellCheck == true && wastelessHerbloreCheck == false) { decimal x = 1.05m; threeDosePotions.totalPotsMade = unfPotsToProcessInput * x; return(threeDosePotions.totalPotsMade); } else if (portableWellCheck == false && wastelessHerbloreCheck == true) { decimal x = 1.10m; threeDosePotions.totalPotsMade = unfPotsToProcessInput * x; return(threeDosePotions.totalPotsMade); } else { threeDosePotions.totalPotsMade = unfPotsToProcessInput; return(threeDosePotions.totalPotsMade); } }
static public decimal TotalUnfPotsMade(decimal herbsUsedInput, bool portableWellCheck, bool wastelessHerbloreCheck) { PotionClass unfPotionsMade = new PotionClass(); IngredientsClass herbCount = new IngredientsClass(); herbCount.herbStock = herbsUsedInput; if (portableWellCheck == true && wastelessHerbloreCheck == true) { decimal x = 1.15m; unfPotionsMade.totalPotsMade = herbCount.herbStock * x; return(unfPotionsMade.totalPotsMade); } else if (portableWellCheck == true && wastelessHerbloreCheck == false) { decimal x = 1.05m; unfPotionsMade.totalPotsMade = herbCount.herbStock * x; return(unfPotionsMade.totalPotsMade); } else if (portableWellCheck == false && wastelessHerbloreCheck == true) { decimal x = 1.10m; unfPotionsMade.totalPotsMade = herbCount.herbStock * x; return(unfPotionsMade.totalPotsMade); } else { unfPotionsMade.totalPotsMade = herbCount.herbStock; return(unfPotionsMade.totalPotsMade); } }
static public decimal FinishedOneDoseCalc(decimal costPer3DoseOutput) //takes the info from PotionCalculator form and works out the cost of 1 dose of a potion. { PotionClass oneDosePotionCost = new PotionClass(); oneDosePotionCost.potion1Cost = costPer3DoseOutput / 3; return(oneDosePotionCost.potion1Cost); }
static public decimal ProfitLossSellingFourDose(decimal resourceCostOutput, decimal sellingAllFourDoseOutput) { PotionClass profitLossFourDose = new PotionClass(); profitLossFourDose.totalPotionCost = resourceCostOutput; profitLossFourDose.total4DoseValue = sellingAllFourDoseOutput; return(profitLossFourDose.gross = profitLossFourDose.total4DoseValue - profitLossFourDose.totalPotionCost); }
static public decimal ValueSellingAllFourDose(decimal fourDoseValueInput, decimal totalFourDoseMadeOutput) { PotionClass fourDoseValue = new PotionClass(); fourDoseValue.gePotion4Cost = fourDoseValueInput; fourDoseValue.totalPotsMade = totalFourDoseMadeOutput; return(fourDoseValue.total4DoseValue = fourDoseValue.gePotion4Cost * fourDoseValue.totalPotsMade); }
static public decimal ValueSellingAllThreeDose(decimal threeDoseValueInput, decimal totalThreeDoseMadeOutput) { PotionClass threeDoseValue = new PotionClass(); threeDoseValue.gePotion3Cost = threeDoseValueInput; threeDoseValue.totalPotsMade = totalThreeDoseMadeOutput; return(threeDoseValue.total3DoseValue = threeDoseValue.gePotion3Cost * threeDoseValue.totalPotsMade); }
static public decimal FinishedThreeDoseCalc(decimal ingredientsCostInput, decimal costPerUnfOutput) //takes the info from PotionCalculator form to work out the cost of 1 potion. { IngredientsClass extraIngredientObject = new IngredientsClass(); PotionClass unfPotionObject = new PotionClass(); extraIngredientObject.ingredientCost = ingredientsCostInput; unfPotionObject.unfPotionCost = costPerUnfOutput; return(unfPotionObject.potion3Cost = ingredientsCostInput + costPerUnfOutput); }
static public decimal TotalResourceCost(decimal herbCostInput, decimal vialOfWaterCostInput, decimal ingredientsCostInput, decimal herbsUsedInput) { IngredientsClass ingredientsCost = new IngredientsClass(); PotionClass potionCost = new PotionClass(); ingredientsCost.herbCost = herbsUsedInput * herbCostInput; ingredientsCost.vialOfWaterCost = herbsUsedInput * vialOfWaterCostInput; ingredientsCost.ingredientCost = herbsUsedInput * ingredientsCostInput; return(ingredientsCost.ingredientCost + ingredientsCost.vialOfWaterCost + ingredientsCost.herbCost); }
static public decimal UnfinishedPotionCost(decimal herbCostInput, decimal vialOfWaterCostInput) //takes the information from the PotionCalculator form and work out the cost of 1 unfinished potion. { PotionClass unfinishedPotion = new PotionClass(); IngredientsClass unfinishedPotionHerb = new IngredientsClass(); unfinishedPotionHerb.herbCost = herbCostInput; unfinishedPotionHerb.vialOfWaterCost = vialOfWaterCostInput; return(unfinishedPotion.unfPotionCost = unfinishedPotionHerb.herbCost + unfinishedPotionHerb.vialOfWaterCost); }
static public decimal TotalFourDosePotionYield(decimal totalThreeDoseMadeOutput) { PotionClass fourDosePotions = new PotionClass(); return(fourDosePotions.totalPotsMade = (totalThreeDoseMadeOutput * 3) / 4); }