moon stuff
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user