From a7aa820008ef07589fff391eea8cf643be5f6238 Mon Sep 17 00:00:00 2001 From: GlodBlock <1356392126@qq.com> Date: Fri, 20 Aug 2021 18:27:16 +0800 Subject: small change to essetia fuel value --- .../Blocks/TEs/LargeEssentiaGenerator.java | 30 +++++++++++++--------- .../resources/assets/goodgenerator/lang/en_US.lang | 4 +-- .../resources/assets/goodgenerator/lang/zh_CN.lang | 4 +-- 3 files changed, 22 insertions(+), 16 deletions(-) diff --git a/src/main/java/GoodGenerator/Blocks/TEs/LargeEssentiaGenerator.java b/src/main/java/GoodGenerator/Blocks/TEs/LargeEssentiaGenerator.java index 0e36d78b0c..376ea8bfc6 100644 --- a/src/main/java/GoodGenerator/Blocks/TEs/LargeEssentiaGenerator.java +++ b/src/main/java/GoodGenerator/Blocks/TEs/LargeEssentiaGenerator.java @@ -37,7 +37,7 @@ import static com.github.technus.tectech.mechanics.structure.StructureUtility.*; public class LargeEssentiaGenerator extends GT_MetaTileEntity_MultiblockBase_EM implements TecTechEnabledMulti, IConstructable { private IStructureDefinition multiDefinition = null; - protected final int ENERGY_PER_ESSENTIA_DEFAULT = 512; + protected final int ENERGY_PER_ESSENTIA_DEFAULT = 8192; protected int mStableValue = 0; protected long mLeftEnergy; protected ArrayList mEssentiaHatch = new ArrayList<>(); @@ -244,16 +244,16 @@ public class LargeEssentiaGenerator extends GT_MetaTileEntity_MultiblockBase_EM } public long getPerAspectEnergy(Aspect aspect) { - if (aspect.equals(Aspect.ENERGY)) return 4500 * mStableValue / 25; - if (aspect.equals(Aspect.FIRE)) return 3000 * mStableValue / 25; - if (aspect.equals(Aspect.GREED)) return 13000 * mStableValue / 25; - if (aspect.equals(Aspect.AURA)) return 9000 * mStableValue / 25; - if (aspect.equals(Aspect.TREE)) return 2200 * mStableValue / 25; - if (aspect.equals(Aspect.AIR)) return 1300 * mStableValue / 25; - if (aspect.equals(Aspect.MAGIC)) return 5200 * mStableValue / 25; - if (aspect.equals(Aspect.MECHANISM)) return 4000 * mStableValue / 25; - if (aspect.equals(TC_Aspects.ELECTRUM.mAspect)) return 32768 * mStableValue / 25; - if (aspect.equals(TC_Aspects.RADIO.mAspect)) return 131072 * mStableValue / 25; + if (aspect.equals(Aspect.ENERGY)) return 45000 * mStableValue / 25; + if (aspect.equals(Aspect.FIRE)) return 30000 * mStableValue / 25; + if (aspect.equals(Aspect.GREED)) return 130000 * mStableValue / 25; + if (aspect.equals(Aspect.AURA)) return 120000 * mStableValue / 25; + if (aspect.equals(Aspect.TREE)) return 25000 * mStableValue / 25; + if (aspect.equals(Aspect.AIR)) return 13000 * mStableValue / 25; + if (aspect.equals(Aspect.MAGIC)) return 92000 * mStableValue / 25; + if (aspect.equals(Aspect.MECHANISM)) return 40000 * mStableValue / 25; + if (aspect.equals(TC_Aspects.ELECTRUM.mAspect)) return 131072 * mStableValue / 25; + if (aspect.equals(TC_Aspects.RADIO.mAspect)) return 524288 * mStableValue / 25; return ENERGY_PER_ESSENTIA_DEFAULT * mStableValue / 25; } @@ -272,6 +272,12 @@ public class LargeEssentiaGenerator extends GT_MetaTileEntity_MultiblockBase_EM aspects.remove(aspect); } } + if (EUt == 0 && aspects.size() != 0) { + EUt += getPerAspectEnergy(aspects.getAspects()[0]); + aspects.reduce(aspects.getAspects()[0], 1); + if (aspects.getAmount(aspects.getAspects()[0]) == 0) + aspects.remove(aspects.getAspects()[0]); + } } if (EUt <= voltageLimit) { @@ -280,7 +286,7 @@ public class LargeEssentiaGenerator extends GT_MetaTileEntity_MultiblockBase_EM mLeftEnergy = 0; } else { - while (EUVoltage * (EUAmp + 1) <= EUt) { + while (EUVoltage * (EUAmp + 1) <= EUt && EUAmp + 1 <= ampLimit) { EUAmp ++; } mLeftEnergy = EUt - (EUVoltage * EUAmp); diff --git a/src/main/resources/assets/goodgenerator/lang/en_US.lang b/src/main/resources/assets/goodgenerator/lang/en_US.lang index eff9b3543f..05165be943 100644 --- a/src/main/resources/assets/goodgenerator/lang/en_US.lang +++ b/src/main/resources/assets/goodgenerator/lang/en_US.lang @@ -187,6 +187,6 @@ achievement.FRF_Coil_3.0.desc=Pickup this item to see the recipe in NEI #Thaumcraft Research Context research.ESSENTIA_GENERATOR.page.0=You have found that Essentia contains much more power than you thought. Is there a way to generate electricity from these Essentia? -research.ESSENTIA_GENERATOR.page.1=Different Essentia contains different amount of energy.

Potentia: 4500EU

Ignis: 3000EU

Lucrum: 13000EU

Auram: 9000EU

Arbor: 2200EU

Aer: 1300EU

Praecantatio: 5200EU

Machina: 4000EU

Electrum: 32768EU

Radio: 131072EU -research.ESSENTIA_GENERATOR.page.2=The unlisted Aspects contain 512EU per Essentia. +research.ESSENTIA_GENERATOR.page.1=Different Essentia contains different amount of energy.

Potentia: 45000EU

Ignis: 30000EU

Lucrum: 130000EU

Auram: 120000EU

Arbor: 25000EU

Aer: 13000EU

Praecantatio: 92000EU

Machina: 40000EU

Electrum: 131072EU

Radio: 524288EU +research.ESSENTIA_GENERATOR.page.2=The unlisted Aspects contain 8192EU per Essentia. research.ESSENTIA_CELL.page.0=The Novice Cell has such low efficiency that you can't bear it. So you discovered a new way to make some better Cells

The Novice Cell only provides 1 StablePoint, the Adept one provides 2 StablePoint, and the Master one provides 5 StablePoint!

With higher StablePoint, the generator can create more electricity from pre Essential. \ No newline at end of file diff --git a/src/main/resources/assets/goodgenerator/lang/zh_CN.lang b/src/main/resources/assets/goodgenerator/lang/zh_CN.lang index 9e59aa2f5c..01bfe8162c 100644 --- a/src/main/resources/assets/goodgenerator/lang/zh_CN.lang +++ b/src/main/resources/assets/goodgenerator/lang/zh_CN.lang @@ -153,6 +153,6 @@ achievement.FRF_Coil_3.0=终极力场约束线圈 achievement.FRF_Coil_3.0.desc=捡起这个物品以在NEI内查看配方 research.ESSENTIA_GENERATOR.page.0=你发现源质内蕴含的能量超乎你的想象.有没有用这些源质发电的方法呢? -research.ESSENTIA_GENERATOR.page.1=不同的源质蕴含不等的能量.

Potentia: 4500EU

Ignis: 3000EU

Lucrum: 13000EU

Auram: 9000EU

Arbor: 2200EU

Aer: 1300EU

Praecantatio: 5200EU

Machina: 4000EU

Electrum: 32768EU

Radio: 131072EU -research.ESSENTIA_GENERATOR.page.2=未列出的源质,每点均含有512EU. +research.ESSENTIA_GENERATOR.page.1=不同的源质蕴含不等的能量.

Potentia: 45000EU

Ignis: 30000EU

Lucrum: 130000EU

Auram: 120000EU

Arbor: 25000EU

Aer: 13000EU

Praecantatio: 92000EU

Machina: 40000EU

Electrum: 131072EU

Radio: 524288EU +research.ESSENTIA_GENERATOR.page.2=未列出的源质,每点均含有8192EU. research.ESSENTIA_CELL.page.0=新手源质扩散单元的效率实在太低,你完全不能忍受. 所以你研发了一些新的源质扩散单元

新手源质扩散单元只提供1稳定点,学徒级的单元可以提供2稳定点,而大师级的单元可以提供足足5稳定点!

随着稳定点越高,每点源质在发电机中产生的能量就越多. -- cgit