Fixed some map multipliers

This commit is contained in:
Anuken
2026-09-05 12:49:40 -04:00
parent dbbd03f4cd
commit a7955970ff
4 changed files with 6 additions and 0 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
+6
View File
@@ -2,9 +2,11 @@ package mindustry.tools;
import arc.*;
import arc.files.*;
import arc.math.*;
import arc.struct.*;
import arc.util.*;
import mindustry.content.*;
import mindustry.game.*;
import mindustry.game.MapObjectives.*;
import mindustry.io.*;
import mindustry.logic.LExecutor.*;
@@ -77,6 +79,10 @@ public class MapFixer{
changed = true;
}
if(!Mathf.equal(state.rules.unitCost(Team.sharded), 1f) || !Mathf.equal(state.rules.unitBuildSpeed(Team.sharded), 1f)){
Log.warn("@: unit build speed/cost multipliers are not 1! (Values for cost | build speed: @ | @)", map.name(), state.rules.unitCost(Team.sharded), state.rules.unitBuildSpeed(Team.sharded));
}
{ //unlocalized check
Seq<TimerObjective> timers = state.rules.objectives.all.select(m -> m instanceof TimerObjective t && !m.hidden && t.text != null &&
!t.text.isEmpty() && !t.text.contains("@")).as();