Turrets can properly replace eachother, cores can replace conveyors and minor cleanup. (#4841)

This commit is contained in:
buthed010203
2021-03-03 09:15:50 -05:00
committed by GitHub
parent ae838b9392
commit 019898dfc3
6 changed files with 7 additions and 13 deletions
@@ -1,5 +1,6 @@
package mindustry.world.blocks.defense.turrets;
import arc.struct.*;
import mindustry.content.*;
import mindustry.entities.*;
import mindustry.gen.*;
@@ -27,6 +28,9 @@ public class BaseTurret extends Block{
update = true;
solid = true;
outlineIcon = true;
priority = TargetPriority.turret;
group = BlockGroup.turrets;
flags = EnumSet.of(BlockFlag.turret);
}
@Override
@@ -93,12 +93,6 @@ public class Turret extends ReloadTurret{
public Turret(String name){
super(name);
priority = TargetPriority.turret;
update = true;
solid = true;
group = BlockGroup.turrets;
flags = EnumSet.of(BlockFlag.turret);
outlineIcon = true;
liquidCapacity = 20f;
}
@@ -50,7 +50,6 @@ public class CoreBlock extends StorageBlock{
unitCapModifier = 10;
loopSound = Sounds.respawning;
loopSoundVolume = 1f;
group = BlockGroup.none;
drawDisabled = false;
canOverdrive = false;
}
@@ -20,7 +20,8 @@ public class StorageBlock extends Block{
solid = true;
update = false;
destructible = true;
group = BlockGroup.storage;
group = BlockGroup.transportation;
flags = EnumSet.of(BlockFlag.storage);
}
@Override