Second map fixes

This commit is contained in:
Anuken
2022-04-11 15:35:02 -04:00
parent e2abc055a2
commit 123e62d275
5 changed files with 9 additions and 6 deletions
+1 -1
View File
@@ -106,7 +106,7 @@ public class Logic implements ApplicationListener{
Events.on(PlayEvent.class, e -> {
//reset weather on play
var randomWeather = state.rules.weather.copy().shuffled();
var randomWeather = state.rules.weather.copy().shuffle();
float sum = 0f;
for(var weather : randomWeather){
weather.cooldown = sum + Mathf.random(weather.maxFrequency);
@@ -3,10 +3,14 @@ package mindustry.entities;
/** Higher priority blocks will always get targeted over those of lower priority, regardless of distance. */
public class TargetPriority{
public static final float
//nobody cares about walls
wall = -2f,
//transport infrastructure isn't as important as factories
transport = -1f,
//most blocks
base = 0f,
constructing = 1f,
turret = 2f,
core = 3f;
//turrets deal damage so they are more important
turret = 1f,
//core is always the most important thing to destroy
core = 2f;
}
@@ -44,7 +44,6 @@ public class ConstructBlock extends Block{
inEditor = false;
consBlocks[size - 1] = this;
sync = true;
priority = TargetPriority.constructing;
}
/** Returns a ConstructBlock by size. */