mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-02-12 03:37:27 +07:00
Balance
This commit is contained in:
parent
73149123b4
commit
0a471441cc
@ -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"){{
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user