mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-03-05 07:00:49 +07:00
Option to make a unit not appear on the title screen. (#5728)
This commit is contained in:
parent
9c1063c7cc
commit
6246a1d39c
@ -29,7 +29,7 @@ public class MenuRenderer implements Disposable{
|
||||
private float time = 0f;
|
||||
private float flyerRot = 45f;
|
||||
private int flyers = Mathf.chance(0.2) ? Mathf.random(35) : Mathf.random(15);
|
||||
private UnitType flyerType = content.units().select(u -> u.hitSize <= 20f && u.flying && u.region.found()).random();
|
||||
private UnitType flyerType = content.units().select(u -> u.hitSize <= 20f && u.flying && u.onTitleScreen && u.region.found()).random();
|
||||
|
||||
public MenuRenderer(){
|
||||
Time.mark();
|
||||
|
@ -42,6 +42,8 @@ public class UnitType extends UnlockableContent{
|
||||
|
||||
/** If true, the unit is always at elevation 1. */
|
||||
public boolean flying;
|
||||
/** If `flying` and this is true, the unit can appear on the title screen */
|
||||
public boolean onTitleScreen = true;
|
||||
/** Creates a new instance of this unit class. */
|
||||
public Prov<? extends Unit> constructor;
|
||||
/** The default AI controller to assign on creation. */
|
||||
|
Loading…
Reference in New Issue
Block a user