Make the sound pitch not random.

This commit is contained in:
MEEP of Faith 2020-10-10 18:03:53 -07:00
parent f93b80dd36
commit 5600f96a37
2 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,7 @@ public class ChargeTurret extends PowerTurret{
tr.trns(rotation, size * tilesize / 2f);
chargeBeginEffect.at(x + tr.x, y + tr.y, rotation);
chargeSound.at(x + tr.x, y + tr.y, Mathf.random(0.8f, 1f));
chargeSound.at(x + tr.x, y + tr.y, 1);
for(int i = 0; i < chargeEffects; i++){
Time.run(Mathf.random(chargeMaxDelay), () -> {

View File

@ -432,7 +432,7 @@ public abstract class Turret extends Block{
fshootEffect.at(x + tr.x, y + tr.y, rotation);
fsmokeEffect.at(x + tr.x, y + tr.y, rotation);
shootSound.at(tile, Mathf.random(0.9f, 1.1f));
shootSound.at(x + tr.x, y + tr.y, 1);
if(shootShake > 0){
Effect.shake(shootShake, shootShake, this);