Added separate climate for the Wasteland

This commit is contained in:
Forstride 2016-02-03 23:42:05 -05:00
parent 35f89a760a
commit c56aaebddc
2 changed files with 7 additions and 6 deletions

View file

@ -47,7 +47,7 @@ public class BiomeGenWasteland extends BOPBiome
public BiomeGenWasteland() public BiomeGenWasteland()
{ {
// terrain // terrain
this.terrainSettings.avgHeight(64).heightVariation(0,7); this.terrainSettings.avgHeight(66).heightVariation(1,5);
this.setColor(0x5A5440); this.setColor(0x5A5440);
this.setTemperatureRainfall(0.9F, 0.05F); this.setTemperatureRainfall(0.9F, 0.05F);
@ -62,7 +62,7 @@ public class BiomeGenWasteland extends BOPBiome
this.canGenerateVillages = false; this.canGenerateVillages = false;
this.canSpawnInBiome = false; this.canSpawnInBiome = false;
this.addWeight(BOPClimates.HOT_DESERT, 2); this.addWeight(BOPClimates.WASTELAND, 50);
this.spawnableCreatureList.clear(); this.spawnableCreatureList.clear();
this.spawnableWaterCreatureList.clear(); this.spawnableWaterCreatureList.clear();
@ -84,8 +84,7 @@ public class BiomeGenWasteland extends BOPBiome
flowerGenerator.add("wilted_lily", 1, (new GeneratorFlora.Builder()).with(BOPFlowers.WILTED_LILY).create()); flowerGenerator.add("wilted_lily", 1, (new GeneratorFlora.Builder()).with(BOPFlowers.WILTED_LILY).create());
// lakes // lakes
this.addGenerator("lakes", GeneratorStage.SAND, (new GeneratorLakes.Builder()).amountPerChunk(0.1F).waterLakeForBiome(this).create()); this.addGenerator("poison_lakes", GeneratorStage.SAND, (new GeneratorLakes.Builder()).amountPerChunk(0.05F).waterLakeForBiome(this).liquid(BOPBlocks.poison).frozenLiquid((IBlockState)null).create());
this.addGenerator("poison_lakes", GeneratorStage.SAND, (new GeneratorLakes.Builder()).amountPerChunk(0.1F).waterLakeForBiome(this).liquid(BOPBlocks.poison).frozenLiquid((IBlockState)null).create());
// spikes // spikes
//this.addGenerator("spikes", GeneratorStage.PRE, (new GeneratorSpike.Builder()).amountPerChunk(0.2F).create()); //this.addGenerator("spikes", GeneratorStage.PRE, (new GeneratorSpike.Builder()).amountPerChunk(0.2F).create());

View file

@ -21,7 +21,8 @@ public enum BOPClimates {
TROPICAL (BiomeType.DESERT), TROPICAL (BiomeType.DESERT),
MEDITERANEAN (BiomeType.WARM), MEDITERANEAN (BiomeType.WARM),
SAVANNA (BiomeType.DESERT), SAVANNA (BiomeType.DESERT),
HOT_DESERT (BiomeType.DESERT); HOT_DESERT (BiomeType.DESERT),
WASTELAND (BiomeType.DESERT);
public final BiomeType biomeType; public final BiomeType biomeType;
private int totalLandBiomesWeight; private int totalLandBiomesWeight;
@ -88,6 +89,7 @@ public enum BOPClimates {
BOPClimates.MEDITERANEAN.addLandBiome(5, BiomeGenBase.plains); BOPClimates.MEDITERANEAN.addLandBiome(5, BiomeGenBase.plains);
BOPClimates.SAVANNA.addLandBiome(20, BiomeGenBase.savanna); BOPClimates.SAVANNA.addLandBiome(20, BiomeGenBase.savanna);
BOPClimates.HOT_DESERT.addLandBiome(30, BiomeGenBase.desert).addLandBiome(10, BiomeGenBase.mesaPlateau); BOPClimates.HOT_DESERT.addLandBiome(30, BiomeGenBase.desert).addLandBiome(10, BiomeGenBase.mesaPlateau);
BOPClimates.WASTELAND.addLandBiome(1, BiomeGenBase.desert);
} }
@ -111,7 +113,7 @@ public enum BOPClimates {
WET_TEMPERATE, WET_TEMPERATE, WET_TEMPERATE, WARM_TEMPERATE, WARM_TEMPERATE, WARM_TEMPERATE, WARM_TEMPERATE, WARM_TEMPERATE, WARM_TEMPERATE, DRY_TEMPERATE, DRY_TEMPERATE, SAVANNA, // 5 WET_TEMPERATE, WET_TEMPERATE, WET_TEMPERATE, WARM_TEMPERATE, WARM_TEMPERATE, WARM_TEMPERATE, WARM_TEMPERATE, WARM_TEMPERATE, WARM_TEMPERATE, DRY_TEMPERATE, DRY_TEMPERATE, SAVANNA, // 5
HOT_SWAMP, HOT_SWAMP, HOT_SWAMP, WET_TEMPERATE, WARM_TEMPERATE, WARM_TEMPERATE, WARM_TEMPERATE, MEDITERANEAN, MEDITERANEAN, SAVANNA, SAVANNA, HOT_DESERT, // 6 HOT_SWAMP, HOT_SWAMP, HOT_SWAMP, WET_TEMPERATE, WARM_TEMPERATE, WARM_TEMPERATE, WARM_TEMPERATE, MEDITERANEAN, MEDITERANEAN, SAVANNA, SAVANNA, HOT_DESERT, // 6
TROPICAL, TROPICAL, HOT_SWAMP, HOT_SWAMP, WET_TEMPERATE, WARM_TEMPERATE, MEDITERANEAN, MEDITERANEAN, SAVANNA, HOT_DESERT, HOT_DESERT, HOT_DESERT, // 7 TROPICAL, TROPICAL, HOT_SWAMP, HOT_SWAMP, WET_TEMPERATE, WARM_TEMPERATE, MEDITERANEAN, MEDITERANEAN, SAVANNA, HOT_DESERT, HOT_DESERT, HOT_DESERT, // 7
TROPICAL, TROPICAL, TROPICAL, HOT_SWAMP, HOT_SWAMP, MEDITERANEAN, MEDITERANEAN, SAVANNA, SAVANNA, HOT_DESERT, HOT_DESERT, HOT_DESERT // 8 TROPICAL, TROPICAL, TROPICAL, HOT_SWAMP, HOT_SWAMP, MEDITERANEAN, MEDITERANEAN, SAVANNA, SAVANNA, HOT_DESERT, HOT_DESERT, WASTELAND // 8
}; };
public static int[] getClimateMappingInts() public static int[] getClimateMappingInts()