Added quartzOresClusterAmount and fixed spaces in Metorite Gen Config Names.
This commit is contained in:
+4
-2
@@ -48,6 +48,7 @@ public class AEConfig extends Configuration implements IConfigureableObject, ICo
|
|||||||
|
|
||||||
public float spawnChargedChance = 0.92f;
|
public float spawnChargedChance = 0.92f;
|
||||||
public int quartzOresPerCluster = 4;
|
public int quartzOresPerCluster = 4;
|
||||||
|
public int quartzOresClusterAmount = 15;
|
||||||
public int chargedChange = 4;
|
public int chargedChange = 4;
|
||||||
public int minMeteoriteDistance = 707;
|
public int minMeteoriteDistance = 707;
|
||||||
public int minMeteoriteDistanceSq = minMeteoriteDistance * minMeteoriteDistance;
|
public int minMeteoriteDistanceSq = minMeteoriteDistance * minMeteoriteDistance;
|
||||||
@@ -227,9 +228,10 @@ public class AEConfig extends Configuration implements IConfigureableObject, ICo
|
|||||||
|
|
||||||
spawnChargedChance = (float) (1.0 - get( "worldGen", "spawnChargedChance", 1.0 - spawnChargedChance ).getDouble( 1.0 - spawnChargedChance ));
|
spawnChargedChance = (float) (1.0 - get( "worldGen", "spawnChargedChance", 1.0 - spawnChargedChance ).getDouble( 1.0 - spawnChargedChance ));
|
||||||
minMeteoriteDistance = get( "worldGen", "minMeteoriteDistance", minMeteoriteDistance ).getInt( minMeteoriteDistance );
|
minMeteoriteDistance = get( "worldGen", "minMeteoriteDistance", minMeteoriteDistance ).getInt( minMeteoriteDistance );
|
||||||
metoriteClusterChance = get( "worldGen", "metoriteClusterChance ", metoriteClusterChance ).getDouble( metoriteClusterChance );
|
metoriteClusterChance = get( "worldGen", "metoriteClusterChance", metoriteClusterChance ).getDouble( metoriteClusterChance );
|
||||||
metoriteSpawnChance = get( "worldGen", "metoriteSpawnChance ", metoriteSpawnChance ).getDouble( metoriteSpawnChance );
|
metoriteSpawnChance = get( "worldGen", "metoriteSpawnChance", metoriteSpawnChance ).getDouble( metoriteSpawnChance );
|
||||||
quartzOresPerCluster = get( "worldGen", "quartzOresPerCluster", quartzOresPerCluster ).getInt( quartzOresPerCluster );
|
quartzOresPerCluster = get( "worldGen", "quartzOresPerCluster", quartzOresPerCluster ).getInt( quartzOresPerCluster );
|
||||||
|
quartzOresClusterAmount = get( "worldGen", "quartzOresClusterAmount", quartzOresClusterAmount ).getInt( quartzOresClusterAmount );
|
||||||
|
|
||||||
minMeteoriteDistanceSq = minMeteoriteDistance * minMeteoriteDistance;
|
minMeteoriteDistanceSq = minMeteoriteDistance * minMeteoriteDistance;
|
||||||
|
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ final public class QuartzWorldGen implements IWorldGenerator
|
|||||||
if ( oreNormal == null || oreCharged == null )
|
if ( oreNormal == null || oreCharged == null )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
double oreDepthMultiplier = 15 * sealevel / 64;
|
double oreDepthMultiplier = AEConfig.instance.quartzOresClusterAmount * sealevel / 64;
|
||||||
int scale = (int) Math.round( r.nextGaussian() * Math.sqrt( oreDepthMultiplier ) + oreDepthMultiplier );
|
int scale = (int) Math.round( r.nextGaussian() * Math.sqrt( oreDepthMultiplier ) + oreDepthMultiplier );
|
||||||
|
|
||||||
for (int x = 0; x < (r.nextBoolean() ? scale * 2 : scale) / 2; ++x)
|
for (int x = 0; x < (r.nextBoolean() ? scale * 2 : scale) / 2; ++x)
|
||||||
|
|||||||
Reference in New Issue
Block a user