Updated some sound loops

This commit is contained in:
Anuken
2025-12-10 19:02:05 -05:00
parent dc4eada23f
commit e58f4b0da3
12 changed files with 13 additions and 4 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -1189,6 +1189,8 @@ public class Blocks{
envEnabled |= Env.space; envEnabled |= Env.space;
size = 2; size = 2;
ambientSound = Sounds.loopMachineSpin;
ambientSoundVolume = 0.09f;
consumePower(0.20f); consumePower(0.20f);
consumeItems(with(Items.coal, 1, Items.lead, 2, Items.sand, 2)); consumeItems(with(Items.coal, 1, Items.lead, 2, Items.sand, 2));
@@ -1201,6 +1203,8 @@ public class Blocks{
outputItem = new ItemStack(Items.blastCompound, 1); outputItem = new ItemStack(Items.blastCompound, 1);
size = 2; size = 2;
envEnabled |= Env.space; envEnabled |= Env.space;
ambientSound = Sounds.loopMachineSpin;
ambientSoundVolume = 0.1f;
consumeItems(with(Items.pyratite, 1, Items.sporePod, 1)); consumeItems(with(Items.pyratite, 1, Items.sporePod, 1));
consumePower(0.40f); consumePower(0.40f);
@@ -1932,6 +1936,7 @@ public class Blocks{
consumePower(3.50f); consumePower(3.50f);
size = 2; size = 2;
consumeItem(Items.phaseFabric).boost(); consumeItem(Items.phaseFabric).boost();
ambientSoundVolume = 0.05f;
}}; }};
overdriveDome = new OverdriveProjector("overdrive-dome"){{ overdriveDome = new OverdriveProjector("overdrive-dome"){{
@@ -2573,9 +2578,9 @@ public class Blocks{
hasLiquids = true; hasLiquids = true;
hasItems = true; hasItems = true;
size = 3; size = 3;
ambientSound = Sounds.loopSteam; ambientSound = Sounds.loopDifferential;
generateEffect = Fx.generatespark; generateEffect = Fx.generatespark;
ambientSoundVolume = 0.05f; ambientSoundVolume = 0.12f;
drawer = new DrawMulti(new DrawDefault(), new DrawWarmupRegion(), new DrawLiquidRegion()); drawer = new DrawMulti(new DrawDefault(), new DrawWarmupRegion(), new DrawLiquidRegion());

View File

@@ -417,7 +417,7 @@ public class Weapon implements Cloneable{
//flip weapon shoot side for alternating weapons //flip weapon shoot side for alternating weapons
boolean wasFlipped = mount.side; boolean wasFlipped = mount.side;
if(otherSide != -1 && alternate && mount.side == flipSprite && mount.reload <= reload / 2f && lastReload > reload / 2f){ if(otherSide >= 0 && alternate && mount.side == flipSprite && otherSide < unit.mounts.length && mount.reload <= reload / 2f && lastReload > reload / 2f){
unit.mounts[otherSide].side = !unit.mounts[otherSide].side; unit.mounts[otherSide].side = !unit.mounts[otherSide].side;
mount.side = !mount.side; mount.side = !mount.side;
} }

View File

@@ -41,6 +41,8 @@ public class OverdriveProjector extends Block{
emitLight = true; emitLight = true;
lightRadius = 50f; lightRadius = 50f;
envEnabled |= Env.space; envEnabled |= Env.space;
ambientSound = Sounds.loopCircuit;
ambientSoundVolume = 0.13f;
} }
@Override @Override
@@ -71,7 +73,7 @@ public class OverdriveProjector extends Block{
stats.add(Stat.booster, StatValues.itemBoosters("+{0}%", stats.timePeriod, speedBoostPhase * 100f, phaseRangeBoost, items.items)); stats.add(Stat.booster, StatValues.itemBoosters("+{0}%", stats.timePeriod, speedBoostPhase * 100f, phaseRangeBoost, items.items));
} }
} }
@Override @Override
public void setBars(){ public void setBars(){
super.setBars(); super.setBars();

View File

@@ -47,6 +47,8 @@ public class RegenProjector extends Block{
envEnabled |= Env.space; envEnabled |= Env.space;
rotateDraw = false; rotateDraw = false;
flags = EnumSet.of(BlockFlag.blockRepair); flags = EnumSet.of(BlockFlag.blockRepair);
ambientSound = Sounds.loopRegen;
ambientSoundVolume = 0.45f;
} }
@Override @Override