[MIRROR] Job refactor: strings to references and typepaths [This could seriously break things :)] (#7006)

* Job refactor: strings to references and typepaths

* 0

* holy fuck

* Update preferences.dm

* Update preferences.dm

* Update preferences.dm

* Update preferences.dm

Co-authored-by: Rohesie <rohesie@gmail.com>
Co-authored-by: Gandalf <jzo123@hotmail.com>
This commit is contained in:
SkyratBot
2021-07-28 21:12:42 +01:00
committed by GitHub
co-authored by Rohesie Gandalf
parent e4037532ff
commit 227b722820
229 changed files with 2026 additions and 1561 deletions
+1 -1
View File
@@ -268,7 +268,7 @@
// the shuttle system doesn't know who these people are, but they
// must be important, surely
var/obj/item/card/id/ID = new(src)
var/datum/job/J = pick(SSjob.occupations)
var/datum/job/J = pick(SSjob.joinable_occupations)
ID.registered_name = S.random_name(pick(MALE, FEMALE))
ID.assignment = J.title
+2 -2
View File
@@ -215,8 +215,8 @@
/obj/structure/table/wood/bar/proc/is_barstaff(mob/living/user)
. = FALSE
if(ishuman(user))
var/mob/living/carbon/human/H = user
if(H.mind && H.mind.assigned_role == "Bartender")
var/mob/living/carbon/human/human_user = user
if(is_bartender_job(human_user.mind?.assigned_role))
return TRUE
var/obj/item/card/id/ID = user.get_idcard(FALSE)