This commit is contained in:
Anuken 2019-08-25 14:23:43 -04:00
parent 73149123b4
commit 0a471441cc
2 changed files with 5 additions and 4 deletions

View File

@ -1686,13 +1686,13 @@ public class Blocks implements ContentList{
}};
crawlerFactory = new UnitFactory("crawler-factory"){{
requirements(Category.units, ItemStack.with(Items.lead, 25, Items.silicon, 30));
requirements(Category.units, ItemStack.with(Items.lead, 45, Items.silicon, 30));
type = UnitTypes.crawler;
produceTime = 250;
produceTime = 300;
size = 2;
maxSpawn = 8;
consumes.power(0.4f);
consumes.items(new ItemStack(Items.coal, 5));
consumes.items(new ItemStack(Items.coal, 10));
}};
titanFactory = new UnitFactory("titan-factory"){{

View File

@ -20,6 +20,7 @@ import static io.anuke.mindustry.Vars.world;
public class Door extends Wall{
protected final Rectangle rect = new Rectangle();
protected int timerToggle = timers++;
protected Effect openfx = Fx.dooropen;
protected Effect closefx = Fx.doorclose;
@ -81,7 +82,7 @@ public class Door extends Wall{
public void tapped(Tile tile, Player player){
DoorEntity entity = tile.entity();
if(Units.anyEntities(tile) && entity.open){
if((Units.anyEntities(tile) && entity.open) || !tile.entity.timer.get(timerToggle, 30f)){
return;
}