Tweaks to hivegen; still needs more work.

Changing references to "biofuel" to "ethanol"
This commit is contained in:
MysteriousAges committed 2013-06-10 01:01:30 -07:00
1 parent 91777b1960
commit c2c21301a6
9 files changed
+28 -29

No files matched your search

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.0 KiB

After

Width:  |  Height:  |  Size: 4.0 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

@@ -519,13 +519,14 @@ public class BeeGenomeManager
genome[EnumBeeChromosome.EFFECT.ordinal()] = Allele.getBaseAllele("effectAggressive");
genome[EnumBeeChromosome.NOCTURNAL.ordinal()] = Allele.getBaseAllele("boolTrue");
genome[EnumBeeChromosome.FLOWER_PROVIDER.ordinal()] = Allele.getBaseAllele("flowersEnd");
genome[EnumBeeChromosome.CAVE_DWELLING.ordinal()] = Allele.getBaseAllele("boolTrue");
return genome;
}
public static IAllele[] getTemplateOblivion()
{
IAllele[] genome = getTemplateModBase();
IAllele[] genome = getTemplateBaseExtrinsic();
genome[EnumBeeChromosome.SPECIES.ordinal()] = BeeSpecies.OBLIVION;
genome[EnumBeeChromosome.FERTILITY.ordinal()] = Allele.getBaseAllele("fertilityMaximum");
@@ -535,7 +536,7 @@ public class BeeGenomeManager
public static IAllele[] getTemplateNameless()
{
IAllele[] genome = getTemplateModBase();
IAllele[] genome = getTemplateBaseExtrinsic();
genome[EnumBeeChromosome.SPECIES.ordinal()] = BeeSpecies.NAMELESS;
genome[EnumBeeChromosome.FERTILITY.ordinal()] = Allele.getBaseAllele("fertilityHigh");
@@ -546,7 +547,7 @@ public class BeeGenomeManager
public static IAllele[] getTemplateAbandoned()
{
IAllele[] genome = getTemplateModBase();
IAllele[] genome = getTemplateBaseExtrinsic();
genome[EnumBeeChromosome.SPECIES.ordinal()] = BeeSpecies.ABANDONED;
genome[EnumBeeChromosome.HUMIDITY_TOLERANCE.ordinal()] = Allele.getBaseAllele("toleranceBoth1");
@@ -560,7 +561,7 @@ public class BeeGenomeManager
public static IAllele[] getTemplateForlorn()
{
IAllele[] genome = getTemplateModBase();
IAllele[] genome = getTemplateBaseExtrinsic();
genome[EnumBeeChromosome.SPECIES.ordinal()] = BeeSpecies.FORLORN;
genome[EnumBeeChromosome.FERTILITY.ordinal()] = Allele.getBaseAllele("fertilityLow");
@@ -574,7 +575,7 @@ public class BeeGenomeManager
public static IAllele[] getTemplateDraconic()
{
IAllele[] genome = getTemplateModBase();
IAllele[] genome = getTemplateBaseExtrinsic();
genome[EnumBeeChromosome.SPECIES.ordinal()] = BeeSpecies.DRACONIC;
genome[EnumBeeChromosome.HUMIDITY_TOLERANCE.ordinal()] = Allele.getBaseAllele("toleranceBoth1");
+4 -2
View File
@@ -400,10 +400,12 @@ public enum BeeSpecies implements IAlleleBeeSpecies, IIconProvider
AWARE.addProduct(Config.combs.getStackForType(CombType.INTELLECT), 18)
.setGenome(BeeGenomeManager.getTemplateAware())
.register();
SPIRIT.addProduct(Config.combs.getStackForType(CombType.SOUL), 13)
SPIRIT.addProduct(Config.combs.getStackForType(CombType.INTELLECT), 22)
.addSpecialty(Config.combs.getStackForType(CombType.SOUL), 16)
.setGenome(BeeGenomeManager.getTemplateSpirit())
.register();
SOUL.addProduct(Config.combs.getStackForType(CombType.SOUL), 24)
SOUL.addProduct(Config.combs.getStackForType(CombType.INTELLECT), 28)
.addSpecialty(Config.combs.getStackForType(CombType.SOUL), 20)
.setGenome(BeeGenomeManager.getTemplateSoul())
.register();
@@ -221,7 +221,7 @@ public enum HiveType
}
break;
case UNUSUAL:
for (int i = 0; i < 2; ++i)
for (int i = 0; i < 3; ++i)
{
int coordX = chunkX * 16 + random.nextInt(16);
int coordZ = chunkZ * 16 + random.nextInt(16);
@@ -18,7 +18,7 @@ public enum LiquidType
// Forestry
BIOMASS("biomass"),
BIOFUEL("biofuel"),
ETHANOL("ethanol"),
// Buildcraft
OIL("Oil"),
@@ -13,6 +13,7 @@ public enum ResourceType
DRAGON_DUST("dragonDust", true),
DRAGON_CHUNK("dragonChunk", true),
ESSENCE_FALSE_LIFE("essenceFalseLife", true),
ESSENCE_SHALLOW_GRAVE("essenceShallowGrave", true),
// Dummy items for Thaumanomicon research icons.
// These won't ever actually exist in-game, and so
@@ -18,7 +18,7 @@ public class FeatureHive
private static FeatureOreVein glowstoneGen;
private static FeatureOreVein endStoneGen;
private static boolean logSpawns = true;
private static boolean logSpawns = false;
public static void initialize()
{
@@ -38,12 +38,7 @@ public class FeatureHive
public static boolean generateHiveCurious(World world, Random random, int coordX, int coordZ, boolean initialGen)
{
BiomeGenBase biome = world.getBiomeGenForCoords(coordX, coordZ);
int min = (int)(biome.minHeight * 64 + 64);
int max = (int)(biome.maxHeight * 64);
// sanity
max = (max > 1) ? max : 1;
int coordY = min + random.nextInt(max + 5);
int coordY = getHeight(world, random, coordX, coordZ);
boolean doSpawn = false;
if (world.isAirBlock(coordX, coordY - 1, coordZ) && world.isAirBlock(coordX, coordY, coordZ) &&
@@ -59,12 +54,7 @@ public class FeatureHive
public static boolean generateHiveUnusual(World world, Random random, int coordX, int coordZ, boolean initialGen)
{
BiomeGenBase biome = world.getBiomeGenForCoords(coordX, coordZ);
int min = (int)(biome.minHeight * 64 + 64);
int max = (int)(biome.maxHeight * 64);
// sanity
max = (max > 1) ? max : 1;
int coordY = min + random.nextInt(max);
int coordY = getHeight(world, random, coordX, coordZ);
boolean doSpawn = false;
if (world.isAirBlock(coordX, coordY + 1, coordZ) && world.isAirBlock(coordX, coordY, coordZ) &&
@@ -84,13 +74,7 @@ public class FeatureHive
public static boolean generateHiveResonant(World world, Random random, int coordX, int coordZ, boolean initialGen)
{
BiomeGenBase biome = world.getBiomeGenForCoords(coordX, coordZ);
int min = (int)(biome.minHeight * 64 + 62);
int max = (int)(biome.maxHeight * 64);
// sanity
max = (max > 1) ? max : 1;
int coordY = min + random.nextInt(max);
int coordY = getHeight(world, random, coordX, coordZ);
boolean doSpawn = false;
if (world.isAirBlock(coordX, coordY + 1, coordZ) &&
(world.isAirBlock(coordX, coordY, coordZ) || world.getBlockId(coordX, coordY, coordZ) == Block.tallGrass.blockID) &&
@@ -264,6 +248,17 @@ public class FeatureHive
return doSpawn;
}
private static int getHeight(World world, Random random, int coordX, int coordZ)
{
BiomeGenBase biome = world.getBiomeGenForCoords(coordX, coordZ);
int min = (int)(biome.minHeight * 64 + 62);
int max = (int)(biome.maxHeight * 64);
// sanity
min = (min > 1) ? min : 1;
max = (max > 5) ? max : 5;
return min + random.nextInt(max);
}
private static int getSurroundCount(World world, int x, int y, int z, Block blockType)
{
int surroundCount = 0;