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:
Matt Atlas
2023-12-26 01:16:02 +00:00
committed by GitHub
co-authored by Matt Atlas
parent 19292f01d3
commit cadd19beac
966 changed files with 4785 additions and 4784 deletions
+4 -4
View File
@@ -54,7 +54,7 @@ won't update every console in existence) but it's more of a hassle to do. Also,
var/protolathe_category = "All"
var/imprinter_category = "All"
req_access = list(access_tox) //Data and setting manipulation requires scientist access.
req_access = list(ACCESS_TOX) //Data and setting manipulation requires scientist access.
/obj/machinery/computer/rdconsole/proc/CallMaterialName(var/ID)
var/return_name = ID
@@ -314,14 +314,14 @@ won't update every console in existence) but it's more of a hassle to do. Also,
sync = !sync
else if(href_list["protolathe_category"])
var/choice = tgui_input_list(usr, "Which category do you wish to display?", "Protolathe Categories", designs_protolathe_categories+"All")
var/choice = tgui_input_list(usr, "Which category do you wish to display?", "Protolathe Categories", GLOB.designs_protolathe_categories+"All")
if(!choice)
return
protolathe_category = choice
updateUsrDialog()
else if(href_list["imprinter_category"])
var/choice = tgui_input_list(usr, "Which category do you wish to display?", "Printer Categories", designs_imprinter_categories+"All")
var/choice = tgui_input_list(usr, "Which category do you wish to display?", "Printer Categories", GLOB.designs_imprinter_categories+"All")
if(!choice)
return
imprinter_category = choice
@@ -867,7 +867,7 @@ won't update every console in existence) but it's more of a hassle to do. Also,
/obj/machinery/computer/rdconsole/robotics
name = "robotics R&D console"
id = 1
req_access = list(access_robotics)
req_access = list(ACCESS_ROBOTICS)
allow_analyzer = FALSE
/obj/machinery/computer/rdconsole/core
+4 -4
View File
@@ -45,8 +45,8 @@ research holder datum.
// Global design lists
var/global/list/designs = null
var/global/list/designs_protolathe_categories = list()
var/global/list/designs_imprinter_categories = list()
GLOBAL_LIST_EMPTY(designs_protolathe_categories)
GLOBAL_LIST_EMPTY(designs_imprinter_categories)
/datum/research //Holder for all the existing, archived, and known tech. Individual to console.
var/list/known_tech = list() //List of locally known tech. Datum/tech go here.
@@ -84,9 +84,9 @@ var/global/list/designs_imprinter_categories = list()
var/datum/design/D = new T
designs[D.type] = D
if(D.build_type & PROTOLATHE)
designs_protolathe_categories |= D.p_category
GLOB.designs_protolathe_categories |= D.p_category
if(D.build_type & IMPRINTER)
designs_imprinter_categories |= D.p_category
GLOB.designs_imprinter_categories |= D.p_category
//Checks to see if design has all the required pre-reqs.
//Input: datum/design; Output: 0/1 (false/true)
+1 -1
View File
@@ -13,7 +13,7 @@
var/produces_heat = TRUE
idle_power_usage = 800
var/delay = 10
req_access = list(access_rd) //Only the R&D can change server settings.
req_access = list(ACCESS_RD) //Only the R&D can change server settings.
var/list/linked_processors
@@ -107,7 +107,7 @@
msg+="!"
var/list/listening = viewers(holder_atom)
for(var/mob/M in mob_list)
for(var/mob/M in GLOB.mob_list)
if (!M.client)
continue //skip monkeys and leavers
if (istype(M, /mob/abstract/new_player))
@@ -61,7 +61,7 @@
/obj/structure/closet/secure_closet/xenoarchaeologist
name = "xenoarchaeologist's locker"
req_access = list(access_xenoarch)
req_access = list(ACCESS_XENOARCH)
icon_state = "science"
/obj/structure/closet/secure_closet/xenoarchaeologist/fill()
@@ -106,9 +106,9 @@
//---- Isolation room air alarms
/obj/machinery/alarm/isolation
req_one_access = list(access_research, access_atmospherics, access_engine_equip)
req_one_access = list(ACCESS_RESEARCH, ACCESS_ATMOSPHERICS, ACCESS_ENGINE_EQUIP)
/obj/machinery/alarm/monitor/isolation
req_one_access = list(access_research, access_atmospherics, access_engine_equip)
req_one_access = list(ACCESS_RESEARCH, ACCESS_ATMOSPHERICS, ACCESS_ENGINE_EQUIP)
locked = 0
remote_control = 1