@@ -165,7 +165,7 @@ private void GenerateHelperObjects()
165
165
166
166
HeatRecipe = new RecipePrototype ( this , "§§r:h:heat-generation" , "Heat Generation" , energySubgroupEnergy , "1" ) ;
167
167
HeatRecipe . SetIconAndColor ( heatIcon ) ;
168
- HeatRecipe . InternalOneWayAddProduct ( HeatItem , 1 ) ;
168
+ HeatRecipe . InternalOneWayAddProduct ( HeatItem , 1 , true ) ;
169
169
HeatItem . productionRecipes . Add ( HeatRecipe ) ;
170
170
HeatRecipe . Time = 1 ;
171
171
@@ -428,9 +428,9 @@ public void ProcessImportedBeaconsSet(IEnumerable<string> beaconNames)
428
428
foreach ( var product in recipeShort . Products )
429
429
{
430
430
if ( items . ContainsKey ( product . Key ) )
431
- missingRecipe . InternalOneWayAddProduct ( ( ItemPrototype ) items [ product . Key ] , product . Value ) ;
431
+ missingRecipe . InternalOneWayAddProduct ( ( ItemPrototype ) items [ product . Key ] , product . Value , false ) ;
432
432
else
433
- missingRecipe . InternalOneWayAddProduct ( ( ItemPrototype ) missingItems [ product . Key ] , product . Value ) ;
433
+ missingRecipe . InternalOneWayAddProduct ( ( ItemPrototype ) missingItems [ product . Key ] , product . Value , false ) ;
434
434
}
435
435
missingRecipe . assemblers . Add ( missingAssembler ) ;
436
436
missingAssembler . recipes . Add ( missingRecipe ) ;
@@ -579,9 +579,9 @@ private void ProcessRecipe(JToken objJToken, Dictionary<string, IconColorPair> i
579
579
if ( amount != 0 )
580
580
{
581
581
if ( ( string ) productJToken [ "type" ] == "fluid" )
582
- recipe . InternalOneWayAddProduct ( product , amount , productJToken [ "temperature" ] == null ? ( ( FluidPrototype ) product ) . DefaultTemperature : ( double ) productJToken [ "temperature" ] ) ;
582
+ recipe . InternalOneWayAddProduct ( product , amount , ( productJToken [ "catalyst" ] != null && ( bool ) productJToken [ "catalyst" ] ) , productJToken [ "temperature" ] == null ? ( ( FluidPrototype ) product ) . DefaultTemperature : ( double ) productJToken [ "temperature" ] ) ;
583
583
else
584
- recipe . InternalOneWayAddProduct ( product , amount ) ;
584
+ recipe . InternalOneWayAddProduct ( product , amount , ( productJToken [ "catalyst" ] != null && ( bool ) productJToken [ "catalyst" ] ) ) ;
585
585
586
586
product . productionRecipes . Add ( recipe ) ;
587
587
}
@@ -665,7 +665,7 @@ private void ProcessResource(JToken objJToken, Dictionary<string, List<RecipePro
665
665
if ( ! items . ContainsKey ( ( string ) productJToken [ "name" ] ) || ( double ) productJToken [ "amount" ] <= 0 )
666
666
continue ;
667
667
ItemPrototype product = ( ItemPrototype ) items [ ( string ) productJToken [ "name" ] ] ;
668
- recipe . InternalOneWayAddProduct ( product , ( double ) productJToken [ "amount" ] ) ;
668
+ recipe . InternalOneWayAddProduct ( product , ( double ) productJToken [ "amount" ] , false ) ;
669
669
product . productionRecipes . Add ( recipe ) ;
670
670
}
671
671
@@ -1027,7 +1027,7 @@ private bool OffshorePumpAdditionalProcessing(JToken objJToken, AssemblerPrototy
1027
1027
recipe . SetIconAndColor ( new IconColorPair ( fluid . Icon , fluid . AverageColor ) ) ;
1028
1028
recipe . Time = 1 ;
1029
1029
1030
- recipe . InternalOneWayAddProduct ( fluid , 60 ) ;
1030
+ recipe . InternalOneWayAddProduct ( fluid , 60 , false ) ;
1031
1031
fluid . productionRecipes . Add ( recipe ) ;
1032
1032
1033
1033
@@ -1086,7 +1086,7 @@ private bool OffshorePumpAdditionalProcessing(JToken objJToken, AssemblerPrototy
1086
1086
1087
1087
recipe . InternalOneWayAddIngredient ( ingredient , 60 ) ;
1088
1088
ingredient . consumptionRecipes . Add ( recipe ) ;
1089
- recipe . InternalOneWayAddProduct ( product , 60 , temp ) ;
1089
+ recipe . InternalOneWayAddProduct ( product , 60 , true , temp ) ;
1090
1090
product . productionRecipes . Add ( recipe ) ;
1091
1091
1092
1092
@@ -1301,7 +1301,7 @@ private void ProcessRocketLaunch(JToken objJToken)
1301
1301
}
1302
1302
}
1303
1303
foreach ( ItemPrototype product in products . Keys )
1304
- recipe . InternalOneWayAddProduct ( product , inputSize * products [ product ] , productTemp . ContainsKey ( product ) ? productTemp [ product ] : double . NaN ) ;
1304
+ recipe . InternalOneWayAddProduct ( product , inputSize * products [ product ] , false , productTemp . ContainsKey ( product ) ? productTemp [ product ] : double . NaN ) ;
1305
1305
1306
1306
recipe . InternalOneWayAddIngredient ( launchItem , inputSize ) ;
1307
1307
launchItem . consumptionRecipes . Add ( recipe ) ;
0 commit comments