Skip to content

Commit

Permalink
Give coils an actual EU discount in EBF (#2055)
Browse files Browse the repository at this point in the history
  • Loading branch information
YoungOnionMC authored and krossgg committed Oct 13, 2024
1 parent b830d38 commit a0bc9d8
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@

import javax.annotation.ParametersAreNonnullByDefault;

import static com.gregtechceu.gtceu.api.recipe.OverclockingLogic.applyCoilEUtDiscount;

/**
* @author KilaBash
* @date 2023/7/9
Expand Down Expand Up @@ -211,6 +213,13 @@ public static GTRecipe ebfOverclock(MetaMachine machine, @NotNull GTRecipe recip
if (RecipeHelper.getRecipeEUtTier(recipe) > coilMachine.getTier()) {
return null;
}

recipe.tickInputs.put(EURecipeCapability.CAP, List.of(new Content(
applyCoilEUtDiscount(RecipeHelper.getInputEUt(recipe),
blastFurnaceTemperature, recipe.data.getInt("ebf_temp")),
ChanceLogic.getMaxChancedValue(), ChanceLogic.getMaxChancedValue(),
0, null, null)));

return RecipeHelper.applyOverclock(
new OverclockingLogic((p, r, maxVoltage) -> OverclockingLogic.heatingCoilOC(
params, result, maxVoltage,
Expand Down

0 comments on commit a0bc9d8

Please sign in to comment.