Adds support for a map rotation system. (#7162)

* Adds support for a map rotation system.
It is now the default way of selecting a map, map votes have been disabled.

* whoops

* Randomize the map it starts off with, too.
(it'd pick bagel every time otherwise)

* Address review

* remove knight from rotation due to it being an unmaintained map.

* minor cleanup
This commit is contained in:
Moony
2022-03-17 13:59:53 -05:00
committed by GitHub
parent afc0e3708e
commit 3721b3303b
5 changed files with 84 additions and 8 deletions

View File

@@ -71,7 +71,7 @@ namespace Content.Server.GameTicking
DefaultMap = _mapManager.CreateMap();
_mapManager.AddUninitializedMap(DefaultMap);
var startTime = _gameTiming.RealTime;
var maps = new List<GameMapPrototype>() { _gameMapManager.GetSelectedMapChecked(true) };
var maps = new List<GameMapPrototype>() { _gameMapManager.GetSelectedMapChecked(true, true) };
// Let game rules dictate what maps we should load.
RaiseLocalEvent(new LoadingMapsEvent(maps));