Skip to content

Commit

Permalink
no more ghost-crew (#5035)
Browse files Browse the repository at this point in the history
  • Loading branch information
Trilbyspaceclone authored Feb 12, 2024
1 parent 546d8e4 commit ebddad4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions code/game/gamemodes/storyteller.dm
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,10 @@ GLOBAL_DATUM(storyteller, /datum/storyteller)

var/engineer = FALSE
var/command = FALSE
var/single_person = FALSE
for(var/mob/new_player/player in GLOB.player_list)
if(player.ready && player.mind)
single_person = TRUE
if(player.mind.assigned_role in list(JOBS_COMMAND))
command = TRUE
if(player.mind.assigned_role in list(JOBS_ENGINEERING))
Expand All @@ -99,6 +101,10 @@ GLOBAL_DATUM(storyteller, /datum/storyteller)
else if(!command)
to_chat(world, "<b><font color='[tcol]'>A Council Member is required to start the round.</font></b>")

if(!single_person)
to_chat(world, "<b><font color='[tcol]'>A single ready player is required to start the round.</font></b>")
return FALSE

if(GLOB.player_list.len <= 15) //15 players is low pop do to lurkers
to_chat(world, "<i>But there's less than 16 players, so this requirement will be ignored.</i>")
return TRUE
Expand Down

0 comments on commit ebddad4

Please sign in to comment.