testing
This commit is contained in:
@@ -168,9 +168,7 @@ class MoonsController extends Controller
|
||||
//Add the first ore composition to the final composition
|
||||
if($firstOre != 'None') {
|
||||
$firstComp = $moonCalc->GetOreComposition($firstOre);
|
||||
$rUnits = $moonCalc->CalcReprocessingUnits($firstOre, $firstQuantity);
|
||||
|
||||
dd($rUnits);
|
||||
$rUnits = $moonCalc->CalcOreUnits($firstOre, $firstQuantity);
|
||||
|
||||
$composition['Tritanium'] += floor(($firstComp->Tritanium * $rUnits) * $reprocessing);
|
||||
$composition['Pyerite'] += floor(($firstComp->Pyerite * $rUnits) * $reprocessing);
|
||||
|
||||
@@ -537,7 +537,8 @@ class MoonCalc {
|
||||
//Get the m3 size from the item composition
|
||||
$m3Size = $item->m3Size;
|
||||
//Calculate the actual m3 from the total pull amount in m3 using the percentage of the ingredient
|
||||
$actualm3 = floor($percentage / $m3Size);
|
||||
$actualm3 = floor($totalPull * ($percentage / 100));
|
||||
dd($actualm3);
|
||||
//Calculate the units from the m3 pulled from the moon
|
||||
$units = floor($actualm3 / $m3Size);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user