More sound effects
This commit is contained in:
@@ -309,11 +309,11 @@ public class Block extends UnlockableContent implements Senseable{
|
||||
/** Should the sound made when this block is deconstructed change in pitch. */
|
||||
public boolean breakPitchChange = true;
|
||||
/** Sound made when this block is built. */
|
||||
public Sound placeSound = Sounds.place;
|
||||
public Sound placeSound = Sounds.unset;
|
||||
/** Sound made when this block is deconstructed. */
|
||||
public Sound breakSound = Sounds.breaks;
|
||||
/** Sounds made when this block is destroyed.*/
|
||||
public Sound destroySound = Sounds.boom;
|
||||
public Sound destroySound = Sounds.unset;
|
||||
/** Volume of destruction sound. */
|
||||
public float destroySoundVolume = 1f;
|
||||
/** Range of destroy sound. */
|
||||
@@ -1260,6 +1260,20 @@ public class Block extends UnlockableContent implements Senseable{
|
||||
public void init(){
|
||||
super.init();
|
||||
|
||||
if(destroySound == Sounds.unset){
|
||||
destroySound =
|
||||
size >= 3 ? Sounds.blockExplode3 :
|
||||
size >= 2 ? Sounds.blockExplode2 :
|
||||
Sounds.blockExplode1;
|
||||
}
|
||||
|
||||
if(placeSound == Sounds.unset){
|
||||
placeSound =
|
||||
size >= 3 ? Sounds.place3 :
|
||||
size >= 2 ? Sounds.place2 :
|
||||
Sounds.place1;
|
||||
}
|
||||
|
||||
//disable standard shadow
|
||||
if(customShadow){
|
||||
hasShadow = false;
|
||||
|
||||
@@ -41,6 +41,7 @@ public class Wall extends Block{
|
||||
|
||||
//it's a wall of course it's supported everywhere
|
||||
envEnabled = Env.any;
|
||||
destroySound = Sounds.blockExplodeWall;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -38,7 +38,7 @@ public class ImpactReactor extends PowerGenerator{
|
||||
explosionDamage = 1900 * 4;
|
||||
explosionMinWarmup = 0.3f;
|
||||
explodeEffect = Fx.impactReactorExplosion;
|
||||
explodeSound = Sounds.explosionbig;
|
||||
explodeSound = Sounds.reactorExplosion2;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -41,7 +41,7 @@ public class VariableReactor extends PowerGenerator{
|
||||
explosionRadius = 16;
|
||||
explosionDamage = 1500;
|
||||
explodeEffect = new MultiEffect(Fx.bigShockwave, new WrapEffect(Fx.titanSmoke, Color.valueOf("e3ae6f")));
|
||||
explodeSound = Sounds.explosionbig;
|
||||
explodeSound = Sounds.reactorExplosion2;
|
||||
|
||||
explosionPuddles = 70;
|
||||
explosionPuddleRange = tilesize * 6f;
|
||||
|
||||
Reference in New Issue
Block a user