Second map fixes
This commit is contained in:
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user