Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FEAT: Роли новичков добавлены в консоль ГП #678

Merged
merged 5 commits into from
Nov 16, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions modular_ss220/jobs/code/cards_ids.dm
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,39 @@ GLOBAL_LIST_INIT(Jobs_SS220, list("intern", "cadet", "trainee", "student"))

. = ..()

/obj/machinery/computer/card/ui_data(mob/user)
var/list/data = ..()

switch(mode)
if(IDCOMPUTER_SCREEN_TRANSFER) // JOB TRANSFER
PhantornRU marked this conversation as resolved.
Show resolved Hide resolved
if(modify)
if(!scan)
return data

if(!target_dept)
PhantornRU marked this conversation as resolved.
Show resolved Hide resolved
data["jobs_engineering"] |= "Trainee Engineer"
data["jobs_medical"] |= "Intern"
data["jobs_science"] |= "Student Scientist"
data["jobs_security"] |= "Security Cadet"
data["card_skins"] |= format_card_skins(GLOB.Jobs_SS220) // + format_card_skins(list("intern", "cadet", "trainee", "student"))

return data

/obj/machinery/computer/card/ui_act(action, params)
if(!..())
return FALSE
. = TRUE
PhantornRU marked this conversation as resolved.
Show resolved Hide resolved

switch(action)
if("skin")
if(!modify)
return FALSE
var/skin = params["skin_target"]
var/skin_list = GLOB.Jobs_SS220
if(skin in skin_list)
modify.icon_state = skin
return
PhantornRU marked this conversation as resolved.
Show resolved Hide resolved

/obj/item/card/id/medical/intern
name = "Intern ID"
registered_name = "Intern"
Expand Down
5 changes: 5 additions & 0 deletions modular_ss220/jobs/code/job/engineering_jobs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,8 @@
head = /obj/item/clothing/head/soft/orange
if("Engineer Student")
head = /obj/item/clothing/head/beret/eng

// Identification jobs for console
/datum/job/engineer/trainee
title = "Trainee Engineer"
hidden_from_job_prefs = TRUE
5 changes: 5 additions & 0 deletions modular_ss220/jobs/code/job/medical_jobs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,8 @@
if("Student Medical Doctor")
head = /obj/item/clothing/head/surgery/green/light
uniform = /obj/item/clothing/under/rank/medical/scrubs/green/light

// Identification jobs for console
/datum/job/doctor/intern
title = "Intern"
hidden_from_job_prefs = TRUE
5 changes: 5 additions & 0 deletions modular_ss220/jobs/code/job/science_jobs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,8 @@
uniform = /obj/item/clothing/under/rank/scientist/student/assistant
if(H.gender == FEMALE)
uniform = /obj/item/clothing/under/rank/scientist/student/assistant/skirt

// Identification jobs for console
/datum/job/scientist/student
title = "Student Scientist"
hidden_from_job_prefs = TRUE
5 changes: 5 additions & 0 deletions modular_ss220/jobs/code/job/security_jobs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,8 @@
uniform = /obj/item/clothing/under/rank/security/cadet/assistant/skirt
if("Security Graduate")
head = /obj/item/clothing/head/beret/sec

// Identification jobs for console
/datum/job/officer/cadet
title = "Security Cadet"
hidden_from_job_prefs = TRUE