From 0fe897ee47580b8e575b3adf790d8a57c55d9686 Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Sun, 28 Oct 2018 02:52:56 -0500 Subject: [PATCH] calc prices --- app/Library/MoonCalc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Library/MoonCalc.php b/app/Library/MoonCalc.php index 74dbad6a7..a790b6fa2 100644 --- a/app/Library/MoonCalc.php +++ b/app/Library/MoonCalc.php @@ -267,7 +267,7 @@ class MoonCalc { //Specify the total pull amount $totalPull = 5.55 * (3600.00 * 24.00 * 30.00); //Find the size of the asteroid from the database - $m3Size = DB::table('ItemComposition')->where(['Name' => $ore, 'Time' => $maxTime])->value('m3Size'); + $m3Size = DB::table('ItemComposition')->where('Name', $ore)->value('m3Size'); //Calculate the actual m3 from the total pull amount in m3 using the percentage of the ingredient $actualm3 = floor($percentage * $totalPull); //Calculate the units once we have the size and actual m3 value