Made electric bolt slightly less random; resolves #13

This commit is contained in:
Calclavia 2013-08-05 13:25:33 -04:00
parent 19208dd01a
commit f30bdb931b
2 changed files with 5 additions and 5 deletions

View file

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

View file

@ -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));
}
}