6 m_IsInstaRecipe =
false;
7 m_AnimationLength = 0.5;
12 m_MinDamageIngredient[0] = -1;
13 m_MaxDamageIngredient[0] = 3;
15 m_MinQuantityIngredient[0] = 1;
16 m_MaxQuantityIngredient[0] = -1;
18 m_MinDamageIngredient[1] = -1;
19 m_MaxDamageIngredient[1] = 3;
21 m_MinQuantityIngredient[1] = -1;
22 m_MaxQuantityIngredient[1] = -1;
27 InsertIngredient(0,
"CharcoalTablets");
29 m_IngredientAddHealth[0] = 0;
30 m_IngredientSetHealth[0] = -1;
31 m_IngredientAddQuantity[0] = 0;
32 m_IngredientDestroy[0] =
false;
33 m_IngredientUseSoftSkills[0] =
false;
36 InsertIngredient(1,
"GasMask_Filter");
37 InsertIngredient(1,
"GasMask_Filter_Improvised");
39 m_IngredientAddHealth[1] = 0;
40 m_IngredientSetHealth[1] = -1;
41 m_IngredientAddQuantity[1] = 0;
42 m_IngredientDestroy[1] =
false;
43 m_IngredientUseSoftSkills[1] =
false;
65 if(filter.GetQuantity() >= filter.GetQuantityMax())
72 filter.GetInventory().GetCurrentInventoryLocation(il);
77 if (inv.GetType() ==
"GP5GasMask" || inv.GetType() ==
"AirborneMask")
90 float charcoalCurrent = charcoal.GetQuantity();
95 float filterMax = filter.GetQuantityMax();
96 float filterCurrent = filter.GetQuantity();
99 float fillAmount = filterCurrent + (charcoalCurrent * 10);
102 if(fillAmount >= filterMax)
104 ingredients[1].SetQuantity(filterMax);
107 fillAmount = fillAmount - filterMax;
108 ingredients[0].SetQuantity(
Math.Round(fillAmount / 10));
112 ingredients[1].SetQuantity( fillAmount);
113 ingredients[0].AddQuantity( - charcoalCurrent);