Dynamic selection of planet tech in rules dialog (#8487)

* Dynamic selection of planets in rules dialog

* Code cleanup

* Do not let Anuken/Mindustry#8494 happen again

* Fixed inconsistency with campaign sectors
This commit is contained in:
Slotterleet
2023-06-02 11:41:12 -04:00
committed by GitHub
parent 4e0e48ea32
commit 38b9027000
4 changed files with 13 additions and 9 deletions
+2
View File
@@ -191,6 +191,8 @@ public class Rules{
public float backgroundOffsetX = 0.1f, backgroundOffsetY = 0.1f;
/** Parameters for planet rendered in the background. Cannot be changed once a map is loaded. */
public @Nullable PlanetParams planetBackground;
/** Rules from this planet are applied. If it's {@code sun}, mixed tech is enabled. */
public Planet planet = Planets.serpulo;
/** Copies this ruleset exactly. Not efficient at all, do not use often. */
public Rules copy(){