5 m_Name =
"#STR_CraftFireplace0";
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 InsertIngredientEx(0,
"WoodenStick" ,
"FireplaceDeploy");
28 InsertIngredientEx(0,
"Firewood" ,
"FireplaceDeploy_firewood");
29 InsertIngredientEx(0,
"Rag" ,
"FireplaceDeploy");
30 InsertIngredientEx(0,
"BandageDressing" ,
"FireplaceDeploy");
31 InsertIngredientEx(0,
"Paper" ,
"FireplaceDeploy");
32 InsertIngredientEx(0,
"ItemBook" ,
"FireplaceDeploy");
33 InsertIngredientEx(0,
"Bark_Birch" ,
"FireplaceDeploy");
34 InsertIngredientEx(0,
"Bark_Oak" ,
"FireplaceDeploy");
36 m_IngredientAddHealth[0] = 0;
37 m_IngredientSetHealth[0] = -1;
38 m_IngredientAddQuantity[0] = 0;
39 m_IngredientDestroy[0] =
false;
40 m_IngredientUseSoftSkills[0] =
false;
43 InsertIngredient(1,
"WoodenStick");
44 InsertIngredient(1,
"Firewood");
45 InsertIngredient(1,
"Rag");
46 InsertIngredient(1,
"BandageDressing");
47 InsertIngredient(1,
"Paper");
48 InsertIngredient(1,
"GiftWrapPaper");
49 InsertIngredient(1,
"ItemBook");
50 InsertIngredient(1,
"Bark_Birch");
51 InsertIngredient(1,
"Bark_Oak");
52 InsertIngredient(1,
"EyeMask_ColorBase");
54 m_IngredientAddHealth[1] = 0;
55 m_IngredientSetHealth[1] = -1;
56 m_IngredientAddQuantity[1] = 0;
57 m_IngredientDestroy[1] =
false;
58 m_IngredientUseSoftSkills[1] =
false;
62 AddResult(
"Fireplace");
64 m_ResultSetFullQuantity[0] =
false;
65 m_ResultSetQuantity[0] = -1;
66 m_ResultSetHealth[0] = -1;
67 m_ResultInheritsHealth[0] = -2;
68 m_ResultInheritsColor[0] = -1;
69 m_ResultToInventory[0] = -2;
70 m_ResultUseSoftSkills[0] =
false;
71 m_ResultReplacesIngredient[0] = -1;
76 ItemBase ingredient1 = ingredients[0];
77 ItemBase ingredient2 = ingredients[1];
79 if ( ingredient1.Type() == ingredient2.Type() || ingredient1.GetInventory().GetSlotId(0) == ingredient2.GetInventory().GetSlotId(0) )
90 ItemBase ingredient1 = ingredients[0];
91 ItemBase ingredient2 = ingredients[1];
94 if ( !
GetGame().IsMultiplayer() )
97 ingredient1.GetInventory().GetCurrentInventoryLocation( loc );
98 player.GetInventory().ClearInventoryReservationEx( ingredient1, loc );
99 ingredient2.GetInventory().GetCurrentInventoryLocation( loc );
100 player.GetInventory().ClearInventoryReservationEx( ingredient2, loc );
104 if ( ingredient1.GetQuantity() <= 0 )
108 player.ServerTakeEntityToTargetAttachment( result, ingredient1 );
112 player.LocalTakeEntityToTargetAttachment( result, ingredient1 );
117 string ingredient1_classname = ingredient1.GetType();
118 ItemBase attachment1 =
ItemBase.Cast( result.GetInventory().CreateAttachment( ingredient1_classname ) );
119 MiscGameplayFunctions.TransferItemProperties( ingredient1, attachment1 );
120 attachment1.SetQuantity( 1 );
121 attachment1.SetCleanness(0);
124 ingredient1.AddQuantity( -1 );
128 if ( ingredient2.GetQuantity() <= 0 )
132 player.ServerTakeEntityToTargetAttachment( result, ingredient2 );
136 player.LocalTakeEntityToTargetAttachment( result, ingredient2 );
141 string ingredient2_classname = ingredient2.GetType();
142 ItemBase attachment2 =
ItemBase.Cast( result.GetInventory().CreateAttachment( ingredient2_classname ) );
143 MiscGameplayFunctions.TransferItemProperties( ingredient2, attachment2 );
144 attachment2.SetQuantity( 1 );
145 attachment2.SetCleanness(0);
147 ingredient2.AddQuantity( -1 );