Changed miner mechanics and rates.

This commit is contained in:
Dimach 2017-07-06 13:42:45 +03:00
parent 98e214b873
commit 0334a19993

View file

@ -29,7 +29,7 @@ public class GT_MetaTileEntity_Miner extends GT_MetaTileEntity_BasicMachine {
boolean isPickingPipes; boolean isPickingPipes;
boolean waitMiningPipe; boolean waitMiningPipe;
final static int[] RADIUS = new int[]{8, 8, 24, 40}; //Miner radius per tier final static int[] RADIUS = new int[]{8, 8, 24, 40}; //Miner radius per tier
final static int[] SPEED = new int[]{20, 20, 5, 2}; //Miner cycle time per tier final static int[] SPEED = new int[]{200, 200, 100, 50}; //Miner cycle time per tier
final static int[] ENERGY = new int[]{24, 24, 96, 384}; //Miner energy consumption per tier final static int[] ENERGY = new int[]{24, 24, 96, 384}; //Miner energy consumption per tier
public GT_MetaTileEntity_Miner(int aID, String aName, String aNameRegional, int aTier) { public GT_MetaTileEntity_Miner(int aID, String aName, String aNameRegional, int aTier) {
@ -99,20 +99,14 @@ public class GT_MetaTileEntity_Miner extends GT_MetaTileEntity_BasicMachine {
return; return;
} }
if (drillY == 0) { if (drillY == 0) {
if (moveOneDown(aBaseMetaTileEntity)) { moveOneDown(aBaseMetaTileEntity);
return; return;
} }
}
if (drillZ > RADIUS[mTier]) { if (drillZ > RADIUS[mTier]) {
if (moveOneDown(aBaseMetaTileEntity)) { moveOneDown(aBaseMetaTileEntity);
return;
}
}
if (drillX > RADIUS[mTier]) {
drillX = -RADIUS[mTier];
drillZ++;
return; return;
} }
while (drillZ <= RADIUS[mTier]) {
while (drillX <= RADIUS[mTier]) { while (drillX <= RADIUS[mTier]) {
Block block = aBaseMetaTileEntity.getBlockOffset(drillX, drillY, drillZ); Block block = aBaseMetaTileEntity.getBlockOffset(drillX, drillY, drillZ);
int blockMeta = aBaseMetaTileEntity.getMetaIDOffset(drillX, drillY, drillZ); int blockMeta = aBaseMetaTileEntity.getMetaIDOffset(drillX, drillY, drillZ);
@ -131,6 +125,9 @@ public class GT_MetaTileEntity_Miner extends GT_MetaTileEntity_BasicMachine {
} }
drillX++; drillX++;
} }
drillX = -RADIUS[mTier];
drillZ++;
}
} }
} }
} }