added Blast speed to projectiles

checks main config for blast speed
This commit is contained in:
grangerave 2017-12-02 20:23:19 -06:00
parent 0ae9c55376
commit 780b679e88
2 changed files with 3 additions and 3 deletions

View File

@ -255,7 +255,7 @@ public class EntityMiniMIRV extends Entity implements IProjectile
entity0.posY = this.posY;
entity0.posZ = this.posZ;
entity0.destructionRange = MainRegistry.fatmanRadius;
entity0.speed = 25;
entity0.speed = MainRegistry.blastSpeed;
entity0.coefficient = 10.0F;
this.worldObj.spawnEntityInWorld(entity0);

View File

@ -242,11 +242,11 @@ public class EntityMiniNuke extends Entity implements IProjectile
entity0.posY = this.posY;
entity0.posZ = this.posZ;
entity0.destructionRange = MainRegistry.fatmanRadius;
entity0.speed = 25;
entity0.speed = MainRegistry.blastSpeed;
entity0.coefficient = 10.0F;
this.worldObj.spawnEntityInWorld(entity0);
if(rand.nextInt(100) == 0)
if(rand.nextInt(100) >= 0) //edited
{
ExplosionParticleB.spawnMush(this.worldObj, (int)this.posX, (int)this.posY - 3, (int)this.posZ);
} else {