Skip to content

Commit

Permalink
Antagonist at lobby no more
Browse files Browse the repository at this point in the history
  • Loading branch information
m-dzianishchyts committed Nov 3, 2024
1 parent e118716 commit fe7ea74
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions code/controllers/subsystem/SSjobs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -409,16 +409,15 @@ SUBSYSTEM_DEF(jobs)
unassigned -= player
break

Debug("DO, Standard Check end")
Debug("DO, Running Alternate Check")

// Hand out random jobs to the people who didn't get any in the last check
// Also makes sure that they got their preference correct
for(var/mob/new_player/player in unassigned)
if(player.client.prefs.active_character.alternate_option == GET_RANDOM_JOB)
GiveRandomJob(player)

Debug("DO, Standard Check end")

Debug("DO, Running AC2")

// Antags, who have to get in, come first
for(var/mob/new_player/player in unassigned)
if(player.mind.special_role)
Expand All @@ -434,10 +433,14 @@ SUBSYSTEM_DEF(jobs)

// Then we assign what we can to everyone else.
for(var/mob/new_player/player in unassigned)
if(player.client.prefs.active_character.alternate_option == BE_ASSISTANT)
Debug("AC2 Assistant located, Player: [player]")
if(player.client.prefs.active_character.alternate_option != RETURN_TO_LOBBY)
Debug("AC unemployed located, assigning assistant, Player: [player]")
AssignRole(player, "Assistant")
else if(player.mind.special_role)
Debug("AC unemployed antagonist located, force assigning assistant, Player: [player]")
AssignRole(player, "Assistant")
else if(player.client.prefs.active_character.alternate_option == RETURN_TO_LOBBY)
else
Debug("AC unemployed located, return to lobby, Player: [player]")
player.ready = FALSE
unassigned -= player

Expand Down

0 comments on commit fe7ea74

Please sign in to comment.