mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-03-09 20:29:06 +07:00
Added random wave AI to custom rules dialog
This commit is contained in:
parent
6e5561a36e
commit
0ffa6f1d00
@ -1350,7 +1350,7 @@ rules.allowedit.info = When enabled, the player can edit rules in-game via the b
|
||||
rules.alloweditworldprocessors = Allow Editing World Processors
|
||||
rules.alloweditworldprocessors.info = When enabled, world logic blocks can be placed and edited even outside the editor.
|
||||
rules.waves = Waves
|
||||
rules.airUseSpawns = Air units use spawn points
|
||||
rules.airUseSpawns = Air Units Use Spawn Points
|
||||
rules.attack = Attack Mode
|
||||
rules.buildai = Base Builder AI
|
||||
rules.buildaitier = Builder AI Tier
|
||||
@ -1409,6 +1409,7 @@ rules.weather.frequency = Frequency:
|
||||
rules.weather.always = Always
|
||||
rules.weather.duration = Duration:
|
||||
|
||||
rules.randomwaveai.info = Makes units spawned in waves target random structures instead of directly attacking the core or power generators.
|
||||
rules.placerangecheck.info = Prevents players from placing anything near enemy buildings. When trying to place a turret, the range is increased, so the turret will not be able to reach the enemy.
|
||||
rules.onlydepositcore.info = Prevents units from depositing items into any buildings except cores.
|
||||
|
||||
|
@ -220,6 +220,7 @@ public class CustomRulesDialog extends BaseDialog{
|
||||
check("@rules.wavesending", b -> rules.waveSending = b, () -> rules.waveSending, () -> rules.waves);
|
||||
check("@rules.wavetimer", b -> rules.waveTimer = b, () -> rules.waveTimer, () -> rules.waves);
|
||||
check("@rules.waitForWaveToEnd", b -> rules.waitEnemies = b, () -> rules.waitEnemies, () -> rules.waves && rules.waveTimer);
|
||||
check("@rules.randomwaveai", b -> rules.randomWaveAI = b, () -> rules.randomWaveAI, () -> rules.waves);
|
||||
check("@rules.airUseSpawns", b -> rules.airUseSpawns = b, () -> rules.airUseSpawns, () -> rules.waves);
|
||||
numberi("@rules.wavelimit", f -> rules.winWave = f, () -> rules.winWave, () -> rules.waves, 0, Integer.MAX_VALUE);
|
||||
number("@rules.wavespacing", false, f -> rules.waveSpacing = f * 60f, () -> rules.waveSpacing / 60f, () -> rules.waves && rules.waveTimer, 1, Float.MAX_VALUE);
|
||||
|
Loading…
Reference in New Issue
Block a user