mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-07-12 08:43:26 +01:00
Merge pull request #5127 from VOREStation/upstream-merge-6130
[MIRROR] Fixes gamemode checking list itself, instead of entries
This commit is contained in:
@@ -146,10 +146,10 @@ var/global/list/additional_antag_types = list()
|
||||
playerC++
|
||||
|
||||
if(master_mode=="secret")
|
||||
if(playerC < config.player_requirements_secret)
|
||||
if(playerC < config.player_requirements_secret[config_tag])
|
||||
return 0
|
||||
else
|
||||
if(playerC < config.player_requirements)
|
||||
if(playerC < config.player_requirements[config_tag])
|
||||
return 0
|
||||
|
||||
if(!(antag_templates && antag_templates.len))
|
||||
|
||||
@@ -101,7 +101,7 @@ var/global/datum/controller/gameticker/ticker
|
||||
job_master.DivideOccupations() // Apparently important for new antagonist system to register specific job antags properly.
|
||||
|
||||
if(!src.mode.can_start())
|
||||
world << "<B>Unable to start [mode.name].</B> Not enough players readied, [mode.required_players] players needed. Reverting to pregame lobby."
|
||||
world << "<B>Unable to start [mode.name].</B> Not enough players readied, [config.player_requirements[mode.config_tag]] players needed. Reverting to pregame lobby."
|
||||
current_state = GAME_STATE_PREGAME
|
||||
Master.SetRunLevel(RUNLEVEL_LOBBY)
|
||||
mode.fail_setup()
|
||||
|
||||
Reference in New Issue
Block a user