diff options
author | Elisis <gtandemmodding@gmail.com> | 2023-06-05 23:18:33 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-05 23:18:33 +1000 |
commit | f66e699b65e5357a59963e1aab4f39c85f715ce9 (patch) | |
tree | 798483c4f6db250af738162e81a4fc3c1c408ed9 /src/main | |
parent | a86c82aa55f3e751a56dda0da86df9d36f3c5a69 (diff) | |
parent | ba3923b46f29eda15e0c707d12a8cc7b4dd68eae (diff) | |
download | GT5-Unofficial-f66e699b65e5357a59963e1aab4f39c85f715ce9.tar.gz GT5-Unofficial-f66e699b65e5357a59963e1aab4f39c85f715ce9.tar.bz2 GT5-Unofficial-f66e699b65e5357a59963e1aab4f39c85f715ce9.zip |
Merge pull request #57 from chochem/phosgenefix
Phosgene Fix
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/com/elisis/gtnhlanth/loader/BotRecipes.java | 91 |
1 files changed, 20 insertions, 71 deletions
diff --git a/src/main/java/com/elisis/gtnhlanth/loader/BotRecipes.java b/src/main/java/com/elisis/gtnhlanth/loader/BotRecipes.java index 5c8369a4ec..b11d502f14 100644 --- a/src/main/java/com/elisis/gtnhlanth/loader/BotRecipes.java +++ b/src/main/java/com/elisis/gtnhlanth/loader/BotRecipes.java @@ -2,6 +2,10 @@ package com.elisis.gtnhlanth.loader; import static com.elisis.gtnhlanth.common.register.BotWerkstoffMaterialPool.*; import static gregtech.api.enums.OrePrefixes.*; +import static gregtech.api.util.GT_Recipe.GT_Recipe_Map.sChemicalRecipes; +import static gregtech.api.util.GT_RecipeBuilder.SECONDS; +import static gregtech.api.util.GT_RecipeBuilder.TICKS; +import static gregtech.api.util.GT_RecipeConstants.UniversalChemical; import java.lang.reflect.Field; import java.lang.reflect.InvocationTargetException; @@ -19,6 +23,7 @@ import com.github.bartimaeusnek.bartworks.system.material.WerkstoffLoader; import cpw.mods.fml.common.Loader; import gregtech.api.enums.GT_Values; import gregtech.api.enums.Materials; +import gregtech.api.enums.TierEU; import gregtech.api.util.GT_ModHandler; import gregtech.api.util.GT_OreDictUnificator; import gregtech.api.util.GT_Recipe; @@ -140,77 +145,21 @@ public class BotRecipes { // rocket fuels // LMP103S // 2Cl + CO = COCl2 - GT_Values.RA.addChemicalRecipe( - Materials.CarbonMonoxide.getCells(1), - C2, - Materials.Chlorine.getGas(2000), - null, - Phosgene.get(cell, 1), - 50, - 480); - GT_Values.RA.addChemicalRecipe( - Materials.Chlorine.getCells(2), - C2, - Materials.CarbonMonoxide.getGas(1000), - null, - Phosgene.get(cell, 1), - Materials.Empty.getCells(1), - 50, - 480); - GT_Values.RA.addChemicalRecipe( - Materials.CarbonMonoxide.getCells(1), - C2, - Materials.Chlorine.getGas(2000), - BotWerkstoffMaterialPool.Phosgene.getFluidOrGas(1000), - null, - Materials.Empty.getCells(1), - 50, - 480); - GT_Values.RA.addChemicalRecipe( - Materials.Chlorine.getCells(2), - C2, - Materials.CarbonMonoxide.getGas(1000), - BotWerkstoffMaterialPool.Phosgene.getFluidOrGas(1000), - null, - Materials.Empty.getCells(2), - 50, - 480); - GT_Values.RA.addChemicalRecipe( - Materials.CarbonMonoxide.getCells(1), - Materials.Chlorine.getCells(2), - null, - null, - Phosgene.get(cell, 1), - Materials.Empty.getCells(2), - 50, - 480); - GT_Values.RA.addChemicalRecipe( - Materials.Chlorine.getCells(2), - Materials.CarbonMonoxide.getCells(1), - null, - null, - Phosgene.get(cell, 1), - Materials.Empty.getCells(2), - 50, - 480); - GT_Values.RA.addChemicalRecipe( - Materials.CarbonMonoxide.getCells(1), - Materials.Chlorine.getCells(2), - null, - BotWerkstoffMaterialPool.Phosgene.getFluidOrGas(1000), - null, - Materials.Empty.getCells(3), - 50, - 480); - GT_Values.RA.addChemicalRecipe( - Materials.Chlorine.getCells(2), - Materials.CarbonMonoxide.getCells(1), - null, - BotWerkstoffMaterialPool.Phosgene.getFluidOrGas(1000), - null, - Materials.Empty.getCells(3), - 50, - 480); + + GT_Values.RA.stdBuilder().itemInputs(Materials.CarbonMonoxide.getCells(1), GT_Utility.getIntegratedCircuit(12)) + .itemOutputs(Phosgene.get(cell, 1)).fluidInputs(Materials.Chlorine.getGas(2000)).noFluidOutputs() + .duration(2 * SECONDS + 10 * TICKS).eut(TierEU.RECIPE_HV).addTo(sChemicalRecipes); + GT_Values.RA.stdBuilder().itemInputs(Materials.Chlorine.getCells(2), GT_Utility.getIntegratedCircuit(12)) + .itemOutputs(Phosgene.get(cell, 1), Materials.Empty.getCells(1)) + .fluidInputs(Materials.CarbonMonoxide.getGas(1000)).noFluidOutputs().duration(2 * SECONDS + 10 * TICKS) + .eut(TierEU.RECIPE_HV).addTo(sChemicalRecipes); + GT_Values.RA.stdBuilder().itemInputs(Materials.CarbonMonoxide.getCells(1), Materials.Chlorine.getCells(2)) + .itemOutputs(Phosgene.get(cell, 1), Materials.Empty.getCells(2)).noFluidInputs().noFluidOutputs() + .duration(2 * SECONDS + 10 * TICKS).eut(TierEU.RECIPE_HV).addTo(sChemicalRecipes); + GT_Values.RA.stdBuilder().itemInputs(Materials.Chlorine.getCells(2), GT_Utility.getIntegratedCircuit(2)) + .itemOutputs(Materials.Empty.getCells(2)).fluidInputs(Materials.CarbonMonoxide.getGas(1000)) + .fluidOutputs(BotWerkstoffMaterialPool.Phosgene.getFluidOrGas(1000)).duration(2 * SECONDS + 10 * TICKS) + .eut(TierEU.RECIPE_HV).addTo(UniversalChemical); // COCl2 + C2H6O = HCl + C3H5ClO2 GT_Values.RA.addChemicalRecipe( |