6 m_IsInstaRecipe =
false;
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,
"Rag");
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,
"Canteen");
39 InsertIngredient(1,
"WaterBottle");
40 InsertIngredient(1,
"Vodka");
41 InsertIngredient(1,
"WaterPouch_ColorBase");
42 InsertIngredient(1,
"Barrel_ColorBase");
44 m_IngredientAddHealth[1] = 0;
45 m_IngredientSetHealth[1] = -1;
46 m_IngredientAddQuantity[1] = 0;
47 m_IngredientDestroy[1] =
false;
48 m_IngredientUseSoftSkills[1] =
false;
54 m_ResultSetFullQuantity[0] =
false;
55 m_ResultSetQuantity[0] = -1;
56 m_ResultSetHealth[0] = -1;
57 m_ResultInheritsHealth[0] = -1;
58 m_ResultInheritsColor[0] = -1;
59 m_ResultToInventory[0] = -2;
60 m_ResultUseSoftSkills[0] =
false;
61 m_ResultReplacesIngredient[0] = -1;
67 Class.CastTo(rags, ingredients[0]);
69 Class.CastTo(container, ingredients[1]);
71 if ( container.GetLiquidType() ==
LIQUID_WATER && container.GetQuantity() > 0 && rags.GetHealthLevel() > 1)
89 Class.CastTo(rags, ingredients[0]);
91 Class.CastTo(container, ingredients[1]);
93 float rags_health = rags.GetHealth(
"",
"");
94 int rags_quantity = rags.GetQuantity();
96 float rags_combined_damage = (100 - rags_health) * rags_quantity;
98 int liquid_quantity = container.GetQuantity();
99 int liquid_required = rags_combined_damage * 2;
101 float used_ratio = 0;
104 if( liquid_quantity > liquid_required )
106 container.AddQuantity(-liquid_required);
107 heal = rags_combined_damage / rags_quantity;
111 container.SetQuantity(0);
112 used_ratio = liquid_quantity / liquid_required;
113 heal = (rags_combined_damage / rags_quantity) * used_ratio;
116 heal =
Math.Clamp(heal, 0, (70 - rags_health));
117 rags.AddHealth(
"",
"",heal);