From 1a890417b0d7b25f9cd4a73d30a7ae027b4439aa Mon Sep 17 00:00:00 2001 From: Vasco Lavos Date: Sat, 1 Feb 2014 19:10:50 +0000 Subject: [PATCH] Some more lens balance, also fixed the bounce lens --- MODSRC/vazkii/botania/common/entity/EntityManaBurst.java | 5 +---- MODSRC/vazkii/botania/common/item/ItemLens.java | 7 ++++--- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/MODSRC/vazkii/botania/common/entity/EntityManaBurst.java b/MODSRC/vazkii/botania/common/entity/EntityManaBurst.java index fef038b39..1c52529a1 100644 --- a/MODSRC/vazkii/botania/common/entity/EntityManaBurst.java +++ b/MODSRC/vazkii/botania/common/entity/EntityManaBurst.java @@ -267,8 +267,6 @@ public class EntityManaBurst extends EntityThrowable implements IManaBurst { @Override protected void onImpact(MovingObjectPosition movingobjectposition) { - boolean mana = false; - if(movingobjectposition.entityHit == null) { TileEntity tile = worldObj.getBlockTileEntity(movingobjectposition.blockX, movingobjectposition.blockY, movingobjectposition.blockZ); @@ -278,7 +276,6 @@ public class EntityManaBurst extends EntityThrowable implements IManaBurst { if(tile == null || tile.xCoord != coords.posX || tile.yCoord != coords.posY || tile.zCoord != coords.posZ) { if(!fake && !noParticles && !worldObj.isRemote && tile != null && tile instanceof IManaReceiver && ((IManaReceiver) tile).canRecieveManaFromBursts()) { - mana = true; ((IManaReceiver) tile).recieveMana(getMana()); PacketDispatcher.sendPacketToAllInDimension(tile.getDescriptionPacket(), worldObj.provider.dimensionId); } @@ -289,7 +286,7 @@ public class EntityManaBurst extends EntityThrowable implements IManaBurst { ILens lens = getLensInstance(); if(lens != null) - lens.collideBurst(this, movingobjectposition, mana, getSourceLens()); + lens.collideBurst(this, movingobjectposition, collidedTile != null && collidedTile instanceof IManaReceiver && ((IManaReceiver) collidedTile).canRecieveManaFromBursts(), getSourceLens()); } @Override diff --git a/MODSRC/vazkii/botania/common/item/ItemLens.java b/MODSRC/vazkii/botania/common/item/ItemLens.java index 08153a22e..14230f82e 100644 --- a/MODSRC/vazkii/botania/common/item/ItemLens.java +++ b/MODSRC/vazkii/botania/common/item/ItemLens.java @@ -113,7 +113,7 @@ public class ItemLens extends ItemMod implements ILens { switch(stack.getItemDamage()) { case 1 : { // Speed props.motionModifier = 2F; - props.maxMana *= 0.5F; + props.maxMana *= 0.75F; props.ticksBeforeManaLoss /= 3F; props.manaLossPerTick *= 2F; break; @@ -125,7 +125,7 @@ public class ItemLens extends ItemMod implements ILens { break; } case 3 : { // Resistance - props.ticksBeforeManaLoss *= 2.25; + props.ticksBeforeManaLoss *= 2.25F; props.motionModifier *= 0.8F; break; } @@ -136,6 +136,7 @@ public class ItemLens extends ItemMod implements ILens { } case 6 : { // Gravity props.gravity = 0.0015F; + props.ticksBeforeManaLoss *= 1.2F; break; } } @@ -144,7 +145,7 @@ public class ItemLens extends ItemMod implements ILens { @Override public void collideBurst(IManaBurst burst, MovingObjectPosition pos, boolean isManaBlock, ItemStack stack) { switch(stack.getItemDamage()) { - case 5 : { + case 5 : { // Bounce if(!isManaBlock && pos.entityHit == null) { ChunkCoordinates coords = burst.getBurstSourceChunkCoordinates(); if(coords.posX != pos.blockX || coords.posY != pos.blockY || coords.posZ != pos.blockZ) {