Skip to content
This repository has been archived by the owner on May 26, 2024. It is now read-only.

Fix steam multi bonuses and document them #875

Merged
merged 1 commit into from
Apr 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@ public String getMachineType() {
protected GT_Multiblock_Tooltip_Builder createTooltip() {
GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder();
tt.addMachineType(getMachineType()).addInfo("Controller Block for the Steam Compressor")
.addInfo("Compresses " + getMaxParallelRecipes() + " things at a time").addSeparator()
.addInfo("33.3% faster than using a single block Steam Compressor.")
.addInfo("Uses only 66.6% of the steam/s compared to a single block Steam Compressor.")
.addInfo("Compresses up to " + getMaxParallelRecipes() + " things at a time").addSeparator()
.beginStructureBlock(3, 3, 4, true).addController("Front center")
.addCasingInfoMin(mCasingName, 28, false).addOtherStructurePart(TT_steaminputbus, "Any casing", 1)
.addOtherStructurePart(TT_steamoutputbus, "Any casing", 1)
Expand Down Expand Up @@ -127,14 +129,15 @@ public RecipeMap<?> getRecipeMap() {
return RecipeMaps.compressorRecipes;
}

// note that a basic steam machine has .setEUtDiscount(2F).setSpeedBoost(2F). So these are bonuses.
@Override
protected ProcessingLogic createProcessingLogic() {
return new ProcessingLogic() {

@Override
@Nonnull
protected GT_OverclockCalculator createOverclockCalculator(@NotNull GT_Recipe recipe) {
return GT_OverclockCalculator.ofNoOverclock(recipe);
return GT_OverclockCalculator.ofNoOverclock(recipe).setEUtDiscount(1.33F).setSpeedBoost(1.5F);
}
}.setMaxParallel(getMaxParallelRecipes());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@ protected GT_Multiblock_Tooltip_Builder createTooltip() {
}
GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder();
tt.addMachineType(getMachineType()).addInfo("Controller Block for the Steam Macerator")
.addInfo("Macerates " + getMaxParallelRecipes() + " ores at a time").addSeparator()
.addInfo("33.3% faster than using a single block Steam Macerator.")
.addInfo("Uses only 66.6% of the steam/s required compared to a single block Steam Macerator.")
.addInfo("Macerates up to " + getMaxParallelRecipes() + " things at a time").addSeparator()
.beginStructureBlock(3, 3, 3, true).addController("Front center")
.addCasingInfoMin(mCasingName, 14, false).addOtherStructurePart(TT_steaminputbus, "Any casing", 1)
.addOtherStructurePart(TT_steamoutputbus, "Any casing", 1)
Expand Down Expand Up @@ -131,14 +133,15 @@ public RecipeMap<?> getRecipeMap() {
return RecipeMaps.maceratorRecipes;
}

// note that a basic steam machine has .setEUtDiscount(2F).setSpeedBoost(2F). So these are bonuses.
@Override
protected ProcessingLogic createProcessingLogic() {
return new ProcessingLogic() {

@Override
@Nonnull
protected GT_OverclockCalculator createOverclockCalculator(@NotNull GT_Recipe recipe) {
return GT_OverclockCalculator.ofNoOverclock(recipe);
return GT_OverclockCalculator.ofNoOverclock(recipe).setEUtDiscount(1.33F).setSpeedBoost(1.5F);
}

}.setMaxParallel(getMaxParallelRecipes());
Expand Down