mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-30 08:39:12 +01:00
[MIRROR] Convert occupation bay prefs to TG (#12732)
Co-authored-by: Aura Dusklight <46622484+NovaDusklight@users.noreply.github.com> Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
co-authored by
Aura Dusklight
Cameron Lennox
parent
9252f1e6d6
commit
ff988d2502
@@ -431,7 +431,7 @@ SUBSYSTEM_DEF(job)
|
||||
// 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.alternate_option == GET_RANDOM_JOB)
|
||||
if(player.client.prefs.read_preference(/datum/preference/numeric/human/alternate_option) == GET_RANDOM_JOB)
|
||||
give_random_job(player)
|
||||
|
||||
job_debug_message("DO, Standard Check end")
|
||||
@@ -440,13 +440,13 @@ SUBSYSTEM_DEF(job)
|
||||
|
||||
// For those who wanted to be assistant if their preferences were filled, here you go.
|
||||
for(var/mob/new_player/player in unassigned)
|
||||
if(player.client.prefs.alternate_option == BE_ASSISTANT)
|
||||
if(player.client.prefs.read_preference(/datum/preference/numeric/human/alternate_option) == BE_ASSISTANT)
|
||||
job_debug_message("AC2 Assistant located, Player: [player]")
|
||||
assign_role(player, JOB_ALT_VISITOR) //VOREStation Edit - Visitor not Assistant
|
||||
|
||||
//For ones returning to lobby
|
||||
for(var/mob/new_player/player in unassigned)
|
||||
if(player.client.prefs.alternate_option == RETURN_TO_LOBBY)
|
||||
if(player.client.prefs.read_preference(/datum/preference/numeric/human/alternate_option) == RETURN_TO_LOBBY)
|
||||
player.ready = PLAYER_NOT_READY
|
||||
unassigned -= player
|
||||
return TRUE
|
||||
|
||||
Reference in New Issue
Block a user