Gamemode Start Tweaks (#5719)

When the round refuses to start because of a lack of players or lack of antags, it will properly state this instead of stating that there aren't enough players.

The Wizard gamemode, and the Ninja gamemode, both have restrictions that prevent the gamemode from being launched if there are more than 15 players, unless it was voted specifically.
This commit is contained in:
BurgerLUA
2018-12-11 20:38:31 +01:00
committed by Werner
parent 7a813942a1
commit 4cbd2f4e2c
8 changed files with 101 additions and 29 deletions
+1 -1
View File
@@ -987,7 +987,7 @@ var/list/gamemode_cache = list()
var/list/runnable_modes = list()
for(var/game_mode in gamemode_cache)
var/datum/game_mode/M = gamemode_cache[game_mode]
if(M && M.can_start() && probabilities[M.config_tag] && probabilities[M.config_tag] > 0)
if(M && M.can_start() == GAME_FAILURE_NONE && probabilities[M.config_tag] && probabilities[M.config_tag] > 0)
runnable_modes |= M
return runnable_modes