diff options
author | Florexiz <florexiz.nm@gmail.com> | 2021-11-08 21:38:44 +0300 |
---|---|---|
committer | Florexiz <florexiz.nm@gmail.com> | 2021-11-08 21:38:44 +0300 |
commit | 80024f8a5a65668573014c2da0b56d17e9ab477f (patch) | |
tree | 8e21a2b511eccde56b9397a6f65ec823526e5243 /src/Java/gtPlusPlus/xmod/gregtech/common | |
parent | 6e7ce3372c1b98dc5e7e6d1dfcdb3624e9e0aa53 (diff) | |
parent | 19b518ff60ad7dd7e3bbe703675ebd3afc8378d9 (diff) | |
download | GT5-Unofficial-80024f8a5a65668573014c2da0b56d17e9ab477f.tar.gz GT5-Unofficial-80024f8a5a65668573014c2da0b56d17e9ab477f.tar.bz2 GT5-Unofficial-80024f8a5a65668573014c2da0b56d17e9ab477f.zip |
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'src/Java/gtPlusPlus/xmod/gregtech/common')
-rw-r--r-- | src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialAlloySmelter.java | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialAlloySmelter.java b/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialAlloySmelter.java index 1e7e5cfcf2..910ae8bff6 100644 --- a/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialAlloySmelter.java +++ b/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialAlloySmelter.java @@ -127,7 +127,7 @@ public class GregtechMetaTileEntity_IndustrialAlloySmelter extends GregtechMeta_ @Override public int getEuDiscountForParallelism() { - return 0; + return 100; } @Override @@ -215,7 +215,7 @@ public class GregtechMetaTileEntity_IndustrialAlloySmelter extends GregtechMeta_ } public boolean checkRecipe(ItemStack aStack) { - return checkRecipeGeneric(this.getMaxParallelRecipes(), 0, 5 * this.mLevel); // Will have to clone the logic from parent class to handle heating coil + return checkRecipeGeneric(this.getMaxParallelRecipes(), 100, 5 * this.mLevel); // Will have to clone the logic from parent class to handle heating coil // tiers. } @@ -256,9 +256,6 @@ public class GregtechMetaTileEntity_IndustrialAlloySmelter extends GregtechMeta_ // EU discount float tRecipeEUt = (tRecipe.mEUt * aEUPercent) / 100.0f; int tHeatCapacityDivTiers = mHeatingCapacity / 900; - if (tHeatCapacityDivTiers > 0) { - tRecipeEUt = (int) (tRecipeEUt * (Math.pow(0.95, tHeatCapacityDivTiers))); - } float tTotalEUt = 0.0f; int parallelRecipes = 0; @@ -282,12 +279,12 @@ public class GregtechMetaTileEntity_IndustrialAlloySmelter extends GregtechMeta_ // Convert speed bonus to duration multiplier // e.g. 100% speed bonus = 200% speed = 100%/200% = 50% recipe duration. - aSpeedBonusPercent = Math.max(-99, aSpeedBonusPercent); + aSpeedBonusPercent = mLevel * 5; float tTimeFactor = 100.0f / (100.0f + aSpeedBonusPercent); this.mMaxProgresstime = (int) (tRecipe.mDuration * tTimeFactor); int rInt = 2; - this.mEUt = (int) Math.ceil(tTotalEUt); + this.mEUt = (int) Math.max(Math.ceil(tTotalEUt), 1); this.mEfficiency = (10000 - (getIdealStatus() - getRepairStatus()) * 1000); this.mEfficiencyIncrease = 10000; |