From 9e5e3720b5957e57ddca547c53d53bfbcc288a5d Mon Sep 17 00:00:00 2001 From: Christopher Mancuso Date: Mon, 5 Jul 2021 21:51:57 -0500 Subject: [PATCH] working on moon rental worth --- app/Library/Moons/MoonCalc.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/Library/Moons/MoonCalc.php b/app/Library/Moons/MoonCalc.php index 12a928aab..92bac0f6e 100644 --- a/app/Library/Moons/MoonCalc.php +++ b/app/Library/Moons/MoonCalc.php @@ -52,16 +52,16 @@ class MoonCalc { //Calculate the prices from the ores if($firstOre != null) { - $total += $this->CalcMoonPrice($firstOre, $firstPerc); + $total += $this->CalcMoonPrice($firstOre, $firstQuan); } if($secondOre != null) { - $total += $this->CalcMoonPrice($secondOre, $secondPerc); + $total += $this->CalcMoonPrice($secondOre, $secondQuan); } if($thirdOre != null) { - $total += $this->CalcMoonPrice($thirdOre, $thirdPerc); + $total += $this->CalcMoonPrice($thirdOre, $thirdQuan); } if($fourthOre != null) { - $total += $this->CalcMoonPrice($fourthOre, $fourthPerc); + $total += $this->CalcMoonPrice($fourthOre, $fourthQuan); } //Return the rental price to the caller