aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGirixK <72603953+GirixK@users.noreply.github.com>2024-11-30 21:42:49 +0100
committerGitHub <noreply@github.com>2024-11-30 20:42:49 +0000
commitb693fad8506e2500a49ae27a60292c0bba609a32 (patch)
tree3b3bb16998d0448f21575e0b4899d9cfe535958a /src
parent6189dae128e256a0c9c065e90a1156be37377986 (diff)
downloadGT5-Unofficial-b693fad8506e2500a49ae27a60292c0bba609a32.tar.gz
GT5-Unofficial-b693fad8506e2500a49ae27a60292c0bba609a32.tar.bz2
GT5-Unofficial-b693fad8506e2500a49ae27a60292c0bba609a32.zip
Fix Living Crystal Chip progression skip using Beamline (#3580)
Diffstat (limited to 'src')
-rw-r--r--src/main/java/gtnhlanth/loader/RecipeLoader.java37
1 files changed, 27 insertions, 10 deletions
diff --git a/src/main/java/gtnhlanth/loader/RecipeLoader.java b/src/main/java/gtnhlanth/loader/RecipeLoader.java
index 81aec5bfd1..358243a749 100644
--- a/src/main/java/gtnhlanth/loader/RecipeLoader.java
+++ b/src/main/java/gtnhlanth/loader/RecipeLoader.java
@@ -817,16 +817,33 @@ public class RecipeLoader {
for (ItemStack lens : OreDictionary.getOres("craftingLens" + lensColour.mName.replace(" ", ""))) {
if (lens == null) continue;
-
- GTValues.RA.stdBuilder()
- .itemInputs(
- new ItemStack(LanthItemList.maskMap.get(maskIngredient)),
- GTUtility.copyAmount(0, lens))
- .itemOutputs(new ItemStack(LanthItemList.maskMap.get(mask)))
- .requiresCleanRoom()
- .duration(120 * SECONDS)
- .eut(mask.getEngraverEUt())
- .addTo(WaferEngravingRecipes);
+ if (mask == MaskList.LCC) {
+
+ GTValues.RA.stdBuilder()
+ .itemInputs(
+ new ItemStack(LanthItemList.maskMap.get(maskIngredient)),
+ GTUtility.copyAmount(0, lens))
+ .fluidInputs(
+ // damage * 4 (chips per recipe) * 50 (L per chip normally) * 3 / 4 (75% of the cost)
+ Materials.BioMediumSterilized.getFluid((mask.getDamage() + 1) * 4L * 50 * 3 / 4))
+ .itemOutputs(new ItemStack(LanthItemList.maskMap.get(mask)))
+ .requiresCleanRoom()
+ .duration(120 * SECONDS)
+ .eut(mask.getEngraverEUt())
+ .addTo(WaferEngravingRecipes);
+
+ } else {
+
+ GTValues.RA.stdBuilder()
+ .itemInputs(
+ new ItemStack(LanthItemList.maskMap.get(maskIngredient)),
+ GTUtility.copyAmount(0, lens))
+ .itemOutputs(new ItemStack(LanthItemList.maskMap.get(mask)))
+ .requiresCleanRoom()
+ .duration(120 * SECONDS)
+ .eut(mask.getEngraverEUt())
+ .addTo(WaferEngravingRecipes);
+ }
}
}