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

Working Joe PDA #4810

Merged
Merged
Show file tree
Hide file tree
Changes from 4 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
2 changes: 1 addition & 1 deletion code/game/machinery/ARES/ARES_interface_apollo.dm
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
var/current_menu = "login"
var/last_menu = ""

var/authentication = ARES_ACCESS_BASIC
var/authentication = APOLLO_ACCESS_LOGOUT
/// The last person to login.
var/last_login

Expand Down
34 changes: 34 additions & 0 deletions code/game/machinery/ARES/ARES_procs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -258,3 +258,37 @@ GLOBAL_LIST_INIT(maintenance_categories, list(
return "Working Joe"
if(APOLLO_ACCESS_DEBUG)//6
return "AI Service Technician"

/obj/item/device/working_joe_pda/proc/get_ares_access(obj/item/card/id/card)
if(ACCESS_ARES_DEBUG in card.access)
return APOLLO_ACCESS_DEBUG
switch(card.assignment)
if(JOB_WORKING_JOE)
return APOLLO_ACCESS_JOE
if(JOB_CHIEF_ENGINEER, JOB_SYNTH, JOB_CO)
return APOLLO_ACCESS_AUTHED
if(ACCESS_MARINE_AI in card.access)
return APOLLO_ACCESS_AUTHED
if(ACCESS_MARINE_AI_TEMP in card.access)
return APOLLO_ACCESS_TEMP
if((ACCESS_MARINE_SENIOR in card.access ) || (ACCESS_MARINE_ENGINEERING in card.access) || (ACCESS_WY_GENERAL in card.access))
return APOLLO_ACCESS_REPORTER
else
return APOLLO_ACCESS_REQUEST

/obj/item/device/working_joe_pda/proc/ares_auth_to_text(access_level)
switch(access_level)
if(APOLLO_ACCESS_LOGOUT)//0
return "Logged Out"
if(APOLLO_ACCESS_REQUEST)//1
return "Unauthorized Personnel"
if(APOLLO_ACCESS_REPORTER)//2
return "Validated Incident Reporter"
if(APOLLO_ACCESS_TEMP)//3
return "Authorized Visitor"
if(APOLLO_ACCESS_AUTHED)//4
return "Certified Personnel"
if(APOLLO_ACCESS_JOE)//5
return "Working Joe"
if(APOLLO_ACCESS_DEBUG)//6
return "AI Service Technician"
Loading