From f30bdb931bb07510afca67083445159e9cab79dc Mon Sep 17 00:00:00 2001 From: Calclavia Date: Mon, 5 Aug 2013 13:25:33 -0400 Subject: [PATCH] Made electric bolt slightly less random; resolves #13 --- src/resonantinduction/fx/FXElectricBolt.java | 8 ++++---- src/resonantinduction/tesla/TileEntityTesla.java | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/resonantinduction/fx/FXElectricBolt.java b/src/resonantinduction/fx/FXElectricBolt.java index 7bc50685..66a2c78f 100644 --- a/src/resonantinduction/fx/FXElectricBolt.java +++ b/src/resonantinduction/fx/FXElectricBolt.java @@ -90,10 +90,10 @@ public class FXElectricBolt extends EntityFX this.segments.add(new BoltSegment(this.start, this.end)); this.recalculate(); double offsetRatio = this.boltLength * this.complexity; - this.split(2, offsetRatio / 10, 0.7f, 0.1f, 20); - this.split(2, offsetRatio / 15, 0.5f, 0.1f, 25); - this.split(2, offsetRatio / 25, 0.5f, 0.1f, 28); - this.split(2, offsetRatio / 38, 0.5f, 0.1f, 30); + this.split(2, offsetRatio / 10, 0.7f, 0.1f, 20/2); + this.split(2, offsetRatio / 15, 0.5f, 0.1f, 25/2); + this.split(2, offsetRatio / 25, 0.5f, 0.1f, 28/2); + this.split(2, offsetRatio / 38, 0.5f, 0.1f, 30/2); this.split(2, offsetRatio / 55, 0, 0, 0); this.split(2, offsetRatio / 70, 0, 0, 0); diff --git a/src/resonantinduction/tesla/TileEntityTesla.java b/src/resonantinduction/tesla/TileEntityTesla.java index f325db91..4bae0d97 100644 --- a/src/resonantinduction/tesla/TileEntityTesla.java +++ b/src/resonantinduction/tesla/TileEntityTesla.java @@ -198,7 +198,7 @@ public class TileEntityTesla extends TileEntityBase implements ITesla, IPacketRe { if (mop.entityHit instanceof EntityLivingBase) { - mop.entityHit.attackEntityFrom(DamageSource.magic, 3); + mop.entityHit.attackEntityFrom(DamageSource.magic, 4); ResonantInduction.proxy.renderElectricShock(this.worldObj, new Vector3(topTesla).clone().translate(0.5), new Vector3(mop.entityHit)); } }