moon stuff

This commit is contained in:
2020-09-13 23:59:59 -05:00
parent f665050d66
commit 7c72944d7d
2 changed files with 1 additions and 6 deletions

View File

@@ -62,9 +62,6 @@ class Kernel extends ConsoleKernel
$schedule->command('services:HoldingJournal') $schedule->command('services:HoldingJournal')
->hourlyAt('45') ->hourlyAt('45')
->withoutOverlapping(); ->withoutOverlapping();
//$schedule->command('services:GetFinances')
// ->hourlyAt('35')
// ->withoutOverlapping();
/** /**
* Get Information Schedule * Get Information Schedule

View File

@@ -342,8 +342,6 @@ class MoonCalc {
//Check to see what type of moon goo the moon is //Check to see what type of moon goo the moon is
$gasMoonOre = $this->IsGasMoonGoo($ore); $gasMoonOre = $this->IsGasMoonGoo($ore);
//Find the size of the asteroid from the database //Find the size of the asteroid from the database
$m3Size = DB::table('ItemComposition')->where('Name', $ore)->value('m3Size'); $m3Size = DB::table('ItemComposition')->where('Name', $ore)->value('m3Size');
@@ -358,7 +356,7 @@ class MoonCalc {
//If the ore is a gas ore, then take only 50% of the price. //If the ore is a gas ore, then take only 50% of the price.
if($gasMoonOre == true) { if($gasMoonOre == true) {
$totalPrice = $units * $unitPrice * 0.50; $totalPrice = $units * ($unitPrice / 2.00);
Log::warning('Found gas ore: ' . $totalPrice); Log::warning('Found gas ore: ' . $totalPrice);
} else { } else {
$totalPrice = $units * $unitPrice; $totalPrice = $units * $unitPrice;