This commit is contained in:
Anuken
2020-06-01 11:12:06 -04:00
parent d984862c69
commit 8273198c56
9 changed files with 130 additions and 33 deletions

View File

@@ -4,7 +4,10 @@ import mindustry.*;
import mindustry.gen.*;
import mindustry.world.*;
import static mindustry.Vars.state;
public class CoreLauncher extends Block{
public int range = 1;
public CoreLauncher(String name){
super(name);
@@ -23,12 +26,10 @@ public class CoreLauncher extends Block{
@Override
public boolean configTapped(){
//TODO show w/ sector
Vars.ui.planet.show();
if(state.isCampaign()){
Vars.ui.planet.show(state.rules.sector, range);
}
return false;
}
}
}

View File

@@ -21,6 +21,11 @@ public class ResearchBlock extends Block{
configurable = true;
}
@Override
public boolean outputsItems(){
return false;
}
public class ResearchBlockEntity extends TileEntity{
public @Nullable UnlockableContent researching;

View File

@@ -132,7 +132,6 @@ public class Conveyor extends Block implements Autotiler{
Draw.rect(regions[blendbits][frame], x, y, tilesize * blendsclx, tilesize * blendscly, rotation * 90);
//TODO is sprite Z layer clustering necessary? does it create garbage?
Draw.z(Layer.blockOver);
for(int i = 0; i < len; i++){