Skip to content

Commit

Permalink
Switching branches
Browse files Browse the repository at this point in the history
  • Loading branch information
Zorbatron committed Oct 12, 2024
1 parent 66a9e3c commit 2290d78
Showing 1 changed file with 24 additions and 5 deletions.
29 changes: 24 additions & 5 deletions src/main/java/com/zorbatron/zbgt/recipe/CasingRecipes.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@

import gregtech.api.block.VariantBlock;
import gregtech.api.recipes.ModHandler;
import gregtech.api.recipes.builders.AssemblyLineRecipeBuilder;
import gregtech.api.unification.OreDictUnifier;
import gregtech.api.unification.material.Material;
import gregtech.api.unification.material.Materials;
Expand Down Expand Up @@ -112,7 +113,7 @@ private static void coALCasings() {
int fluidAdditive = (tier - ZPM) * 2;
int finalTier = tier;

ASSEMBLY_LINE_RECIPES.recipeBuilder()
AssemblyLineRecipeBuilder tempBuilder = ASSEMBLY_LINE_RECIPES.recipeBuilder()
.input(frameGt, getMaterialByTier(tier))
.input(plateDense, getMaterialByTier(tier), 6)
.input(getRobotArmByTier(tier), 8)
Expand All @@ -127,15 +128,33 @@ private static void coALCasings() {
.fluidInputs(tier > ZPM ?
Materials.Polybenzimidazole.getFluid((10 + fluidAdditive) * L * 2) :
Materials.Polyethylene.getFluid((10 + fluidAdditive) * L * 2))
.fluidInputs(tier > ZPM ? Naquadria.getFluid((10 + fluidAdditive) * L * 2) : null)
.outputs(ZBGTMetaBlocks.CoAL_CASING.getItemVariant(CoALCasing.CasingType.getCasingByTier(tier)))
.stationResearch(research -> research
.researchStack(ZBGTMetaBlocks.CoAL_CASING
.getItemVariant(CoALCasing.CasingType.getCasingByTier(finalTier - 1)))
.CWUt((int) Math.pow(16, finalTier - IV))
.CWUt((int) Math.pow(2, finalTier))
.EUt(VA[finalTier]))
.EUt(VA[tier]).duration(20 * 15)
.buildAndRegister();
.EUt(VA[tier]).duration(20 * 15);

ItemStack researchItemStack = ZBGTMetaBlocks.CoAL_CASING
.getItemVariant(CoALCasing.CasingType.getCasingByTier(finalTier - 1));
if (tier == LuV) {
tempBuilder.scannerResearch(research -> research
.researchStack(researchItemStack)
.EUt(VA[IV])
.duration(20 * 30));
} else {
tempBuilder.stationResearch(research -> research
.researchStack(researchItemStack)
.CWUt((int) Math.pow(2, finalTier - 1))
.EUt(VA[finalTier]));
}

if (tier > ZPM) {
tempBuilder.fluidInputs(Naquadria.getFluid((10 + fluidAdditive) * L * 2));
}

tempBuilder.buildAndRegister();
}
}

Expand Down

0 comments on commit 2290d78

Please sign in to comment.