public float GetPrice(Good good) { float supplyMultiplier = GetSupplyMultipler(goodsToSupply[good.type]); float heatMultiplier = good.GetHeatMultiplier(); return((supplyMultiplier + heatMultiplier) * good.GetBasePrice()); }