mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-03-12 19:09:34 +07:00
Bugfixes
This commit is contained in:
parent
dfac73d81c
commit
0d61d98c70
Binary file not shown.
After Width: | Height: | Size: 800 B |
BIN
core/assets-raw/sprites/blocks/walls/reinforced-surge-wall.png
Normal file
BIN
core/assets-raw/sprites/blocks/walls/reinforced-surge-wall.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 312 B |
@ -1327,10 +1327,8 @@ public class Blocks{
|
||||
//outputItem = new ItemStack(Items.scrap, 1);
|
||||
}};
|
||||
|
||||
//TODO should have a useful turret ammo byproduct? scrap?
|
||||
//TODO surge being removed I think
|
||||
surgeCrucible = new HeatCrafter("surge-crucible"){{
|
||||
requirements(Category.crafting, with(Items.silicon, 100, Items.graphite, 80, Items.carbide, 60, Items.thorium, 120, Items.phaseFabric, 80));
|
||||
requirements(Category.crafting, with(Items.silicon, 100, Items.graphite, 80, Items.tungsten, 80, Items.oxide, 80));
|
||||
|
||||
size = 3;
|
||||
|
||||
@ -1952,7 +1950,7 @@ public class Blocks{
|
||||
}};
|
||||
|
||||
surgeConveyor = new StackConveyor("surge-conveyor"){{
|
||||
requirements(Category.distribution, with(Items.surgeAlloy, 3, Items.oxide, 5));
|
||||
requirements(Category.distribution, with(Items.surgeAlloy, 1, Items.tungsten, 1));
|
||||
health = 130;
|
||||
//TODO different base speed/item capacity?
|
||||
speed = 5f / 60f;
|
||||
@ -1968,7 +1966,7 @@ public class Blocks{
|
||||
}};
|
||||
|
||||
surgeRouter = new StackRouter("surge-router"){{
|
||||
requirements(Category.distribution, with(Items.oxide, 10, Items.surgeAlloy, 10));
|
||||
requirements(Category.distribution, with(Items.surgeAlloy, 5, Items.tungsten, 1));
|
||||
health = 130;
|
||||
|
||||
speed = 6f;
|
||||
@ -1983,7 +1981,7 @@ public class Blocks{
|
||||
}};
|
||||
|
||||
unitCargoLoader = new UnitCargoLoader("unit-cargo-loader"){{
|
||||
requirements(Category.distribution, with(Items.silicon, 80, Items.thorium, 50, Items.oxide, 50));
|
||||
requirements(Category.distribution, with(Items.silicon, 80, Items.surgeAlloy, 50, Items.oxide, 20));
|
||||
|
||||
size = 3;
|
||||
buildTime = 60f * 8f;
|
||||
@ -1991,7 +1989,7 @@ public class Blocks{
|
||||
consumePower(8f / 60f);
|
||||
|
||||
//intentionally set absurdly high to make this block not overpowered
|
||||
consumeLiquid(Liquids.nitrogen, 20f / 60f);
|
||||
consumeLiquid(Liquids.nitrogen, 10f / 60f);
|
||||
|
||||
itemCapacity = 200;
|
||||
}};
|
||||
@ -3076,7 +3074,7 @@ public class Blocks{
|
||||
statusDuration = 10f;
|
||||
hittable = false;
|
||||
lightColor = Color.white;
|
||||
collidesGround = false;
|
||||
collidesAir = false;
|
||||
buildingDamageMultiplier = 0.25f;
|
||||
}};
|
||||
}};
|
||||
|
@ -1322,8 +1322,7 @@ public class UnitTypes{
|
||||
}};
|
||||
|
||||
mega = new UnitType("mega"){{
|
||||
//TODO control?
|
||||
aiController = RepairAI::new;
|
||||
controller = u -> new RepairAI();
|
||||
|
||||
mineTier = 3;
|
||||
mineSpeed = 4f;
|
||||
|
@ -991,7 +991,9 @@ public class MobileInput extends InputHandler implements GestureListener{
|
||||
}else if(target == null){
|
||||
player.shooting = false;
|
||||
if(Core.settings.getBool("autotarget") && !(player.unit() instanceof BlockUnitUnit u && u.tile() instanceof ControlBlock c && !c.shouldAutoTarget())){
|
||||
target = Units.closestTarget(unit.team, unit.x, unit.y, range, u -> u.checkTarget(type.targetAir, type.targetGround), u -> type.targetGround);
|
||||
if(player.unit().type.canAttack){
|
||||
target = Units.closestTarget(unit.team, unit.x, unit.y, range, u -> u.checkTarget(type.targetAir, type.targetGround), u -> type.targetGround);
|
||||
}
|
||||
|
||||
if(allowHealing && target == null){
|
||||
target = Geometry.findClosest(unit.x, unit.y, indexer.getDamaged(Team.sharded));
|
||||
|
Loading…
Reference in New Issue
Block a user