mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-14 00:26:02 +01:00
code/global.dm => code/_global_vars/ (#17244)
* 1 * Full conversion * . * . --------- Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
@@ -170,7 +170,7 @@
|
||||
|
||||
#ifdef CARDINAL_INPUT_ONLY
|
||||
|
||||
/// Movement dir of the most recently pressed movement key. Used in cardinal-only movement mode.
|
||||
/// Movement dir of the most recently pressed movement key. Used in GLOB.cardinal-only movement mode.
|
||||
var/last_move_dir_pressed = NONE
|
||||
|
||||
#endif
|
||||
|
||||
@@ -162,8 +162,8 @@
|
||||
stat_panel.reinitialize()
|
||||
|
||||
//Logs all hrefs
|
||||
if(config && CONFIG_GET(flag/log_hrefs) && href_logfile)
|
||||
WRITE_LOG(href_logfile, "[src] (usr:[usr])</small> || [hsrc ? "[hsrc] " : ""][href]")
|
||||
if(config && CONFIG_GET(flag/log_hrefs) && GLOB.href_logfile)
|
||||
WRITE_LOG(GLOB.href_logfile, "[src] (usr:[usr])</small> || [hsrc ? "[hsrc] " : ""][href]")
|
||||
|
||||
//byond bug ID:2256651
|
||||
if (asset_cache_job && (asset_cache_job in completed_asset_jobs))
|
||||
@@ -307,10 +307,10 @@
|
||||
connection_realtime = world.realtime
|
||||
connection_timeofday = world.timeofday
|
||||
|
||||
if(custom_event_msg && custom_event_msg != "")
|
||||
if(GLOB.custom_event_msg && GLOB.custom_event_msg != "")
|
||||
to_chat(src, "<h1 class='alert'>Custom Event</h1>")
|
||||
to_chat(src, "<h2 class='alert'>A custom event is taking place. OOC Info:</h2>")
|
||||
to_chat(src, span_alert("[custom_event_msg]"))
|
||||
to_chat(src, span_alert("[GLOB.custom_event_msg]"))
|
||||
to_chat(src, "<br>")
|
||||
|
||||
if(!winexists(src, "asset_cache_browser")) // The client is using a custom skin, tell them.
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
pref.custom_link = save_data["custom_link"]
|
||||
//Flavour text for robots.
|
||||
pref.flavour_texts_robot["Default"] = save_data["flavour_texts_robot_Default"]
|
||||
for(var/module in robot_module_types)
|
||||
for(var/module in GLOB.robot_module_types)
|
||||
pref.flavour_texts_robot[module] = save_data["flavour_texts_robot_[module]"]
|
||||
|
||||
/datum/category_item/player_setup_item/general/flavor/save_character(list/save_data)
|
||||
@@ -31,7 +31,7 @@
|
||||
save_data["custom_link"] = pref.custom_link
|
||||
|
||||
save_data["flavour_texts_robot_Default"] = pref.flavour_texts_robot["Default"]
|
||||
for(var/module in robot_module_types)
|
||||
for(var/module in GLOB.robot_module_types)
|
||||
save_data["flavour_texts_robot_[module]"] = pref.flavour_texts_robot[module]
|
||||
|
||||
/datum/category_item/player_setup_item/general/flavor/sanitize_character()
|
||||
@@ -151,7 +151,7 @@
|
||||
HTML += "<a href='byond://?src=\ref[src];flavour_text_robot=Default'>Default:</a> "
|
||||
HTML += TextPreview(pref.flavour_texts_robot["Default"])
|
||||
HTML += "<hr />"
|
||||
for(var/module in robot_module_types)
|
||||
for(var/module in GLOB.robot_module_types)
|
||||
HTML += "<a href='byond://?src=\ref[src];flavour_text_robot=[module]'>[module]:</a> "
|
||||
HTML += TextPreview(pref.flavour_texts_robot[module])
|
||||
HTML += "<br>"
|
||||
|
||||
@@ -242,7 +242,7 @@ var/list/preferences_datums = list()
|
||||
BG.icon_state = bgstate
|
||||
BG.screen_loc = preview_screen_locs["BG"]
|
||||
|
||||
for(var/D in global.cardinal)
|
||||
for(var/D in global.GLOB.cardinal)
|
||||
var/obj/screen/setup_preview/O = LAZYACCESS(char_render_holders, "[D]")
|
||||
if(!O)
|
||||
O = new
|
||||
|
||||
@@ -49,7 +49,7 @@ var/list/spawntypes = list()
|
||||
|
||||
/datum/spawnpoint/arrivals/New()
|
||||
..()
|
||||
turfs = latejoin
|
||||
turfs = GLOB.latejoin
|
||||
|
||||
/datum/spawnpoint/gateway
|
||||
display_name = "Gateway"
|
||||
@@ -57,7 +57,7 @@ var/list/spawntypes = list()
|
||||
|
||||
/datum/spawnpoint/gateway/New()
|
||||
..()
|
||||
turfs = latejoin_gateway
|
||||
turfs = GLOB.latejoin_gateway
|
||||
/* VOREStation Edit
|
||||
/datum/spawnpoint/elevator
|
||||
display_name = "Elevator"
|
||||
@@ -74,7 +74,7 @@ var/list/spawntypes = list()
|
||||
|
||||
/datum/spawnpoint/cryo/New()
|
||||
..()
|
||||
turfs = latejoin_cryo
|
||||
turfs = GLOB.latejoin_cryo
|
||||
|
||||
/datum/spawnpoint/cyborg
|
||||
display_name = "Cyborg Storage"
|
||||
@@ -83,24 +83,24 @@ var/list/spawntypes = list()
|
||||
|
||||
/datum/spawnpoint/cyborg/New()
|
||||
..()
|
||||
turfs = latejoin_cyborg
|
||||
turfs = GLOB.latejoin_cyborg
|
||||
|
||||
/obj/effect/landmark/arrivals
|
||||
name = "JoinLateShuttle"
|
||||
delete_me = 1
|
||||
|
||||
/obj/effect/landmark/arrivals/Initialize(mapload)
|
||||
latejoin += loc
|
||||
GLOB.latejoin += loc
|
||||
. = ..()
|
||||
|
||||
var/global/list/latejoin_tram = list()
|
||||
GLOBAL_LIST_EMPTY(latejoin_tram)
|
||||
|
||||
/obj/effect/landmark/tram
|
||||
name = "JoinLateTram"
|
||||
delete_me = 1
|
||||
|
||||
/obj/effect/landmark/tram/Initialize(mapload)
|
||||
latejoin_tram += loc // There's no tram but you know whatever man!
|
||||
GLOB.latejoin_tram += loc // There's no tram but you know whatever man!
|
||||
. = ..()
|
||||
|
||||
/datum/spawnpoint/tram
|
||||
@@ -109,7 +109,7 @@ var/global/list/latejoin_tram = list()
|
||||
|
||||
/datum/spawnpoint/tram/New()
|
||||
..()
|
||||
turfs = latejoin_tram
|
||||
turfs = GLOB.latejoin_tram
|
||||
|
||||
/datum/spawnpoint/vore
|
||||
display_name = "Vorespawn - Prey"
|
||||
@@ -126,4 +126,4 @@ var/global/list/latejoin_tram = list()
|
||||
|
||||
/datum/spawnpoint/vore/New()
|
||||
..()
|
||||
turfs = latejoin
|
||||
turfs = GLOB.latejoin
|
||||
|
||||
@@ -70,7 +70,7 @@ GLOBAL_DATUM(character_directory, /datum/character_directory)
|
||||
|
||||
if(ishuman(C.mob))
|
||||
var/mob/living/carbon/human/H = C.mob
|
||||
//if(data_core && data_core.general)
|
||||
//if(data_core && GLOB.data_core.general)
|
||||
// if(!find_general_record("name", H.real_name))
|
||||
// if(!find_record("name", H.real_name, data_core.hidden_general))
|
||||
// continue
|
||||
|
||||
Reference in New Issue
Block a user