mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-01-20 17:28:14 +07:00
Minor rule fixes
This commit is contained in:
parent
5181f88db1
commit
20b10e924b
@ -1897,7 +1897,7 @@ public class Blocks{
|
||||
|
||||
ductUnloader = new DirectionalUnloader("duct-unloader"){{
|
||||
requirements(Category.distribution, with(Items.graphite, 20, Items.silicon, 20, Items.tungsten, 10));
|
||||
health = 90;
|
||||
health = 120;
|
||||
speed = 4f;
|
||||
regionRotated1 = 1;
|
||||
}};
|
||||
|
@ -65,6 +65,8 @@ public class Planets{
|
||||
hiddenItems.addAll(Items.serpuloItems).removeAll(Items.erekirItems);
|
||||
ruleSetter = r -> {
|
||||
r.placeRangeCheck = true;
|
||||
r.attributes.set(Attribute.heat, 0.8f);
|
||||
r.showSpawns = true;
|
||||
};
|
||||
|
||||
unlockedOnLand.add(Blocks.coreBastion);
|
||||
@ -107,6 +109,11 @@ public class Planets{
|
||||
allowWaveSimulation = true;
|
||||
allowSectorInvasion = true;
|
||||
allowLaunchSchematics = true;
|
||||
ruleSetter = r -> {
|
||||
r.placeRangeCheck = false;
|
||||
r.attributes.clear();
|
||||
r.showSpawns = false;
|
||||
};
|
||||
defaultAI = true;
|
||||
atmosphereColor = Color.valueOf("3c1b8f");
|
||||
atmosphereRadIn = 0.02f;
|
||||
|
@ -213,7 +213,7 @@ public abstract class InputHandler implements InputProcessor, GestureListener{
|
||||
|
||||
for(int id : unitIds){
|
||||
Unit unit = Groups.unit.getByID(id);
|
||||
if(unit.team == player.team() && unit.controller() instanceof CommandAI ai){
|
||||
if(unit != null && unit.team == player.team() && unit.controller() instanceof CommandAI ai){
|
||||
if(teamTarget != null && teamTarget.team() != player.team()){
|
||||
ai.commandTarget(teamTarget);
|
||||
}else if(posTarget != null){
|
||||
|
@ -442,7 +442,6 @@ public class ErekirPlanetGenerator extends PlanetGenerator{
|
||||
decoration(0.017f);
|
||||
|
||||
//it is very hot
|
||||
state.rules.attributes.set(Attribute.heat, 0.8f);
|
||||
state.rules.env = sector.planet.defaultEnv;
|
||||
state.rules.placeRangeCheck = true;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user