aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorxSkewer <43712386+xSkewer@users.noreply.github.com>2022-07-02 21:50:00 -0400
committerGitHub <noreply@github.com>2022-07-03 08:50:00 +0700
commit864f4183d5f3e600e531e0d4afecdf4b265819b3 (patch)
treed930416b9c6369c5114b23febc1675af83a842da /src
parent8af0b55fccc75a6c2f1d520cdebf19ec80036f85 (diff)
downloadGT5-Unofficial-864f4183d5f3e600e531e0d4afecdf4b265819b3.tar.gz
GT5-Unofficial-864f4183d5f3e600e531e0d4afecdf4b265819b3.tar.bz2
GT5-Unofficial-864f4183d5f3e600e531e0d4afecdf4b265819b3.zip
Allow PAs to do UEV+ recipes (#1111)
Diffstat (limited to 'src')
-rw-r--r--src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_ProcessingArray.java40
1 files changed, 33 insertions, 7 deletions
diff --git a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_ProcessingArray.java b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_ProcessingArray.java
index 34cef4315c..fde9c184cc 100644
--- a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_ProcessingArray.java
+++ b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_ProcessingArray.java
@@ -48,6 +48,7 @@ public class GT_MetaTileEntity_ProcessingArray extends GT_MetaTileEntity_CubicMu
private int tTier = 0;
private int mMult = 0;
private boolean mSeparate = false;
+ private boolean downtierUEV = true;
private String mMachineName = "";
public GT_MetaTileEntity_ProcessingArray(int aID, String aName, String aNameRegional) {
@@ -71,7 +72,7 @@ public class GT_MetaTileEntity_ProcessingArray extends GT_MetaTileEntity_CubicMu
.addInfo("Place up to 64 singleblock GT machines into the controller")
.addInfo("Note that you still need to supply power to them all")
.addInfo("Use a screwdriver to enable separate input busses")
- .addInfo("Maximal overclockedness of machines inside: Tier 9")
+ .addInfo("Use a wire cutter to disable UEV+ downtiering")
.addInfo("Doesn't work on certain machines, deal with it")
.addInfo("Use it if you hate GT++, or want even more speed later on")
.addSeparator()
@@ -201,19 +202,34 @@ public class GT_MetaTileEntity_ProcessingArray extends GT_MetaTileEntity_CubicMu
mMult = 0;//*1
break;
case 10:
- tTier = 9;
- mMult = 2;//u need 4x less machines and they will use 4x less power
+ if (downtierUEV) {
+ tTier = 9;
+ mMult = 2;//u need 4x less machines and they will use 4x less power
+ } else {
+ tTier = machineTier;
+ mMult = 0;//*1
+ }
break;
case 11:
- tTier = 9;
- mMult = 4;//u need 16x less machines and they will use 16x less power
+ if (downtierUEV) {
+ tTier = 9;
+ mMult = 4;//u need 16x less machines and they will use 16x less power
+ } else {
+ tTier = machineTier;
+ mMult = 0;//*1
+ }
break;
case 12:
case 13:
case 14:
case 15:
- tTier = 9;
- mMult = 6;//u need 64x less machines and they will use 64x less power
+ if (downtierUEV) {
+ tTier = 9;
+ mMult = 6;//u need 64x less machines and they will use 64x less power
+ } else {
+ tTier = machineTier;
+ mMult = 0;//*1
+ }
break;
}
}
@@ -389,12 +405,14 @@ public class GT_MetaTileEntity_ProcessingArray extends GT_MetaTileEntity_CubicMu
public void saveNBTData(NBTTagCompound aNBT) {
super.saveNBTData(aNBT);
aNBT.setBoolean("mSeparate", mSeparate);
+ aNBT.setBoolean("downtierUEV", downtierUEV);
}
@Override
public void loadNBTData(final NBTTagCompound aNBT) {
super.loadNBTData(aNBT);
mSeparate = aNBT.getBoolean("mSeparate");
+ downtierUEV = aNBT.getBoolean("downtierUEV");
}
@Override
@@ -409,6 +427,14 @@ public class GT_MetaTileEntity_ProcessingArray extends GT_MetaTileEntity_CubicMu
}
@Override
+ public boolean onWireCutterRightClick(byte aSide, byte aWrenchingSide, EntityPlayer aPlayer, float aX, float aY, float aZ) {
+ downtierUEV = !downtierUEV;
+ mLastRecipe = null; // clears last recipe
+ GT_Utility.sendChatToPlayer(aPlayer, "Treat UEV+ machines as multiple UHV " + downtierUEV);
+ return true;
+ }
+
+ @Override
public int getMaxEfficiency(ItemStack aStack) {
return 10000;
}