From 0b510e842630a70c08a6cf2b92233d7249d41c1d Mon Sep 17 00:00:00 2001 From: MysteriousAges Date: Tue, 12 Feb 2013 13:40:18 -0800 Subject: [PATCH] Tweaking the flux & purify bee effect Commenting out Magic Apiary blocks for a release version. --- .../thaumicbees/bees/FlowerProviderAuraNodeFlux.java | 2 +- .../thaumicbees/bees/FlowerProviderAuraNodePurify.java | 6 +++--- thaumicbees_src/thaumicbees/main/Config.java | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/thaumicbees_src/thaumicbees/bees/FlowerProviderAuraNodeFlux.java b/thaumicbees_src/thaumicbees/bees/FlowerProviderAuraNodeFlux.java index cc4c106..6eb51bf 100644 --- a/thaumicbees_src/thaumicbees/bees/FlowerProviderAuraNodeFlux.java +++ b/thaumicbees_src/thaumicbees/bees/FlowerProviderAuraNodeFlux.java @@ -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 diff --git a/thaumicbees_src/thaumicbees/bees/FlowerProviderAuraNodePurify.java b/thaumicbees_src/thaumicbees/bees/FlowerProviderAuraNodePurify.java index 64027fd..ca56c6f 100644 --- a/thaumicbees_src/thaumicbees/bees/FlowerProviderAuraNodePurify.java +++ b/thaumicbees_src/thaumicbees/bees/FlowerProviderAuraNodePurify.java @@ -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)); } } diff --git a/thaumicbees_src/thaumicbees/main/Config.java b/thaumicbees_src/thaumicbees/main/Config.java index d7bd7ef..64c311b 100644 --- a/thaumicbees_src/thaumicbees/main/Config.java +++ b/thaumicbees_src/thaumicbees/main/Config.java @@ -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()