testing
This commit is contained in:
@@ -167,11 +167,10 @@ class MoonsController extends Controller
|
|||||||
//Get the composition for the first ore if it is not None.
|
//Get the composition for the first ore if it is not None.
|
||||||
//Add the first ore composition to the final composition
|
//Add the first ore composition to the final composition
|
||||||
if($firstOre != 'None') {
|
if($firstOre != 'None') {
|
||||||
dd($firstOre);
|
|
||||||
|
|
||||||
$firstComp = $moonCalc->GetOreComposition($firstOre);
|
$firstComp = $moonCalc->GetOreComposition($firstOre);
|
||||||
$rUnits = $moonCalc->CalcReprocessingUnits($firstOre, $firstQuantity);
|
$rUnits = $moonCalc->CalcReprocessingUnits($firstOre, $firstQuantity);
|
||||||
|
|
||||||
|
dd($firstComp);
|
||||||
|
|
||||||
foreach($firstComp as $key => $value) {
|
foreach($firstComp as $key => $value) {
|
||||||
$composition[$key] += floor(($firstComp[$key] * $rUnits) * $reprocessing);
|
$composition[$key] += floor(($firstComp[$key] * $rUnits) * $reprocessing);
|
||||||
|
|||||||
Reference in New Issue
Block a user