mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-12 15:47:04 +01:00
jobs, access and radio to defines (#18297)
* jobs, access and radio to defines * . * . * urg * . * . * finish the radio freqs * why * . * . * ticker initial * eh --------- Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
var/progress = 0
|
||||
var/target_progress = 300
|
||||
var/datum/access/target_access = null
|
||||
var/list/restricted_access_codes = list(access_change_ids, access_network) // access codes that are not hackable due to balance reasons
|
||||
var/list/restricted_access_codes = list(ACCESS_CHANGE_IDS, ACCESS_NETWORK) // access codes that are not hackable due to balance reasons
|
||||
|
||||
/datum/computer_file/program/access_decrypter/kill_program(var/forced)
|
||||
reset()
|
||||
|
||||
@@ -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_CHANGE_IDS
|
||||
requires_ntnet = FALSE
|
||||
size = 8
|
||||
category = PROG_COMMAND
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
program_menu_icon = "flag"
|
||||
tguimodule_path = /datum/tgui_module/communications/ntos
|
||||
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_HEADS
|
||||
requires_ntnet = TRUE
|
||||
size = 12
|
||||
usage_flags = PROGRAM_CONSOLE | PROGRAM_LAPTOP
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
program_key_state = "atmos_key"
|
||||
program_menu_icon = "alert"
|
||||
extended_desc = "This program provides visual interface for the engineering alarm system."
|
||||
required_access = access_engine
|
||||
required_access = ACCESS_ENGINE
|
||||
requires_ntnet = TRUE
|
||||
network_destination = "alarm monitoring network"
|
||||
size = 5
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
program_key_state = "atmos_key"
|
||||
program_menu_icon = "shuffle"
|
||||
extended_desc = "This program allows remote control of air alarms. This program can not be run on tablet computers."
|
||||
required_access = access_atmospherics
|
||||
required_access = ACCESS_ATMOSPHERICS
|
||||
requires_ntnet = TRUE
|
||||
network_destination = "atmospheric control system"
|
||||
requires_ntnet_feature = NTNET_SYSTEMCONTROL
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
program_menu_icon = "battery-3"
|
||||
extended_desc = "This program connects to sensors to provide information about electrical systems"
|
||||
ui_header = "power_norm.gif"
|
||||
required_access = access_engine
|
||||
required_access = ACCESS_ENGINE
|
||||
requires_ntnet = TRUE
|
||||
network_destination = "power monitoring system"
|
||||
size = 9
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
program_key_state = "rd_key"
|
||||
program_menu_icon = "power"
|
||||
extended_desc = "This program allows remote control of power distribution systems. This program can not be run on tablet computers."
|
||||
required_access = access_engine
|
||||
required_access = ACCESS_ENGINE
|
||||
requires_ntnet = TRUE
|
||||
network_destination = "RCON remote control system"
|
||||
requires_ntnet_feature = NTNET_SYSTEMCONTROL
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
program_key_state = "atmos_key"
|
||||
program_menu_icon = "wrench"
|
||||
extended_desc = "This program allows for remote monitoring and control of emergency shutoff valves."
|
||||
required_access = access_engine
|
||||
required_access = ACCESS_ENGINE
|
||||
requires_ntnet = TRUE
|
||||
network_destination = "shutoff valve control computer"
|
||||
size = 5
|
||||
|
||||
+1
-1
@@ -7,7 +7,7 @@
|
||||
program_menu_icon = "notice"
|
||||
extended_desc = "This program connects to specially calibrated supermatter sensors to provide information on the status of supermatter-based engines."
|
||||
ui_header = "smmon_0.gif"
|
||||
required_access = access_engine
|
||||
required_access = ACCESS_ENGINE
|
||||
requires_ntnet = TRUE
|
||||
network_destination = "supermatter monitoring system"
|
||||
size = 5
|
||||
|
||||
@@ -10,22 +10,22 @@
|
||||
if(NETWORK_THUNDER)
|
||||
return 0
|
||||
if(NETWORK_ENGINE,NETWORK_ENGINEERING,NETWORK_ALARM_ATMOS,NETWORK_ALARM_FIRE,NETWORK_ALARM_POWER)
|
||||
return access_engine
|
||||
return ACCESS_ENGINE
|
||||
if(NETWORK_CIRCUITS)
|
||||
return access_research
|
||||
return ACCESS_RESEARCH
|
||||
if(NETWORK_MINE)
|
||||
return access_qm
|
||||
return ACCESS_QM
|
||||
if(NETWORK_ERT)
|
||||
return access_cent_specops
|
||||
return ACCESS_CENT_SPECOPS
|
||||
//VOREStation Add Start
|
||||
if(NETWORK_TALON_SHIP)
|
||||
return access_talon
|
||||
return ACCESS_TALON
|
||||
if(NETWORK_TALON_HELMETS)
|
||||
return access_talon
|
||||
return ACCESS_TALON
|
||||
//VOREStation Add End
|
||||
|
||||
if(network in using_map.station_networks)
|
||||
return access_security // Default for all other station networks
|
||||
return ACCESS_SECURITY // Default for all other station networks
|
||||
else
|
||||
return 999 //Inaccessible if not a station network and not mentioned above
|
||||
|
||||
|
||||
@@ -84,7 +84,7 @@
|
||||
if(channel)
|
||||
channel.remove_client(src) // We shouldn't be in channel's user list, but just in case...
|
||||
return TRUE
|
||||
if(isliving(ui.user) && can_run(ui.user, TRUE, access_network))
|
||||
if(isliving(ui.user) && can_run(ui.user, TRUE, ACCESS_NETWORK))
|
||||
for(var/datum/ntnet_conversation/chan as anything in ntnet_global.chat_channels)
|
||||
chan.remove_client(src)
|
||||
netadmin_mode = TRUE
|
||||
@@ -169,7 +169,7 @@
|
||||
|
||||
/datum/computer_file/program/chatclient/tgui_static_data(mob/user)
|
||||
var/list/data = list()
|
||||
data["can_admin"] = can_run(user, FALSE, access_network)
|
||||
data["can_admin"] = can_run(user, FALSE, ACCESS_NETWORK)
|
||||
return data
|
||||
|
||||
/datum/computer_file/program/chatclient/tgui_data(mob/user)
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
program_key_state = "med_key"
|
||||
program_menu_icon = "heart"
|
||||
extended_desc = "This program connects to life signs monitoring system to provide basic information on crew health."
|
||||
required_access = access_medical
|
||||
required_access = ACCESS_MEDICAL
|
||||
requires_ntnet = TRUE
|
||||
network_destination = "crew lifesigns monitoring system"
|
||||
size = 11
|
||||
|
||||
+2
-2
@@ -9,7 +9,7 @@
|
||||
requires_ntnet = TRUE
|
||||
available_on_ntnet = TRUE
|
||||
tgui_id = "NtosEmailAdministration"
|
||||
required_access = access_network
|
||||
required_access = ACCESS_NETWORK
|
||||
category = PROG_ADMIN
|
||||
|
||||
var/datum/computer_file/data/email_account/current_account = null
|
||||
@@ -67,7 +67,7 @@
|
||||
|
||||
// High security - can only be operated when the user has an ID with access on them.
|
||||
var/obj/item/card/id/I = ui.user.GetIdCard()
|
||||
if(!istype(I) || !(access_network in I.GetAccess()))
|
||||
if(!istype(I) || !(ACCESS_NETWORK in I.GetAccess()))
|
||||
return TRUE
|
||||
|
||||
switch(action)
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
extended_desc = "This program monitors the local NTNet network, provides access to logging systems, and allows for configuration changes"
|
||||
size = 12
|
||||
requires_ntnet = TRUE
|
||||
required_access = access_network
|
||||
required_access = ACCESS_NETWORK
|
||||
available_on_ntnet = TRUE
|
||||
tgui_id = "NtosNetMonitor"
|
||||
category = PROG_ADMIN
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
filedesc = "Alarm Monitoring (Security)"
|
||||
extended_desc = "This program provides visual interface for the security alarm system."
|
||||
tguimodule_path = /datum/tgui_module/alarm_monitor/security/ntos
|
||||
required_access = access_security
|
||||
required_access = ACCESS_SECURITY
|
||||
|
||||
@@ -19,7 +19,7 @@ var/warrant_uid = 0
|
||||
program_menu_icon = "star"
|
||||
requires_ntnet = TRUE
|
||||
available_on_ntnet = TRUE
|
||||
required_access = access_security
|
||||
required_access = ACCESS_SECURITY
|
||||
usage_flags = PROGRAM_ALL
|
||||
tgui_id = "NtosDigitalWarrant"
|
||||
category = PROG_SEC
|
||||
@@ -73,7 +73,7 @@ var/warrant_uid = 0
|
||||
// which also use RFID scanning to allow or disallow access to some functions. Anyone can view warrants, editing requires ID. This also prevents situations where you show a tablet
|
||||
// to someone who is to be arrested, which allows them to change the stuff there.
|
||||
var/obj/item/card/id/I = ui.user.GetIdCard()
|
||||
if(!istype(I) || !I.registered_name || !(access_security in I.GetAccess()))
|
||||
if(!istype(I) || !I.registered_name || !(ACCESS_SECURITY in I.GetAccess()))
|
||||
to_chat(ui.user, "Authentication error: Unable to locate ID with appropriate access to allow this operation.")
|
||||
return
|
||||
|
||||
@@ -136,7 +136,7 @@ var/warrant_uid = 0
|
||||
|
||||
if("editwarrantauth")
|
||||
. = TRUE
|
||||
if(!(access_hos in I.GetAccess())) // VOREStation edit begin
|
||||
if(!(ACCESS_HOS in I.GetAccess())) // VOREStation edit begin
|
||||
to_chat(ui.user, span_warning("You don't have the access to do this!"))
|
||||
return // VOREStation edit end
|
||||
activewarrant.fields["auth"] = "[I.registered_name] - [I.assignment ? I.assignment : "(Unknown)"]"
|
||||
|
||||
Reference in New Issue
Block a user