This commit is contained in:
2019-11-06 23:41:13 -06:00
parent b18b68d124
commit 66e52c52bd
2 changed files with 3 additions and 4 deletions
+2 -1
View File
@@ -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);