Make some empty wells and nerf oildrill more
This commit is contained in:
parent
d55d3f16d4
commit
b6775d3601
2 changed files with 4 additions and 2 deletions
|
@ -1568,7 +1568,9 @@ public class GT_Utility {
|
||||||
private static FluidStack setUndergroundOil(World aWorld, int aX, int aZ,ChunkPosition tPos,int[] tInts) {
|
private static FluidStack setUndergroundOil(World aWorld, int aX, int aZ,ChunkPosition tPos,int[] tInts) {
|
||||||
XSTR tRandom = new XSTR(aWorld.getSeed() ^ ((long)(aX / 6) + (long)(7000 * (aZ / 6))));
|
XSTR tRandom = new XSTR(aWorld.getSeed() ^ ((long)(aX / 6) + (long)(7000 * (aZ / 6))));
|
||||||
int type=tRandom.nextInt(5);//type slowly changes
|
int type=tRandom.nextInt(5);//type slowly changes
|
||||||
int amnt = (int)(Math.ceil(Math.pow(2D+(double)(tRandom.nextInt(48))+(new XSTR()).nextDouble(), 5D)*0.7D));
|
int amnt = tRandom.nextInt(48);
|
||||||
|
if (amnt<13)amnt=0;
|
||||||
|
else amnt = ((int)(Math.ceil(Math.pow(2D+(double)(amnt)+(new XSTR()).nextDouble(), 5D)*0.7D)));
|
||||||
//roughly uses 28 bits
|
//roughly uses 28 bits
|
||||||
FluidStack tFluidStack;
|
FluidStack tFluidStack;
|
||||||
switch (type) {//0 is old system
|
switch (type) {//0 is old system
|
||||||
|
|
|
@ -98,7 +98,7 @@ public class GT_MetaTileEntity_OilDrill extends GT_MetaTileEntity_MultiBlockBase
|
||||||
} else {
|
} else {
|
||||||
int minExtraction= (int)Math.pow((float)GT_Utility.getTier(getMaxInputVoltage()),3F);//tier^3
|
int minExtraction= (int)Math.pow((float)GT_Utility.getTier(getMaxInputVoltage()),3F);//tier^3
|
||||||
if(tFluid.amount>minExtraction)
|
if(tFluid.amount>minExtraction)
|
||||||
tFluid.amount= Math.max(minExtraction,Math.min(tFluid.amount/50000,1000));
|
tFluid.amount= Math.max(minExtraction,Math.min(tFluid.amount/50000,500));
|
||||||
extractionSpeed=tFluid.amount;
|
extractionSpeed=tFluid.amount;
|
||||||
GT_Utility.undergroundOil(getBaseMetaTileEntity().getWorld(), getBaseMetaTileEntity().getXCoord()>>4, getBaseMetaTileEntity().getZCoord()>>4,true,extractionSpeed);
|
GT_Utility.undergroundOil(getBaseMetaTileEntity().getWorld(), getBaseMetaTileEntity().getXCoord()>>4, getBaseMetaTileEntity().getZCoord()>>4,true,extractionSpeed);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue