/// <summary> /// new value. Cost in that particular market. Cheapest if there are several products /// </summary> public MoneyView getCost(Product product) { if (product == Product.Gold) { //var res = need.Copy().Multiply(Options.goldToCoinsConvert); //res.Multiply(Options.GovernmentTakesShareOfGoldOutput); //return res; return(new MoneyView(1));// cost of 1 gold } else { return(new MoneyView((decimal)prices.getCheapestStorage(product, this).get())); } }
/// <summary> /// new value /// </summary> internal MoneyView getCost(Product whom) { return(new MoneyView((decimal)marketPrice.getCheapestStorage(whom).get())); }
internal Value getPrice(Product whom) { return(marketPrice.getCheapestStorage(whom)); }