diff --git a/MODSRC/vazkii/botania/client/fx/FXSparkle.java b/MODSRC/vazkii/botania/client/fx/FXSparkle.java index c48971dde..13728db41 100644 --- a/MODSRC/vazkii/botania/client/fx/FXSparkle.java +++ b/MODSRC/vazkii/botania/client/fx/FXSparkle.java @@ -126,7 +126,7 @@ public class FXSparkle extends EntityFX if (particleAge++ >= particleMaxAge) setDead(); motionY -= 0.040000000000000001D * particleGravity; - if (noClip==false) pushOutOfBlocks(posX, (boundingBox.minY + boundingBox.maxY) / 2.0D, posZ); + if (!noClip && !fake) pushOutOfBlocks(posX, (boundingBox.minY + boundingBox.maxY) / 2.0D, posZ); // moveEntity(motionX, motionY, motionZ); posX+=motionX; posY+=motionY; diff --git a/MODSRC/vazkii/botania/client/fx/FXWisp.java b/MODSRC/vazkii/botania/client/fx/FXWisp.java index 0d00397c3..4456b6907 100644 --- a/MODSRC/vazkii/botania/client/fx/FXWisp.java +++ b/MODSRC/vazkii/botania/client/fx/FXWisp.java @@ -46,7 +46,7 @@ public class FXWisp extends EntityFX motionX=motionY=motionZ=0; particleScale *= size; moteParticleScale = particleScale; - particleMaxAge = (int)(36D / (Math.random() * 0.3D + 0.7D)); + particleMaxAge = (int)(28D / (Math.random() * 0.3D + 0.7D)); moteHalfLife = particleMaxAge / 2; noClip = true; diff --git a/MODSRC/vazkii/botania/common/core/handler/ConfigHandler.java b/MODSRC/vazkii/botania/common/core/handler/ConfigHandler.java index 3ddbb9767..2c4708654 100644 --- a/MODSRC/vazkii/botania/common/core/handler/ConfigHandler.java +++ b/MODSRC/vazkii/botania/common/core/handler/ConfigHandler.java @@ -25,6 +25,7 @@ public final class ConfigHandler { private static Configuration config; public static boolean lexiconRotatingItems = true; + public static boolean subtlePowerSystem = false; public static void loadConfig(File configFile) { config = new Configuration(configFile); @@ -34,6 +35,10 @@ public final class ConfigHandler { Property lexiconRotatingItemsProp = config.get(Configuration.CATEGORY_GENERAL, "lexicon.enable.rotatingItems", true); lexiconRotatingItemsProp.comment = "Set to false to disable the rotating items in the petal and rune entries in the Lexica Botania."; lexiconRotatingItems = lexiconRotatingItemsProp.getBoolean(true); + + Property subtlePowerSystemProp = config.get(Configuration.CATEGORY_GENERAL, "powerSystem.system", false); + subtlePowerSystemProp.comment = "Set to true to set the power system's particles to be a lot more subtle. Good for low-end systems, if the particles are causing lag."; + subtlePowerSystem = subtlePowerSystemProp.getBoolean(false); // Block IDs LibBlockIDs.idFlower = loadBlock(LibBlockNames.FLOWER, LibBlockIDs.idFlower); diff --git a/MODSRC/vazkii/botania/common/entity/EntityManaBurst.java b/MODSRC/vazkii/botania/common/entity/EntityManaBurst.java index 503bc0021..6d6ad1929 100644 --- a/MODSRC/vazkii/botania/common/entity/EntityManaBurst.java +++ b/MODSRC/vazkii/botania/common/entity/EntityManaBurst.java @@ -34,6 +34,7 @@ import vazkii.botania.api.mana.ILens; import vazkii.botania.api.mana.IManaReceiver; import vazkii.botania.common.Botania; import vazkii.botania.common.block.tile.TileSpreader; +import vazkii.botania.common.core.handler.ConfigHandler; import vazkii.botania.common.core.helper.Vector3; import cpw.mods.fml.common.network.PacketDispatcher; @@ -280,22 +281,27 @@ public class EntityManaBurst extends EntityThrowable implements IManaBurst { if(!noParticles) Botania.proxy.sparkleFX(worldObj, posX, posY, posZ, r, g, b, 0.4F * size, 1, true); } else { - posX += motionX; - posY += motionY; - posZ += motionZ; + if(ConfigHandler.subtlePowerSystem) + for(int i = 0; i < 1; i++) + Botania.proxy.wispFX(worldObj, posX, posY, posZ, r, g, b, 0.1F * size, (float) (Math.random() - 0.5F) * 0.02F, (float) (Math.random() - 0.5F) * 0.02F, (float) (Math.random() - 0.5F) * 0.01F); + else { + posX += motionX; + posY += motionY; + posZ += motionZ; - Botania.proxy.wispFX(worldObj, posX, posY, posZ, r, g, b, 0.2F * size, (float) -motionX * 0.01F, (float) -motionY * 0.01F, (float) -motionZ * 0.01F); - Botania.proxy.wispFX(worldObj, posX, posY, posZ, r, g, b, 0.1F * size, (float) (Math.random() - 0.5F) * 0.06F, (float) (Math.random() - 0.5F) * 0.06F, (float) (Math.random() - 0.5F) * 0.06F); + Botania.proxy.wispFX(worldObj, posX, posY, posZ, r, g, b, 0.2F * size, (float) -motionX * 0.01F, (float) -motionY * 0.01F, (float) -motionZ * 0.01F); + Botania.proxy.wispFX(worldObj, posX, posY, posZ, r, g, b, 0.1F * size, (float) (Math.random() - 0.5F) * 0.06F, (float) (Math.random() - 0.5F) * 0.06F, (float) (Math.random() - 0.5F) * 0.06F); - posX -= motionX / 2.0; - posY -= motionY / 2.0; - posZ -= motionZ / 2.0; + posX -= motionX / 2.0; + posY -= motionY / 2.0; + posZ -= motionZ / 2.0; - Botania.proxy.wispFX(worldObj, posX, posY, posZ, r, g, b, 0.2F * size, (float) -motionX * 0.01F, (float) -motionY * 0.01F, (float) -motionZ * 0.01F); + Botania.proxy.wispFX(worldObj, posX, posY, posZ, r, g, b, 0.2F * size, (float) -motionX * 0.01F, (float) -motionY * 0.01F, (float) -motionZ * 0.01F); - posX -= motionX / 2.0; - posY -= motionY / 2.0; - posZ -= motionZ / 2.0; + posX -= motionX / 2.0; + posY -= motionY / 2.0; + posZ -= motionZ / 2.0; + } } } @@ -330,7 +336,7 @@ public class EntityManaBurst extends EntityThrowable implements IManaBurst { if(collided && !hasAlreadyCollidedAt(movingobjectposition.blockX, movingobjectposition.blockY, movingobjectposition.blockZ)) alreadyCollidedAt.add(getCollisionLocString(movingobjectposition.blockX, movingobjectposition.blockY, movingobjectposition.blockZ)); - if(dead) { + if(dead && !isDead) { if(!fake) { Color color = new Color(getColor()); float r = color.getRed() / 255F; @@ -341,9 +347,10 @@ public class EntityManaBurst extends EntityThrowable implements IManaBurst { int maxMana = getStartingMana(); float size = (float) mana / (float) maxMana; - for(int i = 0; i < 12; i++) - Botania.proxy.wispFX(worldObj, posX, posY, posZ, r, g, b, 0.15F * size, (float) (Math.random() - 0.5F) * 0.04F, (float) (Math.random() - 0.5F) * 0.04F, (float) (Math.random() - 0.5F) * 0.04F); - Botania.proxy.sparkleFX(worldObj, (float) posX, (float) posY, (float) posZ, r, g, b, 3, 2); + if(!ConfigHandler.subtlePowerSystem) + for(int i = 0; i < 4; i++) + Botania.proxy.wispFX(worldObj, posX, posY, posZ, r, g, b, 0.15F * size, (float) (Math.random() - 0.5F) * 0.04F, (float) (Math.random() - 0.5F) * 0.04F, (float) (Math.random() - 0.5F) * 0.04F); + Botania.proxy.sparkleFX(worldObj, (float) posX, (float) posY, (float) posZ, r, g, b, 4, 2); } setDead();