Compare commits

...
4 Commits
Author SHA1 Message Date
MysteriousAges 47a2962bd6 Fixing problems with @SideOnly functions again. 2013-01-30 13:22:26 -08:00
MysteriousAges 105a8d47a0 Tweaking Research for "Stark hint" - indicating more research is required.
Adding extra mutation to Vis bee with extra chance.
2013-01-29 18:43:34 -08:00
MysteriousAges ad16a3b999 Adding Weather aspect to the list of Fluxes the Flux bee doesn't generate. (Because it looks like an internal TC thing.) 2013-01-28 21:04:50 -08:00
MysteriousAges 63bb014de8 Bugfixes:
* Re-enabled capsules being added to the liquid dictionary.
* Discovered cause of items being added to creative tabs twice, and killed it.
2013-01-28 14:22:40 -08:00
14 changed files with 30 additions and 23 deletions

No files matched your search

+2 -2
View File
@@ -1,3 +1,3 @@
#Build Number for ANT. Do not edit! #Build Number for ANT. Do not edit!
#Mon Jan 28 02:03:40 PST 2013 #Wed Jan 30 12:06:05 PST 2013
build.number=101 build.number=103
@@ -14,7 +14,7 @@ The potential exists for further study. All that is required is some creative th
<longText>The cursory investigation you have completed in the direction of Beekeeping has yielded fruit. Perhaps under the right conditions, you can find a bee mutation that will enable you to infuse them with magic.</longText> <longText>The cursory investigation you have completed in the direction of Beekeeping has yielded fruit. Perhaps under the right conditions, you can find a bee mutation that will enable you to infuse them with magic.</longText>
<page type="text">Even bees are susceptible to the influence of magic, some more than others. <page type="text">Even bees are susceptible to the influence of magic, some more than others.
Perhaps it would be possible to breed a bee from two species which are affected by Arcane or Supernatural powers. If such a species truly does exist, it could be possible that they could reveal additional secrets.</page> Perhaps it would be possible to breed a bee from two species which are affected by Arcane or Supernatural powers. If such a species truly does exist, it could be possible that they could reveal additional secrets. Further research may be needed, in addition to a specimen.</page>
</project> </project>
<project id="BEEINFUSION"> <project id="BEEINFUSION">
@@ -19,7 +19,7 @@ public class FlowerProviderAuraNodeFlux extends FlowerProviderAuraNode
{ {
tag = EnumTag.values()[world.rand.nextInt(EnumTag.values().length)]; tag = EnumTag.values()[world.rand.nextInt(EnumTag.values().length)];
} }
while (tag == EnumTag.UNKNOWN); while (tag == EnumTag.UNKNOWN || tag == EnumTag.WEATHER);
int nodeId = ThaumcraftApi.getClosestAuraWithinRange(world, x, y, z, this.nodeRange); int nodeId = ThaumcraftApi.getClosestAuraWithinRange(world, x, y, z, this.nodeRange);
if (nodeId != -1) if (nodeId != -1)
@@ -385,9 +385,11 @@ public class TBBeeManager
BeeMutation.Savant = new BeeMutation(Allele.Pupil, Allele.Scholarly, Allele.Savant, 6); BeeMutation.Savant = new BeeMutation(Allele.Pupil, Allele.Scholarly, Allele.Savant, 6);
BeeMutation.Stark = new BeeMutation(Allele.Arcane, Allele.Supernatural, Allele.Stark, 8); BeeMutation.Stark = new BeeMutation(Allele.Arcane, Allele.Supernatural, Allele.Stark, 8);
BeeMutation.Aware = new BeeMutation(Allele.getBaseSpecies("Demonic"), Allele.getBaseSpecies("Edenic"), Allele.Aware, 9); BeeMutation.Aware = new BeeMutation(Allele.getBaseSpecies("Demonic"), Allele.getBaseSpecies("Edenic"), Allele.Aware, 12);
BeeMutation.Vis = new BeeMutation(Allele.Aware, Allele.Arcane, Allele.Vis, 7) BeeMutation.Vis = new BeeMutation(Allele.Aware, Allele.Arcane, Allele.Vis, 7)
.setAuraNodeRequired(15); .setAuraNodeRequired(40);
BeeMutation.Vis1 = new BeeMutation(Allele.Aware, Allele.Stark, Allele.Vis, 12)
.setAuraNodeRequired(80);
BeeMutation.Pure = new BeeMutation(Allele.Vis, Allele.getBaseSpecies("Edenic"), Allele.Pure, 5) BeeMutation.Pure = new BeeMutation(Allele.Vis, Allele.getBaseSpecies("Edenic"), Allele.Pure, 5)
.setAuraNodeTypeRequired(5, EnumNodeType.PURE).setMoonPhaseBonus(MoonPhase.NEW, MoonPhase.NEW, 1.6f); .setAuraNodeTypeRequired(5, EnumNodeType.PURE).setMoonPhaseBonus(MoonPhase.NEW, MoonPhase.NEW, 1.6f);
@@ -139,8 +139,7 @@ public class AlleleEffectSpawnMob extends AlleleEffect
AxisAlignedBB.getBoundingBox((int)pos[0], (int)pos[1], (int)pos[2], (int)pos[0] + 1, (int)pos[1] + 1, (int)pos[2] + 1) AxisAlignedBB.getBoundingBox((int)pos[0], (int)pos[1], (int)pos[2], (int)pos[0] + 1, (int)pos[1] + 1, (int)pos[2] + 1)
.expand(8.0D, 4.0D, 8.0D)).size(); .expand(8.0D, 4.0D, 8.0D)).size();
mob.setPosition(pos[0], pos[1], pos[2]); mob.setPositionAndRotation(pos[0], pos[1], pos[2], world.rand.nextFloat() * 360f, 0f);
mob.setAngles(world.rand.nextFloat() * 360f, 0f);
if (entitiesCount < this.maxMobsInArea && mob.getCanSpawnHere()) if (entitiesCount < this.maxMobsInArea && mob.getCanSpawnHere())
{ {
@@ -49,8 +49,7 @@ public class AlleleEffectSpawnWisp extends AlleleEffectSpawnMob
AxisAlignedBB.getBoundingBox((int)pos[0], (int)pos[1], (int)pos[2], (int)pos[0] + 1, (int)pos[1] + 1, (int)pos[2] + 1) AxisAlignedBB.getBoundingBox((int)pos[0], (int)pos[1], (int)pos[2], (int)pos[0] + 1, (int)pos[1] + 1, (int)pos[2] + 1)
.expand(8.0D, 4.0D, 8.0D)).size(); .expand(8.0D, 4.0D, 8.0D)).size();
mob.setPosition(pos[0], pos[1], pos[2]); mob.setPositionAndRotation(pos[0], pos[1], pos[2], world.rand.nextFloat() * 360f, 0f);
mob.setAngles(world.rand.nextFloat() * 360f, 0f);
if (entitiesCount < this.maxMobsInArea && mob.getCanSpawnHere()) if (entitiesCount < this.maxMobsInArea && mob.getCanSpawnHere())
{ {
@@ -27,6 +27,7 @@ public class BeeMutation implements IBeeMutation
public static BeeMutation Savant; public static BeeMutation Savant;
public static BeeMutation Aware; public static BeeMutation Aware;
public static BeeMutation Vis; public static BeeMutation Vis;
public static BeeMutation Vis1;
public static BeeMutation Pure; public static BeeMutation Pure;
public static BeeMutation Flux; public static BeeMutation Flux;
public static BeeMutation Node; public static BeeMutation Node;
@@ -35,6 +35,11 @@ public class ItemCapsule extends Item
this.setHasSubtypes(true); this.setHasSubtypes(true);
} }
public CapsuleType getType()
{
return this.capsuleType;
}
@Override @Override
public String getItemDisplayName(ItemStack itemStack) public String getItemDisplayName(ItemStack itemStack)
{ {
@@ -36,7 +36,6 @@ public class ItemComb extends Item
@SideOnly(Side.CLIENT) @SideOnly(Side.CLIENT)
public void getSubItems(int id, CreativeTabs tabs, List list) public void getSubItems(int id, CreativeTabs tabs, List list)
{ {
super.getSubItems(id, tabs, list);
for (CombType type : CombType.values()) for (CombType type : CombType.values())
{ {
if (type.showInList) if (type.showInList)
@@ -36,7 +36,6 @@ public class ItemDrop extends Item
@SideOnly(Side.CLIENT) @SideOnly(Side.CLIENT)
public void getSubItems(int id, CreativeTabs tabs, List list) public void getSubItems(int id, CreativeTabs tabs, List list)
{ {
super.getSubItems(id, tabs, list);
for (DropType type : DropType.values()) for (DropType type : DropType.values())
{ {
list.add(this.getStackForType(type)); list.add(this.getStackForType(type));
@@ -9,6 +9,7 @@ import thaumicbees.item.types.CapsuleType;
import thaumicbees.item.types.CombType; import thaumicbees.item.types.CombType;
import thaumicbees.item.types.DropType; import thaumicbees.item.types.DropType;
import thaumicbees.item.types.HiveFrameType; import thaumicbees.item.types.HiveFrameType;
import thaumicbees.item.types.LiquidType;
import thaumicbees.item.types.PropolisType; import thaumicbees.item.types.PropolisType;
import thaumicbees.item.types.ResourceType; import thaumicbees.item.types.ResourceType;
import thaumicbees.item.types.WaxType; import thaumicbees.item.types.WaxType;
@@ -100,7 +101,7 @@ public class ItemManager
catch (Exception e) catch (Exception e)
{ {
FMLLog.severe("ThaumicBees encountered a problem during loading!"); FMLLog.severe("ThaumicBees encountered a problem during loading!");
throw new RuntimeException("Could not register backpacks via Forestry. Did it fail to load?", e); throw new RuntimeException("Could not register backpacks via Forestry. Check your FML Client log and see if Forestry crashed silently.", e);
} }
@@ -328,13 +329,18 @@ public class ItemManager
} }
public static void postInit() public static void postInit()
{
registerLiquidContainer(ItemManager.magicCapsule);
}
private static void registerLiquidContainer(ItemCapsule baseCapsule)
{ {
// Forestry liquids aren't registered until PostInit, that's why we wait until now to register them. // Forestry liquids aren't registered until PostInit, that's why we wait until now to register them.
/*ItemStack empty = new ItemStack(this, 1, 0); ItemStack empty = new ItemStack(baseCapsule, 1, 0);
ItemStack filled; ItemStack filled;
LiquidStack liquid = null; LiquidStack liquid = null;
for (Liquid l : Liquid.values()) for (LiquidType l : LiquidType.values())
{ {
switch (l) switch (l)
{ {
@@ -342,19 +348,19 @@ public class ItemManager
liquid = null; liquid = null;
break; break;
case WATER: case WATER:
liquid = new LiquidStack(Block.waterStill, this.capsuleType.capacity); liquid = new LiquidStack(Block.waterStill, baseCapsule.getType().capacity);
break; break;
case LAVA: case LAVA:
liquid = new LiquidStack(Block.lavaStill, this.capsuleType.capacity); liquid = new LiquidStack(Block.lavaStill, baseCapsule.getType().capacity);
break; break;
default: default:
liquid = LiquidDictionary.getLiquid(l.liquidID, this.capsuleType.capacity); liquid = LiquidDictionary.getLiquid(l.liquidID, baseCapsule.getType().capacity);
break; break;
} }
if (liquid != null) if (liquid != null)
{ {
filled = new ItemStack(this, 1, l.ordinal()); filled = new ItemStack(baseCapsule, 1, l.ordinal());
LiquidContainerRegistry.registerLiquid(new LiquidContainerData(liquid, filled, empty)); LiquidContainerRegistry.registerLiquid(new LiquidContainerData(liquid, filled, empty));
// Register with Squeezer/Bottler // Register with Squeezer/Bottler
@@ -365,7 +371,7 @@ public class ItemManager
} }
} }
// Empty will be set to unavailable. Obviously, it always is. // Empty will be set to unavailable. Obviously, it always is.
Liquid.EMPTY.available = true;*/ LiquidType.EMPTY.available = true;
} }
} }
@@ -35,7 +35,6 @@ public class ItemMiscResources extends Item
@SideOnly(Side.CLIENT) @SideOnly(Side.CLIENT)
public void getSubItems(int id, CreativeTabs tabs, List list) public void getSubItems(int id, CreativeTabs tabs, List list)
{ {
super.getSubItems(id, tabs, list);
for (ResourceType type : ResourceType.values()) for (ResourceType type : ResourceType.values())
{ {
if (type.showInList) if (type.showInList)
@@ -35,7 +35,6 @@ public class ItemPollen extends Item
@SideOnly(Side.CLIENT) @SideOnly(Side.CLIENT)
public void getSubItems(int id, CreativeTabs tabs, List list) public void getSubItems(int id, CreativeTabs tabs, List list)
{ {
super.getSubItems(id, tabs, list);
for (PollenType type : PollenType.values()) for (PollenType type : PollenType.values())
{ {
list.add(this.getStackForType(type)); list.add(this.getStackForType(type));
@@ -36,7 +36,6 @@ public class ItemPropolis extends Item
@SideOnly(Side.CLIENT) @SideOnly(Side.CLIENT)
public void getSubItems(int id, CreativeTabs tabs, List list) public void getSubItems(int id, CreativeTabs tabs, List list)
{ {
super.getSubItems(id, tabs, list);
for (PropolisType type : PropolisType.values()) for (PropolisType type : PropolisType.values())
{ {
list.add(this.getStackForType(type)); list.add(this.getStackForType(type));