mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 03:27:05 +01:00
Makes all global variables handled by the GLOB controller (#13152)
* Handlers converted, now to fix 3532 compile errors * 3532 compile fixes later, got runtimes on startup * Well the server loads now atleast * Take 2 * Oops
This commit is contained in:
@@ -256,7 +256,7 @@
|
||||
return FALSE
|
||||
var/count = 0
|
||||
var/maxcount = 1
|
||||
for(var/tempdir in cardinal)
|
||||
for(var/tempdir in GLOB.cardinal)
|
||||
var/turf/simulated/wall = get_step(user.loc, tempdir)
|
||||
if(istype(wall))
|
||||
maxcount++
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
|
||||
/obj/machinery/hydroponics/New()
|
||||
..()
|
||||
var/datum/atom_hud/data/hydroponic/hydro_hud = huds[DATA_HUD_HYDROPONIC]
|
||||
var/datum/atom_hud/data/hydroponic/hydro_hud = GLOB.huds[DATA_HUD_HYDROPONIC]
|
||||
prepare_huds()
|
||||
hydro_hud.add_to_hud(src)
|
||||
plant_hud_set_nutrient()
|
||||
@@ -102,7 +102,7 @@
|
||||
|
||||
while(processing_atoms.len)
|
||||
var/atom/a = processing_atoms[1]
|
||||
for(var/step_dir in cardinal)
|
||||
for(var/step_dir in GLOB.cardinal)
|
||||
var/obj/machinery/hydroponics/h = locate() in get_step(a, step_dir)
|
||||
// Soil plots aren't dense
|
||||
if(h && h.using_irrigation && h.density && !(h in connected) && !(h in processing_atoms))
|
||||
@@ -306,7 +306,7 @@
|
||||
|
||||
/obj/machinery/hydroponics/proc/update_icon_hoses()
|
||||
var/n = 0
|
||||
for(var/Dir in cardinal)
|
||||
for(var/Dir in GLOB.cardinal)
|
||||
var/obj/machinery/hydroponics/t = locate() in get_step(src,Dir)
|
||||
if(t && t.using_irrigation && using_irrigation)
|
||||
n += Dir
|
||||
|
||||
@@ -1,25 +1,25 @@
|
||||
var/list/chem_t1_reagents = list(
|
||||
GLOBAL_LIST_INIT(chem_t1_reagents, list(
|
||||
"hydrogen", "oxygen", "silicon",
|
||||
"phosphorus", "sulfur", "carbon",
|
||||
"nitrogen", "water"
|
||||
)
|
||||
))
|
||||
|
||||
var/list/chem_t2_reagents = list(
|
||||
GLOBAL_LIST_INIT(chem_t2_reagents, list(
|
||||
"lithium", "copper", "mercury",
|
||||
"sodium", "iodine", "bromine"
|
||||
) // "sugar", "sacid" removed because they are already in roundstart plants
|
||||
)) // "sugar", "sacid" removed because they are already in roundstart plants
|
||||
|
||||
var/list/chem_t3_reagents = list(
|
||||
GLOBAL_LIST_INIT(chem_t3_reagents, list(
|
||||
"ethanol", "chlorine", "potassium",
|
||||
"aluminum", "radium", "fluorine",
|
||||
"iron", "fuel", "silver",
|
||||
"stable_plasma"
|
||||
)
|
||||
))
|
||||
|
||||
var/list/chem_t4_reagents = list(
|
||||
GLOBAL_LIST_INIT(chem_t4_reagents, list(
|
||||
"oil", "ash", "acetone",
|
||||
"saltpetre", "ammonia", "diethylamine"
|
||||
)
|
||||
))
|
||||
|
||||
/obj/item/seeds/sample
|
||||
name = "plant sample"
|
||||
|
||||
Reference in New Issue
Block a user