mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-17 10:05:27 +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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user