5 m_Name =
"#STR_CraftTorch0";
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,
"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,
"WoodenStick");
37 InsertIngredient(1,
"Ammo_SharpStick");
39 m_IngredientAddHealth[1] = 0;
40 m_IngredientSetHealth[1] = -1;
41 m_IngredientAddQuantity[1] = -1;
42 m_IngredientDestroy[1] =
false;
43 m_IngredientUseSoftSkills[1] =
false;
49 m_ResultSetFullQuantity[0] =
false;
50 m_ResultSetQuantity[0] = -1;
51 m_ResultSetHealth[0] = -1;
52 m_ResultInheritsHealth[0] = -2;
53 m_ResultInheritsColor[0] = -1;
54 m_ResultToInventory[0] = -2;
55 m_ResultUseSoftSkills[0] =
false;
56 m_ResultReplacesIngredient[0] = -1;
66 Debug.Log(
"Recipe Do method called",
"recipes");
70 Torch torch = Torch.Cast(results[0]);
73 torch.SetTorchDecraftResult(ingredients[1].
GetType());
77 player.ServerTakeEntityToTargetAttachment(torch, rag);
79 else if ( !
GetGame().IsMultiplayer() )
82 player.PredictiveTakeEntityToTargetAttachmentEx(torch, rag,slotID);
86 torch.CraftingInit(rag.GetQuantity());