1 class CraftTruck01DoubleWheel
extends RecipeBase
5 m_Name =
"#STR_CraftTruck01DoubleWheel0";
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,
"Truck_01_Wheel");
29 m_IngredientAddHealth[0] = -1;
30 m_IngredientSetHealth[0] = -1;
31 m_IngredientAddQuantity[0] = 0;
32 m_IngredientDestroy[0] =
true;
33 m_IngredientUseSoftSkills[0] =
false;
36 InsertIngredient(1,
"Truck_01_Wheel");
38 m_IngredientAddHealth[1] = -1;
39 m_IngredientSetHealth[1] = -1;
40 m_IngredientAddQuantity[1] = 0;
41 m_IngredientDestroy[1] =
true;
42 m_IngredientUseSoftSkills[1] =
false;
46 AddResult(
"Truck_01_WheelDouble");
48 m_ResultSetFullQuantity[0] =
false;
49 m_ResultSetQuantity[0] = -1;
50 m_ResultSetHealth[0] = -1;
51 m_ResultInheritsHealth[0] = -2;
52 m_ResultInheritsColor[0] = -1;
53 m_ResultToInventory[0] = -2;
54 m_ResultUseSoftSkills[0] =
false;
55 m_ResultReplacesIngredient[0] = -1;
60 Truck_01_Wheel ingredient1 = Truck_01_Wheel.Cast(ingredients[0]);
61 Truck_01_Wheel ingredient2 = Truck_01_Wheel.Cast(ingredients[1]);
63 if (!ingredient1 || !ingredient2)
66 if ( !ingredient1.GetHierarchyParent() || ingredient1.GetHierarchyParent() == ingredient1.GetHierarchyRootPlayer() )
68 if ( !ingredient2.GetHierarchyParent() || ingredient2.GetHierarchyParent() == ingredient2.GetHierarchyRootPlayer() )
81 ItemBase ingredient1 = ingredients[0];
82 ItemBase ingredient2 = ingredients[1];
85 if(ingredient1.GetHierarchyRootPlayer())
87 ingred_pos = ingredient2.GetPosition();
91 ingred_pos = ingredient1.GetPosition();
95 result1.SetPosition(ingred_pos);