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 ResourceCostPerPotion(decimal herbCostInput, decimal ingredientsCostInput, decimal vialOfWaterCostInput) { IngredientsClass totalIngredientsCost = new IngredientsClass(); totalIngredientsCost.ingredientCost = ingredientsCostInput; totalIngredientsCost.herbCost = herbCostInput; totalIngredientsCost.vialOfWaterCost = vialOfWaterCostInput; return(totalIngredientsCost.vialOfWaterCost + totalIngredientsCost.herbCost + totalIngredientsCost.ingredientCost); }
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); }