diff options
author | Steelux <70096037+Steelux8@users.noreply.github.com> | 2022-06-22 23:03:19 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-23 00:03:19 +0200 |
commit | 7f3fe03e5697fa4245458fb0c480d4b736e33d54 (patch) | |
tree | 3dde5b640ef8ad10da5740f532bb1e48900a6858 /src/main/java/gtPlusPlus/xmod/gregtech/common | |
parent | ad14b7e78c9f9d6a21f99a25b2896f3749720d1b (diff) | |
download | GT5-Unofficial-7f3fe03e5697fa4245458fb0c480d4b736e33d54.tar.gz GT5-Unofficial-7f3fe03e5697fa4245458fb0c480d4b736e33d54.tar.bz2 GT5-Unofficial-7f3fe03e5697fa4245458fb0c480d4b736e33d54.zip |
Algae Farm Buffs and Tweaks (#213)
* Algae Farm Buffs and Tweaks
- Changed the Algae Farm cycles, so that the multi works much faster but outputs less algae, in a more similar fashion to other multiblocks;
- Tweaked some related recipes that were still too underpowered;
- Increased the cost of Compost per tier to reinforce the decision between using it, upgrading the Algae Farm or making more;
* Added Restriction to Gate Tiers Properly
- Changed the machine check so that all buses/hatches have to at least match the tier of the casings in the multi for it to form correctly, preventing tier skips by using more advanced machine casings that use early materials.
* Fixed Compost Consumption
* Fix Multi Forming When Hatches are Changed
Diffstat (limited to 'src/main/java/gtPlusPlus/xmod/gregtech/common')
-rw-r--r-- | src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/algae/GregtechMTE_AlgaePondBase.java | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/algae/GregtechMTE_AlgaePondBase.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/algae/GregtechMTE_AlgaePondBase.java index 39ce7c67b2..e31047d9a0 100644 --- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/algae/GregtechMTE_AlgaePondBase.java +++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/algae/GregtechMTE_AlgaePondBase.java @@ -46,6 +46,7 @@ public class GregtechMTE_AlgaePondBase extends GregtechMeta_MultiBlockBase<Gregt private int mCasing; private IStructureDefinition<GregtechMTE_AlgaePondBase> STRUCTURE_DEFINITION = null; private int checkMeta; + private int minTierOfHatch; private static final Class<?> cofhWater; static { @@ -79,7 +80,8 @@ public class GregtechMTE_AlgaePondBase extends GregtechMeta_MultiBlockBase<Gregt .addInfo("Provide compost to boost production by one tier") .addInfo("Does not require power or maintenance") .addInfo("All Machine Casings must be the same tier, this dictates machine speed.") - .addInfo("Fill Input Hatch with water.") + .addInfo("All Buses/Hatches must, at least, match the tier of the Casings") + .addInfo("Fill Input Hatch with Water to fill the inside of the multiblock.") .addPollutionAmount(getPollutionPerSecond(null)) .addSeparator() .beginStructureBlock(9, 3, 9, true) @@ -145,9 +147,10 @@ public class GregtechMTE_AlgaePondBase extends GregtechMeta_MultiBlockBase<Gregt mCasing = 0; mLevel = 0; checkMeta = 0; + minTierOfHatch = 100; if (checkPiece(mName, 4, 2, 0) && mCasing >= 64 && checkMeta > 0) { mLevel = checkMeta - 1; - return true; + return mLevel <= minTierOfHatch; } return false; } @@ -158,10 +161,13 @@ public class GregtechMTE_AlgaePondBase extends GregtechMeta_MultiBlockBase<Gregt } else { IMetaTileEntity aMetaTileEntity = aTileEntity.getMetaTileEntity(); if (aMetaTileEntity instanceof GT_MetaTileEntity_Hatch_InputBus){ + minTierOfHatch = Math.min(minTierOfHatch, ((GT_MetaTileEntity_Hatch_InputBus) aMetaTileEntity).mTier); return addToMachineList(aTileEntity, aBaseCasingIndex); } else if (aMetaTileEntity instanceof GT_MetaTileEntity_Hatch_OutputBus) { + minTierOfHatch = Math.min(minTierOfHatch, ((GT_MetaTileEntity_Hatch_OutputBus) aMetaTileEntity).mTier); return addToMachineList(aTileEntity, aBaseCasingIndex); }else if (aMetaTileEntity instanceof GT_MetaTileEntity_Hatch_Input) { + minTierOfHatch = Math.min(minTierOfHatch, ((GT_MetaTileEntity_Hatch_Input) aMetaTileEntity).mTier); return addToMachineList(aTileEntity, aBaseCasingIndex); } } |