Add Cluster Chance to Config, also lower it slightly.
This commit is contained in:
@@ -123,6 +123,8 @@ public class AEConfig extends Configuration implements IConfigureableObject, ICo
|
|||||||
public boolean updateable = false;
|
public boolean updateable = false;
|
||||||
final private File myPath;
|
final private File myPath;
|
||||||
|
|
||||||
|
public double metoriteClusterChance = 0.1f;
|
||||||
|
|
||||||
@SubscribeEvent
|
@SubscribeEvent
|
||||||
public void onConfigChanged(ConfigChangedEvent.OnConfigChangedEvent eventArgs)
|
public void onConfigChanged(ConfigChangedEvent.OnConfigChangedEvent eventArgs)
|
||||||
{
|
{
|
||||||
@@ -224,6 +226,7 @@ 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 );
|
||||||
quartzOresPerCluster = get( "worldGen", "quartzOresPerCluster", quartzOresPerCluster ).getInt( quartzOresPerCluster );
|
quartzOresPerCluster = get( "worldGen", "quartzOresPerCluster", quartzOresPerCluster ).getInt( quartzOresPerCluster );
|
||||||
|
|
||||||
minMeteoriteDistanceSq = minMeteoriteDistance * minMeteoriteDistance;
|
minMeteoriteDistanceSq = minMeteoriteDistance * minMeteoriteDistance;
|
||||||
|
|||||||
@@ -88,7 +88,7 @@ final public class MeteoriteWorldGen implements IWorldGenerator
|
|||||||
minSqDist = Math.min( minSqDist, mp.getSqDistance( x, z ) );
|
minSqDist = Math.min( minSqDist, mp.getSqDistance( x, z ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
boolean isCluster = (minSqDist < 30 * 30) && Platform.getRandomFloat() > 0.8;
|
boolean isCluster = (minSqDist < 30 * 30) && Platform.getRandomFloat() < AEConfig.instance.metoriteClusterChance;
|
||||||
|
|
||||||
if ( minSqDist > AEConfig.instance.minMeteoriteDistanceSq || isCluster )
|
if ( minSqDist > AEConfig.instance.minMeteoriteDistanceSq || isCluster )
|
||||||
tryMetroite( w, depth, x, z );
|
tryMetroite( w, depth, x, z );
|
||||||
|
|||||||
Reference in New Issue
Block a user