Some more lens balance, also fixed the bounce lens

This commit is contained in:
Vasco Lavos committed 2014-02-01 19:10:50 +00:00
1 parent b422b7b82a
commit 1a890417b0
2 files changed
+5 -7

No files matched your search

@@ -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
@@ -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) {