Replaces all var/const with #define

This commit is contained in:
AffectedArc07
2020-01-28 21:25:20 +00:00
parent 076ef673cd
commit c64bc93649
269 changed files with 1481 additions and 1474 deletions
@@ -3,7 +3,7 @@
filedesc = "ID card modification program"
program_icon_state = "id"
extended_desc = "Program for programming employee ID cards to access parts of the station."
transfer_access = access_change_ids
transfer_access = ACCESS_CHANGE_IDS
requires_ntnet = 0
size = 8
var/is_centcom = 0
@@ -57,7 +57,7 @@
return 0
/datum/computer_file/program/card_mod/proc/check_access(obj/item/I)
if(access_change_ids in I.GetAccess())
if(ACCESS_CHANGE_IDS in I.GetAccess())
return 1
return 0
@@ -3,7 +3,7 @@
filedesc = "Command and communications"
program_icon_state = "comm"
extended_desc = "Used to command and control the station. Can relay long-range communications. This program can not be run on tablet computers."
required_access = access_heads
required_access = ACCESS_HEADS
requires_ntnet = 1
size = 12
usage_flags = PROGRAM_CONSOLE | PROGRAM_LAPTOP
@@ -175,10 +175,10 @@
return
var/list/access = usr.get_access()
if(access_heads in access)
if(ACCESS_HEADS in access)
authenticated = COMM_AUTHENTICATION_MIN
if(access_captain in access)
if(ACCESS_CAPTAIN in access)
authenticated = COMM_AUTHENTICATION_MAX
var/mob/living/carbon/human/H = usr
var/obj/item/card/id = H.get_idcard(TRUE)
@@ -221,7 +221,7 @@
var/obj/item/pda/pda = I
I = pda.id
if(I && istype(I))
if(access_captain in I.access)
if(ACCESS_CAPTAIN in I.access)
change_security_level(usr, text2num(href_list["level"]))
else
to_chat(usr, "<span class='warning'>You are not authorized to do this.</span>")
@@ -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 = 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 = access_construction
transfer_access = ACCESS_CONSTRUCTION
network_destination = "supermatter monitoring system"
size = 5
var/last_status = SUPERMATTER_INACTIVE
@@ -154,7 +154,7 @@
channel = null
return 1
var/mob/living/user = usr
if(can_run(user, 1, access_network))
if(can_run(user, 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")
@@ -6,7 +6,7 @@
size = 12
requires_ntnet = 0
usage_flags = PROGRAM_CONSOLE
transfer_access = access_heads
transfer_access = ACCESS_HEADS
available_on_ntnet = 1
var/restoring = FALSE
@@ -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 = access_network //Network control is a more secure program.
required_access = ACCESS_NETWORK //Network control is a more secure program.
available_on_ntnet = 1
/datum/computer_file/program/ntnetmonitor/ui_interact(mob/user, ui_key = "main", var/datum/nanoui/ui = null, var/force_open = 1)