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:
silicons
2023-02-28 17:35:44 -06:00
committed by GitHub
co-authored by silicons
parent c6c7989a66
commit 2ac1c566b8
397 changed files with 4433 additions and 3630 deletions
@@ -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)