mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-03-09 11:15:35 +00:00
added Blast speed to projectiles
checks main config for blast speed
This commit is contained in:
parent
0ae9c55376
commit
780b679e88
@ -255,7 +255,7 @@ public class EntityMiniMIRV extends Entity implements IProjectile
|
|||||||
entity0.posY = this.posY;
|
entity0.posY = this.posY;
|
||||||
entity0.posZ = this.posZ;
|
entity0.posZ = this.posZ;
|
||||||
entity0.destructionRange = MainRegistry.fatmanRadius;
|
entity0.destructionRange = MainRegistry.fatmanRadius;
|
||||||
entity0.speed = 25;
|
entity0.speed = MainRegistry.blastSpeed;
|
||||||
entity0.coefficient = 10.0F;
|
entity0.coefficient = 10.0F;
|
||||||
|
|
||||||
this.worldObj.spawnEntityInWorld(entity0);
|
this.worldObj.spawnEntityInWorld(entity0);
|
||||||
|
|||||||
@ -242,11 +242,11 @@ public class EntityMiniNuke extends Entity implements IProjectile
|
|||||||
entity0.posY = this.posY;
|
entity0.posY = this.posY;
|
||||||
entity0.posZ = this.posZ;
|
entity0.posZ = this.posZ;
|
||||||
entity0.destructionRange = MainRegistry.fatmanRadius;
|
entity0.destructionRange = MainRegistry.fatmanRadius;
|
||||||
entity0.speed = 25;
|
entity0.speed = MainRegistry.blastSpeed;
|
||||||
entity0.coefficient = 10.0F;
|
entity0.coefficient = 10.0F;
|
||||||
|
|
||||||
this.worldObj.spawnEntityInWorld(entity0);
|
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);
|
ExplosionParticleB.spawnMush(this.worldObj, (int)this.posX, (int)this.posY - 3, (int)this.posZ);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user