Skip to content

Commit

Permalink
feat: set to ZPM (whatsapp2 recommendation)
Browse files Browse the repository at this point in the history
  • Loading branch information
bruberu committed Jul 30, 2024
1 parent d94ff6c commit be22a9d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ public static IFissionFuelStats getFissionFuel(int hash) {
return HASHED_FUELS.get(hash);
}

@Nullable
public static ItemStack getDepletedFuel(IFissionFuelStats stats) {
return DEPLETED_FUELS.get(stats);
public static @NotNull ItemStack getDepletedFuel(IFissionFuelStats stats) {
return DEPLETED_FUELS.get(stats).copy();
}
}
2 changes: 1 addition & 1 deletion src/main/java/gregtech/common/ConfigHolder.java
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ public static class NuclearOptions {
@Config.Comment({ "Nuclear coolant heat exchanger recipe efficiency multiplier for balancing purposes",
"Default: 0.1" })
@Config.RangeDouble(min = 0, max = 1000)
public double heatExchangerEfficiencyMultiplier = 0.0625;
public double heatExchangerEfficiencyMultiplier = 0.25;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,8 @@ public static void processCoolant(Material mat, CoolantProperty coolant) {
double multiplier = ConfigHolder.machines.nuclear.heatExchangerEfficiencyMultiplier;

// water temp difference * water heat capacity * amount / coolantHeatCapacity * (hotHpTemp - coolantTemp)
int coolantAmt = (int) Math.ceil(100 * 4168 * waterAmt / (coolant.getSpecificHeatCapacity() *
(coolant.getHotHPCoolant().getFluid().getTemperature() - mat.getFluid().getTemperature())) *
multiplier);
int coolantAmt = (int) Math.ceil(100 * 4168 * waterAmt * multiplier / (coolant.getSpecificHeatCapacity() *
(coolant.getHotHPCoolant().getFluid().getTemperature() - mat.getFluid().getTemperature())));

RecipeMaps.HEAT_EXCHANGER_RECIPES.recipeBuilder().duration(1).circuitMeta(1)
.fluidInputs(coolant.getHotHPCoolant().getFluid(coolantAmt), Materials.Water.getFluid(waterAmt))
Expand All @@ -36,9 +35,8 @@ public static void processCoolant(Material mat, CoolantProperty coolant) {
.fluidOutputs(mat.getFluid(coolantAmt), Materials.Steam.getFluid(waterAmt * 160)).buildAndRegister();
waterAmt = 600;
// Slightly more efficient
coolantAmt = (int) Math.ceil(100 * 4168 * waterAmt / (coolant.getSpecificHeatCapacity() *
(coolant.getHotHPCoolant().getFluid().getTemperature() - mat.getFluid().getTemperature())) *
multiplier);
coolantAmt = (int) Math.ceil(100 * 4168 * waterAmt * multiplier / (coolant.getSpecificHeatCapacity() *
(coolant.getHotHPCoolant().getFluid().getTemperature() - mat.getFluid().getTemperature())));;

RecipeMaps.HEAT_EXCHANGER_RECIPES.recipeBuilder().duration(1).circuitMeta(2)
.fluidInputs(coolant.getHotHPCoolant().getFluid(coolantAmt), Materials.Water.getFluid(waterAmt))
Expand Down

0 comments on commit be22a9d

Please sign in to comment.