6 m_IsInstaRecipe =
false;
7 m_AnimationLength = 1.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] = 0;
22 m_MaxQuantityIngredient[1] = -1;
27 InsertIngredient(0,
"Chainsaw");
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,
"Pot");
37 InsertIngredient(1,
"CanisterGasoline");
38 InsertIngredient(1,
"DisinfectantAlcohol");
39 InsertIngredient(1,
"Canteen");
40 InsertIngredient(1,
"WaterBottle");
41 InsertIngredient(1,
"Vodka");
42 InsertIngredient(1,
"WaterPouch_ColorBase");
43 InsertIngredient(1,
"Barrel_ColorBase");
45 m_IngredientAddHealth[1] = 0;
46 m_IngredientSetHealth[1] = -1;
47 m_IngredientAddQuantity[1] = 0;
48 m_IngredientDestroy[1] =
false;
49 m_IngredientUseSoftSkills[1] =
false;
55 m_ResultSetFullQuantity[0] =
false;
56 m_ResultSetQuantity[0] = -1;
57 m_ResultSetHealth[0] = -1;
58 m_ResultInheritsHealth[0] = -1;
59 m_ResultInheritsColor[0] = -1;
60 m_ResultToInventory[0] = -2;
61 m_ResultUseSoftSkills[0] =
false;
62 m_ResultReplacesIngredient[0] = -1;
68 Class.CastTo(container, ingredients[1]);
69 int liquid_type = container.GetLiquidType();
76 Class.CastTo(chainsaw, ingredients[0]);
78 Class.CastTo(container, ingredients[1]);
80 float current_energy_level = chainsaw.GetCompEM().GetEnergy();
81 float energy_max = chainsaw.GetCompEM().GetEnergyMax();
82 float can_add_amount = energy_max - current_energy_level;
84 if( can_add_amount > 0 ) chainsaw.GetCompEM().AddEnergy(can_add_amount);
85 container.AddQuantity(-can_add_amount);