diff --git a/core/assets/sounds/noammo.ogg b/core/assets/sounds/noammo.ogg new file mode 100644 index 0000000000..4472dab237 Binary files /dev/null and b/core/assets/sounds/noammo.ogg differ diff --git a/core/src/mindustry/content/UnitTypes.java b/core/src/mindustry/content/UnitTypes.java index 4a0949a17a..aee7938ac3 100644 --- a/core/src/mindustry/content/UnitTypes.java +++ b/core/src/mindustry/content/UnitTypes.java @@ -1247,7 +1247,7 @@ public class UnitTypes implements ContentList{ mineTier = 3; health = 500; armor = 5f; - speed = 2.4f; + speed = 2.5f; accel = 0.06f; drag = 0.017f; lowAltitude = true; @@ -1257,7 +1257,7 @@ public class UnitTypes implements ContentList{ hitSize = 15f; engineSize = 3f; payloadCapacity = (2 * 2) * tilePayload; - buildSpeed = 2.5f; + buildSpeed = 2.6f; ammoType = AmmoTypes.power; @@ -1405,6 +1405,7 @@ public class UnitTypes implements ContentList{ y = -5f; rotate = true; ejectEffect = Fx.casing1; + shootSound = Sounds.missile; bullet = new MissileBulletType(2.7f, 12, "missile"){{ width = 8f; height = 8f; @@ -1451,6 +1452,7 @@ public class UnitTypes implements ContentList{ rotateSpeed = 5f; inaccuracy = 10f; ejectEffect = Fx.casing1; + shootSound = Sounds.shoot; bullet = Bullets.flakLead; }}); @@ -1463,6 +1465,7 @@ public class UnitTypes implements ContentList{ rotateSpeed = 2f; shake = 1.5f; ejectEffect = Fx.casing2; + shootSound = Sounds.bang; bullet = Bullets.artilleryIncendiary; }}); }}; @@ -1499,6 +1502,7 @@ public class UnitTypes implements ContentList{ shots = 1; inaccuracy = 3f; ejectEffect = Fx.casing3; + shootSound = Sounds.artillery; bullet = new ArtilleryBulletType(3.2f, 12){{ trailMult = 0.8f; @@ -1537,6 +1541,7 @@ public class UnitTypes implements ContentList{ shotDelay = 3f; inaccuracy = 5f; velocityRnd = 0.1f; + shootSound = Sounds.missile; ejectEffect = Fx.none; bullet = new MissileBulletType(2.7f, 12){{ diff --git a/core/src/mindustry/core/Control.java b/core/src/mindustry/core/Control.java index f0aeed065e..8d43863be2 100644 --- a/core/src/mindustry/core/Control.java +++ b/core/src/mindustry/core/Control.java @@ -280,6 +280,11 @@ public class Control implements ApplicationListener, Loadable{ public void playSector(@Nullable Sector origin, Sector sector){ ui.loadAnd(() -> { + if(saves.getCurrent() != null && state.isGame()){ + control.saves.getCurrent().save(); + control.saves.resetSave(); + } + ui.planet.hide(); SaveSlot slot = sector.save; sector.planet.setLastSector(sector); diff --git a/core/src/mindustry/type/Weapon.java b/core/src/mindustry/type/Weapon.java index 6d7434e51b..348e70b7b2 100644 --- a/core/src/mindustry/type/Weapon.java +++ b/core/src/mindustry/type/Weapon.java @@ -75,7 +75,7 @@ public class Weapon{ /** sound used for weapons that have a delay */ public Sound chargeSound = Sounds.none; /** sound played when there is nothing to shoot */ - public Sound noAmmoSound = Sounds.click; + public Sound noAmmoSound = Sounds.noammo; /** displayed region (autoloaded) */ public TextureRegion region; /** heat region, must be same size as region (optional) */