Minor sound changes

This commit is contained in:
Anuken
2020-11-11 18:11:38 -05:00
parent 536a8f6085
commit b1b84fe380
7 changed files with 18 additions and 3 deletions

View File

@@ -67,7 +67,7 @@ public class Drill extends Block{
liquidCapacity = 5f;
hasItems = true;
ambientSound = Sounds.drill;
ambientSoundVolume = 0.015f;
ambientSoundVolume = 0.018f;
}
@Override
@@ -209,6 +209,11 @@ public class Drill extends Block{
return efficiency() > 0.01f && items.total() < itemCapacity;
}
@Override
public float ambientVolume(){
return efficiency() * (size * size) / 4f;
}
@Override
public void drawSelect(){
if(dominantItem != null){

View File

@@ -2,6 +2,7 @@ package mindustry.world.blocks.production;
import arc.graphics.g2d.*;
import mindustry.annotations.Annotations.*;
import mindustry.gen.*;
import mindustry.graphics.*;
import mindustry.world.meta.*;
@@ -15,6 +16,8 @@ public class Fracker extends SolidPump{
public Fracker(String name){
super(name);
hasItems = true;
ambientSound = Sounds.drill;
ambientSoundVolume = 0.03f;
}
@Override