From e7455025422b45020aedc471f2ceda05088d2521 Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Sun, 13 Sep 2020 21:48:46 -0500 Subject: [PATCH] update moon rental pricing --- app/Jobs/Commands/RentalMoons/UpdateMoonRentalPrice.php | 5 +++++ app/Library/Moons/MoonCalc.php | 5 ++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/app/Jobs/Commands/RentalMoons/UpdateMoonRentalPrice.php b/app/Jobs/Commands/RentalMoons/UpdateMoonRentalPrice.php index 23487238a..248ed8913 100644 --- a/app/Jobs/Commands/RentalMoons/UpdateMoonRentalPrice.php +++ b/app/Jobs/Commands/RentalMoons/UpdateMoonRentalPrice.php @@ -94,6 +94,11 @@ class UpdateMoonRentalPrice implements ShouldQueue 'alliance_rental_price' => $rentalPrice['alliance'], 'out_of_alliance_rental_price' => $rentalPrice['outofalliance'], ]); + + Log::info('Alliance Rental Moon: ' . $rental->region . ' : ' . $rental->system . ' : ' . $rental->planet . ' : ' . $rental->moon . ' : ' . $rental->structure_name); + Log::info('Total Worth: ' . $totalWorth); + Log::info('Alliance Rental Price: ' . $rentalPrice['alliance']); + Log::info('Out of Alliance Rental Price: ' . $rentalPrice['outofalliance']); } } } diff --git a/app/Library/Moons/MoonCalc.php b/app/Library/Moons/MoonCalc.php index 2fe2e93d0..2729c4592 100644 --- a/app/Library/Moons/MoonCalc.php +++ b/app/Library/Moons/MoonCalc.php @@ -341,13 +341,12 @@ class MoonCalc { //A 50% discount is given to Gas ores as they aren't worth much currently in the market. if($calculatePrice == 'Gas') { $total = ($units * $unitPrice) / 2.00; + Log::info('Moon Ore: ' . $ore); Log::info('Calculate price found a Gas. It was named ' . $ore . '.'); Log::info('Price was: ' . number_format(($units * $unitPrice), "2", ".", ",")); - Log::info('New price is: ' . number_format((($units * $unitPrice) / 2.00), "2", ".", ",")); - Log::info('Total Price is ' . number_format($total, "2", ".", ",")); + Log::info('New price is: ' . number_format($total, "2", ".", ",")); } else { $total = $units * $unitPrice; - Log::info('Current Total Price: ' . number_format($total, "2", ".", ",")); } }