Smaller storage

This commit is contained in:
Anuken
2022-02-19 19:42:21 -05:00
parent 8e8dd27890
commit 66a806c304
7 changed files with 14 additions and 12 deletions

View File

@@ -104,7 +104,7 @@ public class CoreBlock extends StorageBlock{
public void init(){
//assign to update clipSize internally
lightRadius = 30f + 20f * size;
fogRadius = Math.max(fogRadius, (int)(lightRadius / 8f * 2.5f));
fogRadius = Math.max(fogRadius, (int)(lightRadius / 8f * 2f));
emitLight = true;
super.init();
@@ -434,7 +434,7 @@ public class CoreBlock extends StorageBlock{
}
public boolean owns(Building core, Building tile){
return tile instanceof StorageBuild b && (b.linkedCore == core || b.linkedCore == null);
return tile instanceof StorageBuild b && ((StorageBlock)b.block).coreMerge && (b.linkedCore == core || b.linkedCore == null);
}
@Override

View File

@@ -13,6 +13,7 @@ import mindustry.world.meta.*;
import static mindustry.Vars.*;
public class StorageBlock extends Block{
public boolean coreMerge = true;
public StorageBlock(String name){
super(name);