Changed miner mechanics and rates.
This commit is contained in:
parent
98e214b873
commit
0334a19993
1 changed files with 25 additions and 28 deletions
|
@ -29,7 +29,7 @@ public class GT_MetaTileEntity_Miner extends GT_MetaTileEntity_BasicMachine {
|
|||
boolean isPickingPipes;
|
||||
boolean waitMiningPipe;
|
||||
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
|
||||
|
||||
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;
|
||||
}
|
||||
if (drillY == 0) {
|
||||
if (moveOneDown(aBaseMetaTileEntity)) {
|
||||
moveOneDown(aBaseMetaTileEntity);
|
||||
return;
|
||||
}
|
||||
}
|
||||
if (drillZ > RADIUS[mTier]) {
|
||||
if (moveOneDown(aBaseMetaTileEntity)) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
if (drillX > RADIUS[mTier]) {
|
||||
drillX = -RADIUS[mTier];
|
||||
drillZ++;
|
||||
moveOneDown(aBaseMetaTileEntity);
|
||||
return;
|
||||
}
|
||||
while (drillZ <= RADIUS[mTier]) {
|
||||
while (drillX <= RADIUS[mTier]) {
|
||||
Block block = aBaseMetaTileEntity.getBlockOffset(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 = -RADIUS[mTier];
|
||||
drillZ++;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue