18 float MaxQuantity = item_ingredient.GetQuantityMax();
19 float CurrentQuantity = item_ingredient.GetQuantity();
20 float qtPercentage = CurrentQuantity / MaxQuantity;
24 float seedMultiplier =
Math.RandomFloat(0.5, 1);
27 if(qtPercentage < 0.3)
30 seedMultiplier *= qtPercentage;
42 seedMultiplier *= 0.5;
51 float maxQuantity = result.GetQuantityMax();
52 float resultQty = m_ResultSetQuantity[0]/ maxQuantity;
53 resultQty *= seedMultiplier * maxQuantity;
55 resultQty =
Math.Ceil(resultQty);
57 result.SetQuantity(resultQty);
59 Debug.Log(
"Recipe Do method called",
"recipes");