small pollution rebalancings
This commit is contained in:
parent
caa4b8a1a7
commit
6287e1e67f
2 changed files with 8 additions and 9 deletions
|
@ -1,7 +1,7 @@
|
|||
minecraft.version=1.7.10
|
||||
forge.version=10.13.4.1566-1.7.10
|
||||
|
||||
gt.version=5.09.30
|
||||
gt.version=5.09.31pre1
|
||||
|
||||
ae2.version=rv2-beta-33
|
||||
applecore.version=1.7.10-1.2.1+107.59407
|
||||
|
|
|
@ -100,11 +100,11 @@ public class GT_Pollution {
|
|||
//get pollution
|
||||
int tPollution = chunkData.get(actualPos)[GTPOLLUTION];
|
||||
//remove some
|
||||
tPollution = (int)(0.9945f*tPollution);
|
||||
//tPollution -= 2000;//This does not really matter...
|
||||
tPollution = (int)(0.99f*tPollution);
|
||||
tPollution -= 2000;
|
||||
|
||||
if(tPollution<=0) tPollution = 0;//SANity check
|
||||
else if(tPollution>400000){//Spread Pollution
|
||||
else if(tPollution>50000){//Spread Pollution
|
||||
|
||||
ChunkCoordIntPair[] tNeighbors = new ChunkCoordIntPair[4];//array is faster
|
||||
tNeighbors[0]=(new ChunkCoordIntPair(actualPos.chunkXPos+1,actualPos.chunkZPos));
|
||||
|
@ -117,8 +117,8 @@ public class GT_Pollution {
|
|||
int neighborPollution = chunkData.get(neighborPosition)[GTPOLLUTION];
|
||||
if(neighborPollution*6 < tPollution*5){//METHEMATICS...
|
||||
int tDiff = tPollution - neighborPollution;
|
||||
tDiff = tDiff/20;
|
||||
neighborPollution = GT_Utility.safeInt((long)neighborPollution+tDiff);//tNPol += tDiff;
|
||||
tDiff = tDiff/10;
|
||||
neighborPollution += tDiff;
|
||||
tPollution -= tDiff;
|
||||
chunkData.get(neighborPosition)[GTPOLLUTION] = neighborPollution;
|
||||
}
|
||||
|
@ -126,7 +126,6 @@ public class GT_Pollution {
|
|||
|
||||
|
||||
//Create Pollution effects
|
||||
//Smog filter TODO
|
||||
if(tPollution > GT_Mod.gregtechproxy.mPollutionSmogLimit) {
|
||||
AxisAlignedBB chunk = AxisAlignedBB.getBoundingBox(actualPos.chunkXPos << 4, 0, actualPos.chunkZPos << 4, (actualPos.chunkXPos << 4) + 16, 256, (actualPos.chunkZPos << 4) + 16);
|
||||
List<EntityLivingBase> tEntitys = aWorld.getEntitiesWithinAABB(EntityLivingBase.class, chunk);
|
||||
|
|
Loading…
Reference in a new issue