Skip to content

Commit

Permalink
EBF Efficiency improvements with hier tier coils
Browse files Browse the repository at this point in the history
Every 1800K free heating capacity the EBF can be overclocked one tier
without efficency loss(4xEU/t, 1/4process time).
Every 900K free heating capacity EU/t is lowered by 5%.
  • Loading branch information
Blood-Asp committed Dec 24, 2016
1 parent 2d35f8c commit e1c60d8
Show file tree
Hide file tree
Showing 2 changed files with 296 additions and 291 deletions.
Expand Up @@ -109,17 +109,21 @@ public boolean checkRecipe(ItemStack aStack) {
if ((tRecipe != null) && (this.mHeatingCapacity >= tRecipe.mSpecialValue) && (tRecipe.isRecipeInputEqual(true, tFluids, tInputs))) {
this.mEfficiency = (10000 - (getIdealStatus() - getRepairStatus()) * 1000);
this.mEfficiencyIncrease = 10000;
int tHeatCapacityDivTiers = (mHeatingCapacity - tRecipe.mSpecialValue)/900;
if (tRecipe.mEUt <= 16) {
this.mEUt = (tRecipe.mEUt * (1 << tTier - 1) * (1 << tTier - 1));
this.mMaxProgresstime = (tRecipe.mDuration / (1 << tTier - 1));
} else {
this.mEUt = tRecipe.mEUt;
this.mMaxProgresstime = tRecipe.mDuration;
int i = 2;
while (this.mEUt <= gregtech.api.enums.GT_Values.V[(tTier - 1)]) {
this.mEUt *= 4;
this.mMaxProgresstime /= 2;
this.mMaxProgresstime /= (tHeatCapacityDivTiers>=i ? 4 : 2);

This comment has been minimized.

Copy link
@Techlone

Techlone Dec 24, 2016

Collaborator

We still need upgrade EnergyHatch to get time bonus of coils? Or is it mistake?

This comment has been minimized.

Copy link
@Blood-Asp

Blood-Asp Dec 24, 2016

Author Owner

Yes, EnergyHatch upgrade is still needed.

i+=2;
}
}
if(tHeatCapacityDivTiers>0)this.mEUt = (int) (this.mEUt * (Math.pow(0.95, tHeatCapacityDivTiers)));
if (this.mEUt > 0) {
this.mEUt = (-this.mEUt);
}
Expand Down

0 comments on commit e1c60d8

Please sign in to comment.