mirror of
https://github.com/Citadel-Station-13/Citadel-Station-13-RP.git
synced 2026-08-24 06:56:43 +01:00
access refactor, head of staff id mod consoles, tgui modules, this is a cry for help (#5040)
Co-authored-by: silicons <no@you.cat>
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
program_key_state = "id_key"
|
||||
program_menu_icon = "key"
|
||||
extended_desc = "Program for programming crew ID cards."
|
||||
required_access = access_change_ids
|
||||
required_access = ACCESS_COMMAND_CARDMOD
|
||||
requires_ntnet = 0
|
||||
size = 8
|
||||
|
||||
@@ -169,7 +169,6 @@
|
||||
if(computer && can_run(user, 1))
|
||||
id_card.assignment = "Dismissed"
|
||||
id_card.access = list()
|
||||
callHook("terminate_employee", list(id_card))
|
||||
if("edit")
|
||||
if(computer && can_run(user, 1))
|
||||
if(href_list["name"])
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
program_menu_icon = "flag"
|
||||
nanomodule_path = /datum/nano_module/program/comm
|
||||
extended_desc = "Used to command and control. Can relay long-range communications. This program can not be run on tablet computers."
|
||||
required_access = access_heads
|
||||
required_access = ACCESS_COMMAND_BRIDGE
|
||||
requires_ntnet = 1
|
||||
size = 12
|
||||
usage_flags = PROGRAM_CONSOLE | PROGRAM_LAPTOP
|
||||
@@ -97,7 +97,7 @@
|
||||
|
||||
/datum/nano_module/program/comm/proc/get_authentication_level(var/mob/user)
|
||||
if(program)
|
||||
if(program.can_run(user, 0, access_captain))
|
||||
if(program.can_run(user, 0, ACCESS_COMMAND_CAPTAIN))
|
||||
return 2
|
||||
else
|
||||
return program.can_run(user)
|
||||
|
||||
Reference in New Issue
Block a user