mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-27 15:33:08 +00:00
Some tweaks to the looks in the power system.
This commit is contained in:
1 parent
9afed38060
commit
7c856a9884
4 files changed
+30
-18
No files matched your search
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user