update moon rental pricing

This commit is contained in:
2020-09-13 21:48:46 -05:00
parent 55acc5e487
commit e745502542
2 changed files with 7 additions and 3 deletions

View File

@@ -94,6 +94,11 @@ class UpdateMoonRentalPrice implements ShouldQueue
'alliance_rental_price' => $rentalPrice['alliance'], 'alliance_rental_price' => $rentalPrice['alliance'],
'out_of_alliance_rental_price' => $rentalPrice['outofalliance'], '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']);
} }
} }
} }

View File

@@ -341,13 +341,12 @@ class MoonCalc {
//A 50% discount is given to Gas ores as they aren't worth much currently in the market. //A 50% discount is given to Gas ores as they aren't worth much currently in the market.
if($calculatePrice == 'Gas') { if($calculatePrice == 'Gas') {
$total = ($units * $unitPrice) / 2.00; $total = ($units * $unitPrice) / 2.00;
Log::info('Moon Ore: ' . $ore);
Log::info('Calculate price found a Gas. It was named ' . $ore . '.'); Log::info('Calculate price found a Gas. It was named ' . $ore . '.');
Log::info('Price was: ' . number_format(($units * $unitPrice), "2", ".", ",")); Log::info('Price was: ' . number_format(($units * $unitPrice), "2", ".", ","));
Log::info('New price is: ' . number_format((($units * $unitPrice) / 2.00), "2", ".", ",")); Log::info('New price is: ' . number_format($total, "2", ".", ","));
Log::info('Total Price is ' . number_format($total, "2", ".", ","));
} else { } else {
$total = $units * $unitPrice; $total = $units * $unitPrice;
Log::info('Current Total Price: ' . number_format($total, "2", ".", ","));
} }
} }