mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-01-11 07:39:39 +07:00
Make the sound pitch not random.
This commit is contained in:
parent
f93b80dd36
commit
5600f96a37
@ -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), () -> {
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user