Changes all access const to be a define
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
size = 12
|
||||
requires_ntnet = 0
|
||||
usage_flags = PROGRAM_CONSOLE
|
||||
transfer_access = GLOB.access_heads
|
||||
transfer_access = ACCESS_HEADS
|
||||
available_on_ntnet = 1
|
||||
tgui_id = "ntos_ai_restorer"
|
||||
ui_x = 600
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
filedesc = "ID Card Modification"
|
||||
program_icon_state = "id"
|
||||
extended_desc = "Program for programming employee ID cards to access parts of the station."
|
||||
transfer_access = GLOB.access_heads
|
||||
transfer_access = ACCESS_HEADS
|
||||
requires_ntnet = 0
|
||||
size = 8
|
||||
tgui_id = "ntos_card"
|
||||
@@ -448,25 +448,25 @@
|
||||
var/obj/item/weapon/card/id/auth_card = card_slot.stored_card2
|
||||
if(auth_card)
|
||||
region_access = list()
|
||||
if(GLOB.access_change_ids in auth_card.GetAccess())
|
||||
if(ACCESS_CHANGE_IDS in auth_card.GetAccess())
|
||||
minor = 0
|
||||
authenticated = 1
|
||||
return 1
|
||||
else
|
||||
if((GLOB.access_hop in auth_card.access) && ((target_dept==1) || !target_dept))
|
||||
if((ACCESS_HOP in auth_card.access) && ((target_dept==1) || !target_dept))
|
||||
region_access |= 1
|
||||
region_access |= 6
|
||||
get_subordinates("Head of Personnel")
|
||||
if((GLOB.access_hos in auth_card.access) && ((target_dept==2) || !target_dept))
|
||||
if((ACCESS_HOS in auth_card.access) && ((target_dept==2) || !target_dept))
|
||||
region_access |= 2
|
||||
get_subordinates("Head of Security")
|
||||
if((GLOB.access_cmo in auth_card.access) && ((target_dept==3) || !target_dept))
|
||||
if((ACCESS_CMO in auth_card.access) && ((target_dept==3) || !target_dept))
|
||||
region_access |= 3
|
||||
get_subordinates("Chief Medical Officer")
|
||||
if((GLOB.access_rd in auth_card.access) && ((target_dept==4) || !target_dept))
|
||||
if((ACCESS_RD in auth_card.access) && ((target_dept==4) || !target_dept))
|
||||
region_access |= 4
|
||||
get_subordinates("Research Director")
|
||||
if((GLOB.access_ce in auth_card.access) && ((target_dept==5) || !target_dept))
|
||||
if((ACCESS_CE in auth_card.access) && ((target_dept==5) || !target_dept))
|
||||
region_access |= 5
|
||||
get_subordinates("Chief Engineer")
|
||||
if(region_access.len)
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
extended_desc = "This program monitors stationwide NTNet network, provides access to logging systems, and allows for configuration changes"
|
||||
size = 12
|
||||
requires_ntnet = 1
|
||||
required_access = GLOB.access_network //Network control is a more secure program.
|
||||
required_access = ACCESS_NETWORK //NETWORK CONTROL IS A MORE SECURE PROGRAM.
|
||||
available_on_ntnet = 1
|
||||
tgui_id = "ntos_net_monitor"
|
||||
|
||||
|
||||
@@ -85,7 +85,7 @@
|
||||
channel = null
|
||||
return 1
|
||||
var/mob/living/user = usr
|
||||
if(can_run(usr, 1, GLOB.access_network))
|
||||
if(can_run(usr, 1, ACCESS_NETWORK))
|
||||
if(channel)
|
||||
var/response = alert(user, "Really engage admin-mode? You will be disconnected from your current channel!", "NTNRC Admin mode", "Yes", "No")
|
||||
if(response == "Yes")
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
program_icon_state = "power_monitor"
|
||||
extended_desc = "This program connects to sensors around the station to provide information about electrical systems"
|
||||
ui_header = "power_norm.gif"
|
||||
transfer_access = GLOB.access_engine
|
||||
transfer_access = ACCESS_ENGINE
|
||||
usage_flags = PROGRAM_CONSOLE
|
||||
requires_ntnet = 0
|
||||
network_destination = "power monitoring system"
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
program_icon_state = "smmon_0"
|
||||
extended_desc = "This program connects to specially calibrated supermatter sensors to provide information on the status of supermatter-based engines."
|
||||
requires_ntnet = TRUE
|
||||
transfer_access = GLOB.access_engine
|
||||
transfer_access = ACCESS_ENGINE
|
||||
network_destination = "supermatter monitoring system"
|
||||
size = 5
|
||||
tgui_id = "ntos_supermatter_monitor"
|
||||
|
||||
Reference in New Issue
Block a user