6 m_IsInstaRecipe =
false;
11 m_MinDamageIngredient[0] = -1;
12 m_MaxDamageIngredient[0] = 3;
14 m_MinQuantityIngredient[0] = -1;
15 m_MaxQuantityIngredient[0] = -1;
17 m_MinDamageIngredient[1] = -1;
18 m_MaxDamageIngredient[1] = 3;
20 m_MinQuantityIngredient[1] = -1;
21 m_MaxQuantityIngredient[1] = -1;
26 InsertIngredient(0,
"WoodenCrate");
28 m_IngredientAddHealth[0] = 0;
29 m_IngredientSetHealth[0] = -1;
30 m_IngredientAddQuantity[0] = 0;
31 m_IngredientDestroy[0] =
true;
32 m_IngredientUseSoftSkills[0] =
false;
35 InsertIngredient(1,
"Crowbar");
36 InsertIngredient(1,
"WoodAxe");
37 InsertIngredient(1,
"Hatchet");
38 InsertIngredient(1,
"FirefighterAxe");
40 m_IngredientAddHealth[1] = -20;
41 m_IngredientSetHealth[1] = -1;
42 m_IngredientAddQuantity[1] = 0;
43 m_IngredientDestroy[1] =
false;
44 m_IngredientUseSoftSkills[1] =
true;
49 AddResult(
"WoodenPlank");
51 m_ResultSetFullQuantity[0] =
false;
52 m_ResultSetQuantity[0] = 2;
53 m_ResultSetHealth[0] = -1;
54 m_ResultInheritsHealth[0] = 1;
55 m_ResultInheritsColor[0] = -1;
56 m_ResultToInventory[0] = -2;
57 m_ResultUseSoftSkills[0] =
false;
58 m_ResultReplacesIngredient[0] = -1;
63 m_ResultSetFullQuantity[1] =
false;
64 m_ResultSetQuantity[1] = 6;
65 m_ResultSetHealth[1] = -1;
66 m_ResultInheritsHealth[1] = 1;
67 m_ResultInheritsColor[1] = -1;
68 m_ResultToInventory[1] = -2;
69 m_ResultUseSoftSkills[1] =
false;
70 m_ResultReplacesIngredient[1] = -1;
77 Class.CastTo(crate, ingredients[0]);
79 if ( crate.GetInventory().CountInventory() > 1 )
88 Class.CastTo(crate, ingredients[0]);
89 int hp = crate.GetHealthLevel(
"");
94 results[0].SetQuantity(
Math.RandomIntInclusive( 6, 8 ));
95 results[0].SetHealth( results[0].GetMaxHealth() *
Math.RandomFloat( 0.6, 0.8 ));
96 results[1].SetQuantity(
Math.RandomIntInclusive( 12, 16 ));
97 results[1].SetHealth( results[1].GetMaxHealth() *
Math.RandomFloat( 0.6, 0.8 ));
101 results[0].SetQuantity(
Math.RandomIntInclusive( 5, 7 ));
102 results[0].SetHealth( results[0].GetMaxHealth() *
Math.RandomFloat( 0.5, 0.8 ));
103 results[1].SetQuantity(
Math.RandomIntInclusive( 9, 13 ));
104 results[1].SetHealth( results[1].GetMaxHealth() *
Math.RandomFloat( 0.5, 0.8 ));
108 results[0].SetQuantity(
Math.RandomIntInclusive( 4, 6 ));
109 results[0].SetHealth( results[0].GetMaxHealth() *
Math.RandomFloat( 0.3, 0.6 ));
110 results[1].SetQuantity(
Math.RandomIntInclusive( 6, 10 ));
111 results[1].SetHealth( results[1].GetMaxHealth() *
Math.RandomFloat( 0.3, 0.6 ));
115 results[0].SetQuantity(
Math.RandomIntInclusive( 3, 5 ));
116 results[0].SetHealth( results[0].GetMaxHealth() *
Math.RandomFloat( 0.1, 0.3 ));
117 results[1].SetQuantity(
Math.RandomIntInclusive( 3, 7 ));
118 results[1].SetHealth( results[1].GetMaxHealth() *
Math.RandomFloat( 0.1, 0.3 ));
123 results[0].SetQuantity(
Math.RandomIntInclusive( 1, 2 ));
124 results[0].SetHealth( results[0].GetMaxHealth() *
Math.RandomFloat( 0.05, 0.2 ));
125 results[1].SetQuantity(
Math.RandomIntInclusive( 1, 4 ));
126 results[1].SetHealth( results[1].GetMaxHealth() *
Math.RandomFloat( 0.05, 0.2 ));
130 results[0].SetQuantity(
Math.RandomIntInclusive( 1, 2 ));
131 results[0].SetHealth( results[0].GetMaxHealth() *
Math.RandomFloat( 0.05, 0.2 ));
132 results[1].SetQuantity(
Math.RandomIntInclusive( 1, 4 ));
133 results[1].SetHealth( results[1].GetMaxHealth() *
Math.RandomFloat( 0.05, 0.2 ));
151 Debug.Log(
"Recipe Do method called",
"recipes");