Randomized initial shooting cooldown
This commit is contained in:
parent
635df54849
commit
61ce682270
|
@ -43,7 +43,8 @@ public class EntityEnemyScout extends EntityEnemy
|
||||||
{
|
{
|
||||||
super.init(game, x, y);
|
super.init(game, x, y);
|
||||||
this.movementChangeTimer = this.movementChangeInterval;
|
this.movementChangeTimer = this.movementChangeInterval;
|
||||||
this.weaponCooldown = this.ammo.getCooldown() * 10.0f;
|
var rand = this.game.getRandom();
|
||||||
|
this.weaponCooldown = this.ammo.getCooldown() * (9.0f + rand.nextFloat() * 3.0f);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -45,8 +45,8 @@ public class EntityEnemySmallBomber extends EntityEnemy
|
||||||
{
|
{
|
||||||
super.init(game, x, y);
|
super.init(game, x, y);
|
||||||
this.movementChangeTimer = this.movementChangeInterval;
|
this.movementChangeTimer = this.movementChangeInterval;
|
||||||
this.weaponCooldown = this.ammo.getCooldown() * 10.0f;
|
var rand = this.game.getRandom();
|
||||||
}
|
this.weaponCooldown = this.ammo.getCooldown() * (9.0f + rand.nextFloat() * 3.0f); }
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void tick(float delta)
|
public void tick(float delta)
|
||||||
|
|
Loading…
Reference in New Issue