working on moon rental worth

This commit is contained in:
2021-07-05 21:51:57 -05:00
parent baf7c2130e
commit 9e5e3720b5

View File

@@ -52,16 +52,16 @@ class MoonCalc {
//Calculate the prices from the ores //Calculate the prices from the ores
if($firstOre != null) { if($firstOre != null) {
$total += $this->CalcMoonPrice($firstOre, $firstPerc); $total += $this->CalcMoonPrice($firstOre, $firstQuan);
} }
if($secondOre != null) { if($secondOre != null) {
$total += $this->CalcMoonPrice($secondOre, $secondPerc); $total += $this->CalcMoonPrice($secondOre, $secondQuan);
} }
if($thirdOre != null) { if($thirdOre != null) {
$total += $this->CalcMoonPrice($thirdOre, $thirdPerc); $total += $this->CalcMoonPrice($thirdOre, $thirdQuan);
} }
if($fourthOre != null) { if($fourthOre != null) {
$total += $this->CalcMoonPrice($fourthOre, $fourthPerc); $total += $this->CalcMoonPrice($fourthOre, $fourthQuan);
} }
//Return the rental price to the caller //Return the rental price to the caller