mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-03-13 11:29:48 +07:00
Targeting fixes / command center fixes
This commit is contained in:
parent
a1dbbbdafc
commit
4b61f273d5
@ -40,11 +40,11 @@ public class UnitBlocks extends BlockList implements ContentList{
|
||||
|
||||
monsoonPad = new UnitPad("monsoon-pad"){{
|
||||
type = UnitTypes.monsoon;
|
||||
produceTime = 3600;
|
||||
produceTime = 3800;
|
||||
size = 3;
|
||||
consumes.power(0.2f);
|
||||
shadow = "shadow-round-3";
|
||||
consumes.items(new ItemStack[]{new ItemStack(Items.silicon, 30), new ItemStack(Items.titanium, 30), new ItemStack(Items.plastanium, 10)});
|
||||
consumes.items(new ItemStack[]{new ItemStack(Items.silicon, 30), new ItemStack(Items.titanium, 30), new ItemStack(Items.plastanium, 20)});
|
||||
}};
|
||||
|
||||
daggerPad = new UnitPad("dagger-pad"){{
|
||||
@ -57,7 +57,7 @@ public class UnitBlocks extends BlockList implements ContentList{
|
||||
|
||||
titanPad = new UnitPad("titan-pad"){{
|
||||
type = UnitTypes.titan;
|
||||
produceTime = 3700;
|
||||
produceTime = 3600;
|
||||
size = 3;
|
||||
consumes.power(0.15f);
|
||||
shadow = "shadow-round-3";
|
||||
|
@ -80,9 +80,9 @@ public abstract class FlyingUnit extends BaseUnit implements CarryTrait{
|
||||
}else if(target == null){
|
||||
retarget(() -> {
|
||||
targetClosest();
|
||||
targetClosestEnemyFlag(BlockFlag.target);
|
||||
targetClosestEnemyFlag(BlockFlag.producer);
|
||||
targetClosestEnemyFlag(BlockFlag.turret);
|
||||
if(target == null) targetClosestEnemyFlag(BlockFlag.target);
|
||||
if(target == null) targetClosestEnemyFlag(BlockFlag.producer);
|
||||
if(target == null) targetClosestEnemyFlag(BlockFlag.turret);
|
||||
|
||||
if(target == null && !isCommanded()){
|
||||
setState(idle);
|
||||
|
@ -133,7 +133,7 @@ public class Sectors{
|
||||
}
|
||||
|
||||
private void initSector(Sector sector){
|
||||
double waveChance = 0.3;
|
||||
double waveChance = 0.2;
|
||||
|
||||
sector.difficulty = (int)(Mathf.dst(sector.x, sector.y));
|
||||
|
||||
|
@ -14,6 +14,7 @@ import io.anuke.mindustry.entities.Units;
|
||||
import io.anuke.mindustry.entities.traits.SpawnerTrait;
|
||||
import io.anuke.mindustry.entities.units.BaseUnit;
|
||||
import io.anuke.mindustry.entities.units.UnitType;
|
||||
import io.anuke.mindustry.game.Team;
|
||||
import io.anuke.mindustry.gen.Call;
|
||||
import io.anuke.mindustry.graphics.Palette;
|
||||
import io.anuke.mindustry.graphics.Shaders;
|
||||
@ -103,7 +104,7 @@ public class CoreBlock extends StorageBlock{
|
||||
|
||||
@Override
|
||||
public float handleDamage(Tile tile, float amount){
|
||||
return debug ? 0 : amount;
|
||||
return debug && tile.getTeam() == Team.blue ? 0 : amount;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -38,7 +38,7 @@ public class CommandCenter extends Block{
|
||||
public CommandCenter(String name){
|
||||
super(name);
|
||||
|
||||
flags = EnumSet.of(BlockFlag.target);
|
||||
flags = EnumSet.of(BlockFlag.comandCenter, BlockFlag.target);
|
||||
destructible = true;
|
||||
solid = true;
|
||||
configurable = true;
|
||||
|
Loading…
Reference in New Issue
Block a user