mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-19 19:10:05 +01:00
Ports the TG globals controller and converts globals. (#18057)
* SDQL2 update * fix that verb * cl * fix that * toworld * this is pointless * update info * siiiiick.. * vv edit update * fix that * fix editing vars * fix VV * Port the /TG/ globals controller. * part 1 * part 2 * oops * part 3 * Hollow Purple * sadas * bsbsdb * muda na agaki ta * ids 1-15 * 16-31 * 41-75 * bring me back to how things used to be before i lost it all * the strength of mayhem * final touches * cl * protect some vars * update sdql2 to use glob * stuff? * forgot that is not defined there * whoops * observ * but it never gets better * a --------- Co-authored-by: Matt Atlas <liermattia@gmail.com>
This commit is contained in:
@@ -35,9 +35,9 @@
|
||||
var/obj/item/card/id/held_card = get_held_card()
|
||||
if (!held_card)
|
||||
return 0
|
||||
if(access_cent_ccia in held_card.access)
|
||||
if(ACCESS_CENT_CCIA in held_card.access)
|
||||
return 2
|
||||
else if((access_hop in held_card.access) || (access_captain in held_card.access))
|
||||
else if((ACCESS_HOP in held_card.access) || (ACCESS_CAPTAIN in held_card.access))
|
||||
return 1
|
||||
|
||||
/datum/computer_file/program/account_db/proc/create_transation(target, reason, amount)
|
||||
|
||||
@@ -59,7 +59,7 @@
|
||||
if(!istype(usr))
|
||||
return
|
||||
var/obj/item/card/id/I = usr.GetIdCard()
|
||||
if(!istype(I) || !I.registered_name || issilicon(usr) || (!(access_heads in I.access) && !(access_research in I.access) && !(access_mining in I.access)))
|
||||
if(!istype(I) || !I.registered_name || issilicon(usr) || (!(ACCESS_HEADS in I.access) && !(ACCESS_RESEARCH in I.access) && !(ACCESS_MINING in I.access)))
|
||||
to_chat(usr, SPAN_WARNING("Authentication error: Unable to locate ID with appropriate access to allow this operation."))
|
||||
return
|
||||
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
program_icon_state = "id"
|
||||
program_key_icon_state = "lightblue_key"
|
||||
extended_desc = "Program for programming employee ID cards to access parts of the station."
|
||||
required_access_run = access_change_ids
|
||||
required_access_download = access_change_ids
|
||||
required_access_run = ACCESS_CHANGE_IDS
|
||||
required_access_download = ACCESS_CHANGE_IDS
|
||||
usage_flags = PROGRAM_CONSOLE | PROGRAM_LAPTOP
|
||||
requires_ntnet = FALSE
|
||||
size = 8
|
||||
|
||||
+5
-5
@@ -4,8 +4,8 @@
|
||||
program_icon_state = "comm"
|
||||
program_key_icon_state = "lightblue_key"
|
||||
extended_desc = "Used to command and control the station. Can relay long-range communications."
|
||||
required_access_run = access_heads
|
||||
required_access_download = access_heads
|
||||
required_access_run = ACCESS_HEADS
|
||||
required_access_download = ACCESS_HEADS
|
||||
requires_ntnet = TRUE
|
||||
size = 12
|
||||
usage_flags = PROGRAM_CONSOLE | PROGRAM_LAPTOP
|
||||
@@ -324,7 +324,7 @@ Command action procs
|
||||
if((!(ROUND_IS_STARTED) || !evacuation_controller))
|
||||
return FALSE
|
||||
|
||||
if(!universe.OnShuttleCall(usr))
|
||||
if(!GLOB.universe.OnShuttleCall(usr))
|
||||
to_chat(user, SPAN_WARNING("A bluespace connection cannot be established! Please check the user manual for more information."))
|
||||
return FALSE
|
||||
|
||||
@@ -332,8 +332,8 @@ Command action procs
|
||||
to_chat(user, SPAN_WARNING("An evacuation cannot be sent at this time. Please try again later."))
|
||||
return FALSE
|
||||
|
||||
if(world.time < config.time_to_call_emergency_shuttle)
|
||||
to_chat(user, SPAN_WARNING("An evacuation cannot be sent at this time. Please wait another [round((config.time_to_call_emergency_shuttle-world.time)/600)] minute\s before trying again."))
|
||||
if(world.time < GLOB.config.time_to_call_emergency_shuttle)
|
||||
to_chat(user, SPAN_WARNING("An evacuation cannot be sent at this time. Please wait another [round((GLOB.config.time_to_call_emergency_shuttle-world.time)/600)] minute\s before trying again."))
|
||||
return FALSE
|
||||
|
||||
if(evacuation_controller.is_on_cooldown()) // Ten minute grace period to let the game get going without lolmetagaming. -- TLE
|
||||
|
||||
@@ -8,8 +8,8 @@
|
||||
size = 8
|
||||
requires_ntnet = TRUE
|
||||
available_on_ntnet = TRUE
|
||||
required_access_run = access_heads
|
||||
required_access_download = access_heads
|
||||
required_access_run = ACCESS_HEADS
|
||||
required_access_download = ACCESS_HEADS
|
||||
usage_flags = PROGRAM_CONSOLE
|
||||
tgui_id = "Docks"
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
size = 8
|
||||
requires_ntnet = TRUE
|
||||
available_on_ntnet = FALSE
|
||||
required_access_run = access_heads
|
||||
required_access_run = ACCESS_HEADS
|
||||
usage_flags = PROGRAM_CONSOLE | PROGRAM_LAPTOP
|
||||
tgui_id = "Teleporter"
|
||||
var/datum/weakref/pad_ref
|
||||
@@ -56,7 +56,7 @@
|
||||
var/list/area_index = list()
|
||||
|
||||
var/list/teleport_beacon_info = list()
|
||||
for(var/obj/item/device/radio/beacon/R as anything in teleportbeacons)
|
||||
for(var/obj/item/device/radio/beacon/R as anything in GLOB.teleportbeacons)
|
||||
var/turf/BT = get_turf(R)
|
||||
if(!BT)
|
||||
continue
|
||||
@@ -77,7 +77,7 @@
|
||||
data["teleport_beacons"] = teleport_beacon_info
|
||||
|
||||
var/list/teleport_implant_info = list()
|
||||
for(var/obj/item/implant/tracking/I in implants)
|
||||
for(var/obj/item/implant/tracking/I in GLOB.implants)
|
||||
if(!I.implanted || !ismob(I.loc))
|
||||
continue
|
||||
else
|
||||
@@ -124,7 +124,7 @@
|
||||
|
||||
if("beacon")
|
||||
var/obj/machinery/teleport/pad/linked_pad = pad_ref.resolve()
|
||||
var/obj/O = locate(params["beacon"]) in teleportbeacons
|
||||
var/obj/O = locate(params["beacon"]) in GLOB.teleportbeacons
|
||||
if(linked_pad.locked_obj)
|
||||
var/obj/LO = linked_pad.locked_obj.resolve()
|
||||
if(LO == O)
|
||||
@@ -139,7 +139,7 @@
|
||||
|
||||
if("implant")
|
||||
var/obj/machinery/teleport/pad/linked_pad = pad_ref.resolve()
|
||||
var/obj/O = locate(params["implant"]) in implants
|
||||
var/obj/O = locate(params["implant"]) in GLOB.implants
|
||||
if(linked_pad.locked_obj)
|
||||
var/obj/LO = linked_pad.locked_obj.resolve()
|
||||
if(LO == O)
|
||||
|
||||
Reference in New Issue
Block a user