From 780b679e88b65f82c25e5f61fabe5f234e540edf Mon Sep 17 00:00:00 2001 From: grangerave Date: Sat, 2 Dec 2017 20:23:19 -0600 Subject: [PATCH] added Blast speed to projectiles checks main config for blast speed --- com/hbm/entity/projectile/EntityMiniMIRV.java | 2 +- com/hbm/entity/projectile/EntityMiniNuke.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/com/hbm/entity/projectile/EntityMiniMIRV.java b/com/hbm/entity/projectile/EntityMiniMIRV.java index 80bd4f3ea..780c266a0 100644 --- a/com/hbm/entity/projectile/EntityMiniMIRV.java +++ b/com/hbm/entity/projectile/EntityMiniMIRV.java @@ -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); diff --git a/com/hbm/entity/projectile/EntityMiniNuke.java b/com/hbm/entity/projectile/EntityMiniNuke.java index cae8cfc4a..85f036d61 100644 --- a/com/hbm/entity/projectile/EntityMiniNuke.java +++ b/com/hbm/entity/projectile/EntityMiniNuke.java @@ -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 {