From a8900d28f98f85d81ac8b08f529769cbe1adb826 Mon Sep 17 00:00:00 2001 From: Anuken Date: Fri, 19 Aug 2022 20:08:08 -0400 Subject: [PATCH] Fixed #7401 --- core/src/mindustry/content/Blocks.java | 10 ++++++---- core/src/mindustry/core/World.java | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/core/src/mindustry/content/Blocks.java b/core/src/mindustry/content/Blocks.java index 499f1259c4..ed897ec81c 100644 --- a/core/src/mindustry/content/Blocks.java +++ b/core/src/mindustry/content/Blocks.java @@ -4091,6 +4091,7 @@ public class Blocks{ rotateSpeed = 1.4f; minWarmup = 0.85f; shootWarmupSpeed = 0.07f; + shootSound = Sounds.artillery; coolant = consume(new ConsumeLiquid(Liquids.water, 30f / 60f)); coolantMultiplier = 1.5f; @@ -4159,6 +4160,7 @@ public class Blocks{ rotateSpeed = 5f; shootCone = 30f; consumeAmmoOnce = true; + shootSound = Sounds.shootBig; drawer = new DrawTurret("reinforced-"){{ parts.add(new RegionPart("-side"){{ @@ -4166,15 +4168,15 @@ public class Blocks{ under = true; moveX = 1.75f; moveY = -0.5f; - }}); - parts.add(new RegionPart("-mid"){{ + }}, + new RegionPart("-mid"){{ under = true; moveY = -1.5f; progress = PartProgress.recoil; heatProgress = PartProgress.recoil.add(0.25f).min(PartProgress.warmup); heatColor = Color.sky.cpy().a(0.9f); - }}); - parts.add(new RegionPart("-blade"){{ + }}, + new RegionPart("-blade"){{ heatProgress = PartProgress.warmup; heatColor = Color.sky.cpy().a(0.9f); mirror = true; diff --git a/core/src/mindustry/core/World.java b/core/src/mindustry/core/World.java index 2a9bf5f8a8..2d5560c449 100644 --- a/core/src/mindustry/core/World.java +++ b/core/src/mindustry/core/World.java @@ -450,7 +450,7 @@ public class World{ public void checkMapArea(){ for(var build : Groups.build){ //reset map-area-based disabled blocks. - if(build.allowUpdate() && !build.enabled){ + if(build.allowUpdate() && !build.enabled && build.block.autoResetEnabled){ build.enabled = true; } }