Skip to content

Commit

Permalink
Add a small bonus applied to fuels with large burntime. This is calcu…
Browse files Browse the repository at this point in the history
…lated to be balanced with how GT++ small boilers apply their own bonus and results with approximately a 16 percent increase in burntime when using 5x Compressed Coal Coke. This is inline with the similar increase provided by the GT++ small boiler line.
  • Loading branch information
spacebuilder2020 committed Oct 25, 2024
1 parent 75481cc commit d16e58f
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,16 @@ public CheckRecipeResult checkProcessing() {
if (this.mEfficiencyIncrease > 5000) {
this.mEfficiencyIncrease = 0;
this.mSuperEfficencyIncrease = 20;

// Increase burntime by a small amount based on the initial burntime value.
// Balanced to the approx 16 percent increase for 5x Compressed Coal Coke in the GT++
// boiler line
// Percentage increases on a base 9 log scale with a base of 1600 (coal / charcoal)
double logScale = Math.log((float) GTModHandler.getFuelValue(tInput) / 1600)
/ Math.log(9);
double ratio = 1 + logScale * 0.025;

this.mMaxProgresstime = (int) (this.mProgresstime * ratio);
}
return CheckRecipeResultRegistry.SUCCESSFUL;
}
Expand Down

0 comments on commit d16e58f

Please sign in to comment.