Skip to content

Commit

Permalink
Improve EHE info and buff lava in EHE (#3494)
Browse files Browse the repository at this point in the history
  • Loading branch information
StaffiX authored Nov 16, 2024
1 parent 77b7b90 commit 04e037f
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 29 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,22 +42,21 @@ private static class EHESpecialValueFormatter implements INEISpecialInfoFormatte
@Override
public List<String> format(RecipeDisplayInfo recipeInfo) {
FluidStack[] Inputs = recipeInfo.recipe.mFluidInputs;
FluidStack[] Outputs = recipeInfo.recipe.mFluidOutputs;
int denseMultiplier = 1;
if (Inputs[0].getUnlocalizedName()
int threshold = recipeInfo.recipe.mSpecialValue;
String[] description = new String[4];
description[0] = StatCollector.translateToLocal("value.extreme_heat_exchanger.0") + " "
+ GTUtility.formatNumbers(Inputs[0].amount)
+ " L/s";
description[1] = StatCollector.translateToLocal("value.extreme_heat_exchanger.1");
description[2] = GTUtility.formatNumbers(Inputs[1].amount) + " L/s";
if (!Inputs[0].getUnlocalizedName()
.contains("plasma")) {
denseMultiplier = 1000;
description[3] = StatCollector.translateToLocal("value.extreme_heat_exchanger.4") + " "
+ threshold
+ " L/s";

}
int threshold = recipeInfo.recipe.mSpecialValue;
return Arrays.asList(
StatCollector.translateToLocal("value.extreme_heat_exchanger.0") + " "
+ GTUtility.formatNumbers(Inputs[0].amount)
+ " L/s",
StatCollector.translateToLocal("value.extreme_heat_exchanger.1"),
GTUtility.formatNumbers(Outputs[0].amount / 160 * denseMultiplier) + " L/s",
StatCollector.translateToLocal("value.extreme_heat_exchanger.2"),
GTUtility.formatNumbers(Outputs[1].amount / 160 * denseMultiplier) + " L/s",
StatCollector.translateToLocal("value.extreme_heat_exchanger.4") + " " + threshold + " L/s");
return Arrays.asList(description);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -204,16 +204,23 @@ public boolean checkMachine_EM(IGregTechTileEntity aBaseMetaTileEntity, ItemStac
protected MultiblockTooltipBuilder createTooltip() {
final MultiblockTooltipBuilder tt = new MultiblockTooltipBuilder();
tt.addMachineType("Heat Exchanger/Plasma Heat Exchanger")
.addInfo("Accept Hot fluid like lava, hot coolant or plasma.")
.addInfo("Output SC Steam/SH Steam/Steam.")
.addInfo("Check NEI for more info.")
.addInfo("Outputs SH steam by cooling hot fluids with distilled water.")
.addInfo("Supplying more hot fluid than the threshold causes overheating,")
.addInfo("producing SC steam instead.")
.addInfo("Plasma always produces SC steam.")
.addInfo("Maximum input and output values per second are shown in NEI.")
.addInfo("Actual output is proportional to the amount of hot fluid inserted.")
.addInfo("Explodes if it runs out of water.")
.addController("Front bottom")
.addOtherStructurePart("Input Hatch", "distilled water", 1)
.addOtherStructurePart("Output Hatch", "SC Steam/SH Steam/Steam", 2)
.addCasingInfoRange("Robust Tungstensteel Machine Casings", 25, 120, false)
.addCasingInfoExactly("EV+ Glass", 72, false)
.addCasingInfoExactly("Pressure Resistant Wall", 48, false)
.addCasingInfoExactly("Tungstensteel Pipe Casing", 60, false)
.addOtherStructurePart("Input Hatch", "Distilled water", 1)
.addOtherStructurePart("Output Hatch", "SC Steam/SH Steam", 2)
.addOtherStructurePart("Input Hatch", "Hot fluid or plasma", 3)
.addOtherStructurePart("Output Hatch", "Cold fluid", 4)
.addMaintenanceHatch("Any Casing", 1, 2, 5)
.addCasingInfoMin("Robust Tungstensteel Machine Casings", 25, false)
.toolTipFinisher();
return tt;
}
Expand Down
12 changes: 6 additions & 6 deletions src/main/java/goodgenerator/loader/RecipeLoader2.java
Original file line number Diff line number Diff line change
Expand Up @@ -1064,12 +1064,12 @@ public static void RecipeLoad() {
.addTo(assemblerRecipes);

MyRecipeAdder.instance.addExtremeHeatExchangerRecipe(
FluidRegistry.getFluidStack("lava", 20000),
FluidRegistry.getFluidStack("ic2pahoehoelava", 20000),
FluidRegistry.getFluidStack("ic2distilledwater", 20000),
FluidRegistry.getFluidStack("steam", 3200000),
FluidRegistry.getFluidStack("ic2superheatedsteam", 1600000),
10000);
FluidRegistry.getFluidStack("lava", 160000),
FluidRegistry.getFluidStack("ic2pahoehoelava", 160000),
FluidRegistry.getFluidStack("ic2distilledwater", 80000),
FluidRegistry.getFluidStack("ic2superheatedsteam", 12800000),
FluidRegistry.getFluidStack("supercriticalsteam", 12800000),
80000);

MyRecipeAdder.instance.addExtremeHeatExchangerRecipe(
FluidRegistry.getFluidStack("ic2hotcoolant", 16000),
Expand Down
3 changes: 1 addition & 2 deletions src/main/resources/assets/goodgenerator/lang/en_US.lang
Original file line number Diff line number Diff line change
Expand Up @@ -342,8 +342,7 @@ value.neutron_activator.0=Minimum Neutron Kinetic Energy:
value.neutron_activator.1=Maximum Neutron Kinetic Energy:
value.neutron_activator.2= MeV
value.extreme_heat_exchanger.0=Max Hot Fluid Input:
value.extreme_heat_exchanger.1=Max Distilled Water Input(Normal):
value.extreme_heat_exchanger.2=Max Distilled Water Input(OverHeated):
value.extreme_heat_exchanger.1=Max Distilled Water Input:
value.extreme_heat_exchanger.4=Threshold:
value.precise_assembler=Need MK-%s Casing
value.component_assembly_line=Casing Tier: %s
Expand Down
1 change: 0 additions & 1 deletion src/main/resources/assets/goodgenerator/lang/zh_CN.lang
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,6 @@ value.neutron_activator.1=最高中子动能:
value.neutron_activator.2= MeV
value.extreme_heat_exchanger.0=最大热流体输入:
value.extreme_heat_exchanger.1=最大工质输入:
value.extreme_heat_exchanger.2=最大热工质输出:
value.extreme_heat_exchanger.4=阈值:
value.precise_assembler=要求 MK-%s 机械方块

Expand Down

0 comments on commit 04e037f

Please sign in to comment.