Added quartzOresClusterAmount and fixed spaces in Metorite Gen Config Names.

This commit is contained in:
AlgorithmX2 2014-08-15 11:04:55 -05:00
parent 809495c573
commit 189c86581a
2 changed files with 5 additions and 3 deletions

View file

@ -48,6 +48,7 @@ public class AEConfig extends Configuration implements IConfigureableObject, ICo
public float spawnChargedChance = 0.92f;
public int quartzOresPerCluster = 4;
public int quartzOresClusterAmount = 15;
public int chargedChange = 4;
public int minMeteoriteDistance = 707;
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 ));
minMeteoriteDistance = get( "worldGen", "minMeteoriteDistance", minMeteoriteDistance ).getInt( minMeteoriteDistance );
metoriteClusterChance = get( "worldGen", "metoriteClusterChance ", metoriteClusterChance ).getDouble( metoriteClusterChance );
metoriteSpawnChance = get( "worldGen", "metoriteSpawnChance ", metoriteSpawnChance ).getDouble( metoriteSpawnChance );
metoriteClusterChance = get( "worldGen", "metoriteClusterChance", metoriteClusterChance ).getDouble( metoriteClusterChance );
metoriteSpawnChance = get( "worldGen", "metoriteSpawnChance", metoriteSpawnChance ).getDouble( metoriteSpawnChance );
quartzOresPerCluster = get( "worldGen", "quartzOresPerCluster", quartzOresPerCluster ).getInt( quartzOresPerCluster );
quartzOresClusterAmount = get( "worldGen", "quartzOresClusterAmount", quartzOresClusterAmount ).getInt( quartzOresClusterAmount );
minMeteoriteDistanceSq = minMeteoriteDistance * minMeteoriteDistance;

View file

@ -40,7 +40,7 @@ final public class QuartzWorldGen implements IWorldGenerator
if ( oreNormal == null || oreCharged == null )
return;
double oreDepthMultiplier = 15 * sealevel / 64;
double oreDepthMultiplier = AEConfig.instance.quartzOresClusterAmount * sealevel / 64;
int scale = (int) Math.round( r.nextGaussian() * Math.sqrt( oreDepthMultiplier ) + oreDepthMultiplier );
for (int x = 0; x < (r.nextBoolean() ? scale * 2 : scale) / 2; ++x)