mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-30 08:37:43 +01:00
[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:
co-authored by
Rohesie
Gandalf
parent
e4037532ff
commit
227b722820
@@ -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
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user