7 m_Name =
"#STR_RefuelTorch0";
8 m_IsInstaRecipe =
false;
9 m_AnimationLength = 0.25;
13 m_MinDamageIngredient[0] = -1;
14 m_MaxDamageIngredient[0] = -1;
16 m_MinQuantityIngredient[0] = -1;
17 m_MaxQuantityIngredient[0] = -1;
19 m_MinDamageIngredient[1] = -1;
20 m_MaxDamageIngredient[1] = -1;
22 m_MinQuantityIngredient[1] = -1;
23 m_MaxQuantityIngredient[1] = -1;
28 InsertIngredient(0,
"Rag");
30 m_IngredientAddHealth[0] = 0;
31 m_IngredientSetHealth[0] = -1;
32 m_IngredientAddQuantity[0] = 0;
33 m_IngredientDestroy[0] =
false;
34 m_IngredientUseSoftSkills[0] =
false;
37 InsertIngredient(1,
"Torch");
38 InsertIngredient(1,
"LongTorch");
40 m_IngredientAddHealth[1] = 0;
41 m_IngredientSetHealth[1] = -1;
42 m_IngredientAddQuantity[1] = -1;
43 m_IngredientDestroy[1] =
false;
44 m_IngredientUseSoftSkills[1] =
false;
50 m_ResultSetFullQuantity[0] =
false;
51 m_ResultSetQuantity[0] = -1;
52 m_ResultSetHealth[0] = -1;
53 m_ResultInheritsHealth[0] = -2;
54 m_ResultInheritsColor[0] = -1;
55 m_ResultToInventory[0] = -2;
56 m_ResultUseSoftSkills[0] =
false;
57 m_ResultReplacesIngredient[0] = -1;
62 Rag rag = Rag.Cast(ingredients[0]);
63 Torch torch = Torch.Cast(ingredients[1]);
68 Rag rag_on_torch = Rag.Cast( torch.GetInventory().FindAttachment( rag.GetInventory().GetSlotId(0) ) );
72 if (rag_on_torch.GetQuantity() == rag_on_torch.GetQuantityMax() )
83 Rag rag = Rag.Cast(ingredients[0]);
84 Torch torch = Torch.Cast(ingredients[1]);
86 if ( !
GetGame().IsMultiplayer() )
89 rag.GetInventory().GetCurrentInventoryLocation( loc );
90 player.GetInventory().ClearInventoryReservationEx( rag, loc );
93 Rag rag_on_torch = Rag.Cast( torch.GetInventory().FindAttachment( rag.GetInventory().GetSlotId(0) ) );
97 rag_on_torch.CombineItems(rag,
false);
103 player.ServerTakeEntityToTargetAttachment(torch, rag);
107 player.LocalTakeEntityToTargetAttachment(torch, rag);