Tweaking the flux & purify bee effect

Commenting out Magic Apiary blocks for a release version.
This commit is contained in:
MysteriousAges committed 2013-02-12 13:40:18 -08:00
1 parent d4c5d1e356
commit 0b510e8426
3 files changed
+6 -6

No files matched your search

@@ -14,7 +14,7 @@ public class FlowerProviderAuraNodeFlux extends FlowerProviderAuraNode
@Override
public ItemStack[] affectProducts(World world, IBeeGenome genome, int x, int y, int z, ItemStack[] products)
{
if (world.rand.nextInt(10) < 1)
if (world.rand.nextInt(20) < 1)
{
EnumTag tag;
do
@@ -27,10 +27,10 @@ public class FlowerProviderAuraNodePurify extends FlowerProviderAuraNode
@Override
public ItemStack[] affectProducts(World world, IBeeGenome genome, int x, int y, int z, ItemStack[] products)
{
if (world.rand.nextInt(10) < 1)
if (world.rand.nextInt(25) < 1)
{
AuraNode node = this.getNodeWithinRange(world, x, y, z);
if (node != null)
if (node != null && (1.0 * node.level) / node.baseLevel > 0.75)
{
int aspectCount = node.flux.tags.size();
if (aspectCount > 0)
@@ -39,7 +39,7 @@ public class FlowerProviderAuraNodePurify extends FlowerProviderAuraNode
if (selectedTag != null)
{
node.flux.remove(selectedTag, 1);
ThaumcraftApi.queueNodeChanges(node.key, 0, 0, false, new ObjectTags().add(selectedTag, -1), 0, 0, 0);
ThaumcraftApi.queueNodeChanges(node.key, node.baseLevel / -16, 0, false, new ObjectTags().add(selectedTag, -1), 0, 0, 0);
products = addItemToProducts(products, new ItemStack(Config.solidFlux, 1, selectedTag.id));
}
}
+2 -2
View File
@@ -121,8 +121,8 @@ public class Config
int blockIdBase = 1750;
magicApiary = new BlockMagicApiary(tbConfig.getBlock("magicApiary", blockIdBase).getInt());
GameRegistry.registerBlock(magicApiary, "Magic Apiary");
/*magicApiary = new BlockMagicApiary(tbConfig.getBlock("magicApiary", blockIdBase).getInt());
GameRegistry.registerBlock(magicApiary, "Magic Apiary");*/
}
public void setupItems()