[MIRROR] code/global.dm => code/_global_vars/ (#10689)

Co-authored-by: Selis <12716288+ItsSelis@users.noreply.github.com>
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-04-21 10:16:48 -07:00
committed by GitHub
parent a7718c6177
commit f04f992cfe
474 changed files with 1401 additions and 1421 deletions

View File

@@ -571,7 +571,7 @@ GLOBAL_VAR_INIT(floorIsLava, 0)
<html><center>"} + span_bold("Game Panel") + {"</center><hr>\n
<A href='byond://?src=\ref[src];[HrefToken()];c_mode=1'>Change Game Mode</A><br>
"}
if(master_mode == "secret")
if(GLOB.master_mode == "secret")
dat += "<A href='byond://?src=\ref[src];[HrefToken()];f_secret=1'>(Force Secret Mode)</A><br>"
dat += {"
@@ -682,7 +682,7 @@ var/datum/announcement/minor/admin_min_announcer = new
msgverb = sanitize(msgverb, 50, extra = 0)
else
msgverb = "states"
global_announcer.autosay("[message]", "[sender]", "[channel == "Common" ? null : channel]", states = msgverb) //Common is a weird case, as it's not a "channel", it's just talking into a radio without a channel set.
GLOB.global_announcer.autosay("[message]", "[sender]", "[channel == "Common" ? null : channel]", states = msgverb) //Common is a weird case, as it's not a "channel", it's just talking into a radio without a channel set.
//VOREStation Edit End
log_admin("Intercom: [key_name(usr)] : [sender]:[message]")
@@ -772,7 +772,7 @@ var/datum/announcement/minor/admin_min_announcer = new
var/this_sender = decomposed[i]
var/this_message = decomposed[++i]
var/this_wait = decomposed[++i]
global_announcer.autosay("[this_message]", "[this_sender]", "[channel == "Common" ? null : channel]", states = speech_verb) //Common is a weird case, as it's not a "channel", it's just talking into a radio without a channel set. //VOREStation Edit
GLOB.global_announcer.autosay("[this_message]", "[this_sender]", "[channel == "Common" ? null : channel]", states = speech_verb) //Common is a weird case, as it's not a "channel", it's just talking into a radio without a channel set. //VOREStation Edit
sleep(this_wait SECONDS)
/datum/admins/proc/toggleooc()
@@ -977,8 +977,8 @@ var/datum/announcement/minor/admin_min_announcer = new
log_admin("[key_name(usr)] [SSticker.delay_end ? "delayed the round end" : "has made the round end normally"].")
message_admins(span_blue("[key_name(usr)] [SSticker.delay_end ? "delayed the round end" : "has made the round end normally"]."), 1)
return
round_progressing = !round_progressing
if (!round_progressing)
GLOB.round_progressing = !GLOB.round_progressing
if (!GLOB.round_progressing)
to_world(span_world("The game start has been delayed."))
log_admin("[key_name(usr)] delayed the game.")
else
@@ -1033,7 +1033,7 @@ var/datum/announcement/minor/admin_min_announcer = new
set name = "Unprison"
if (M.z == 2)
if (CONFIG_GET(flag/allow_admin_jump))
M.loc = get_turf(pick(latejoin))
M.loc = get_turf(pick(GLOB.latejoin))
message_admins("[key_name_admin(usr)] has unprisoned [key_name_admin(M)]", 1)
log_admin("[key_name(usr)] has unprisoned [key_name(M)]")
else

View File

@@ -40,8 +40,8 @@
if("hrefs") //persistant logs and stuff
if(config && CONFIG_GET(flag/log_hrefs))
if(href_logfile)
src << browse("<html>[href_logfile]</html>","window=investigate[subject];size=800x300")
if(GLOB.href_logfile)
src << browse("<html>[GLOB.href_logfile]</html>","window=investigate[subject];size=800x300")
else
to_chat(src, span_filter_adminlog(span_warning("Error: admin_investigate: No href logfile found.")))
return

View File

@@ -32,7 +32,7 @@ var/list/admin_verbs_admin = list(
/client/proc/colorooc, //allows us to set a custom colour for everythign we say in ooc,
/client/proc/admin_ghost, //allows us to ghost/reenter body at will,
/client/proc/toggle_view_range, //changes how far we can see,
/datum/admins/proc/view_txt_log, //shows the server log (diary) for today,
/datum/admins/proc/view_txt_log, //shows the server log (GLOB.diary) for today,
/datum/admins/proc/view_atk_log, //shows the server combat-log, doesn't do anything presently,
/client/proc/cmd_admin_pm_context, //right-click adminPM interface,
/client/proc/cmd_admin_pm_panel, //admin-pm list,
@@ -43,7 +43,7 @@ var/list/admin_verbs_admin = list(
/client/proc/cmd_admin_check_dialogue_logs, //checks a player's dialogue logs,
/datum/admins/proc/access_news_network, //allows access of newscasters,
/client/proc/giveruntimelog, //allows us to give access to runtime logs to somebody,
/client/proc/getserverlog, //allows us to fetch server logs (diary) for other days,
/client/proc/getserverlog, //allows us to fetch server logs (GLOB.diary) for other days,
/client/proc/jumptocoord, //we ghost and jump to a coordinate,
/client/proc/Getmob, //teleports a mob to our location,
/client/proc/Getkey, //teleports a mob with a certain ckey to our location,
@@ -373,7 +373,7 @@ var/list/admin_verbs_mod = list(
/client/proc/cmd_admin_direct_narrate,
/client/proc/allow_character_respawn, // Allows a ghost to respawn ,
/datum/admins/proc/sendFax,
/client/proc/getserverlog, //allows us to fetch server logs (diary) for other days,
/client/proc/getserverlog, //allows us to fetch server logs (GLOB.diary) for other days,
/datum/admins/proc/view_persistent_data,
/datum/admins/proc/view_txt_log, //shows the server log (diary) for today,
/datum/admins/proc/quick_nif, //CHOMPEdit

View File

@@ -422,7 +422,7 @@ var/list/admin_verbs_mod = list(
/client/proc/cmd_admin_z_narrate, //VOREStation Add,
/client/proc/allow_character_respawn, // Allows a ghost to respawn ,
/datum/admins/proc/sendFax,
/client/proc/getserverlog, //allows us to fetch server logs (diary) for other days,
/client/proc/getserverlog, //allows us to fetch server logs (GLOB.diary) for other days,
/datum/admins/proc/view_persistent_data,
/client/proc/start_vote,
/datum/admins/proc/quick_nif, //CHOMPStation Add,

View File

@@ -5,7 +5,7 @@
// Returns true if news was updated since last seen.
/client/proc/check_for_new_server_news()
if(servernews_hash != prefs.lastnews) //ChompEDIT
if(GLOB.servernews_hash != prefs.lastnews) //ChompEDIT
return TRUE
return FALSE
@@ -39,7 +39,7 @@
if(findtext(new_body,"<script",1,0) ) // Is this needed with santize()?
return
servernews_hash = md5("[new_title]" + "[new_body]") //ChompADD - update the servernews hash global
GLOB.servernews_hash = md5("[new_title]" + "[new_body]") //ChompADD - update the servernews hash global
F["title"] << new_title
F["body"] << new_body
F["author"] << key
@@ -49,8 +49,8 @@
/client/proc/get_server_news() //ChompEDIT - child of /client/
var/savefile/F = new(NEWSFILE)
if(F)
if(servernews_hash != prefs.lastnews) //ChompADD
prefs.lastnews = servernews_hash //ChompADD
if(GLOB.servernews_hash != prefs.lastnews) //ChompADD
prefs.lastnews = GLOB.servernews_hash //ChompADD
SScharacter_setup.queue_preferences_save(prefs) //ChompADD
return F

View File

@@ -94,7 +94,7 @@
var/turf/Ts //Turf for shadekin
//Try to find nondense turf
for(var/direction in cardinal)
for(var/direction in GLOB.cardinal)
var/turf/T = get_step(target,direction)
if(T && !T.density)
Ts = T //Found shadekin spawn turf

View File

@@ -6,9 +6,9 @@
if(!.)
return
var/dat = span_bold("Admin Log<HR>")
for(var/l in admin_log)
for(var/l in GLOB.admin_log)
dat += "<li>[l]</li>"
if(!admin_log.len)
if(!GLOB.admin_log.len)
dat += "No-one has done anything this round!"
var/datum/browser/popup = new(user, "adminlogs", "[src]", 550, 650, src)

View File

@@ -7,6 +7,6 @@
return
var/dat = span_bold("Bombing List")
for(var/l in bombers)
for(var/l in GLOB.bombers)
dat += text("[l]<BR>")
user << browse("<html>[dat]</html>", "window=bombers")

View File

@@ -12,7 +12,7 @@
for(var/mob/living/carbon/human/H in mob_list)
var/turf/T = get_turf(H)
var/security = 0
if((T in using_map.admin_levels) || prisonwarped.Find(H))
if((T in using_map.admin_levels) || GLOB.prisonwarped.Find(H))
//don't warp them if they aren't ready or are already there
continue
H.Paralyse(5)
@@ -29,10 +29,10 @@
//don't strip organs
H.drop_from_inventory(W)
//teleport person to cell
H.loc = pick(prisonwarp)
H.loc = pick(GLOB.prisonwarp)
H.equip_to_slot_or_del(new /obj/item/clothing/under/color/prison(H), slot_w_uniform)
H.equip_to_slot_or_del(new /obj/item/clothing/shoes/orange(H), slot_shoes)
else
//teleport security person
H.loc = pick(prisonsecuritywarp)
prisonwarped += H
H.loc = pick(GLOB.prisonsecuritywarp)
GLOB.prisonwarped += H

View File

@@ -7,6 +7,6 @@
return
var/dat
dat += "<h4>Crew Manifest</h4>"
dat += data_core.get_manifest()
dat += GLOB.data_core.get_manifest()
user << browse("<html>[dat]</html>", "window=manifest;size=370x420;can_close=1")

View File

@@ -2,14 +2,14 @@
name = "Show law changes"
/datum/admin_secret_item/admin_secret/show_law_changes/name()
return "Show Last [length(lawchanges)] Law change\s"
return "Show Last [length(GLOB.lawchanges)] Law change\s"
/datum/admin_secret_item/admin_secret/show_law_changes/execute(var/mob/user)
. = ..()
if(!.)
return
var/dat = span_bold("Showing last [length(lawchanges)] law changes.") + "<HR>"
for(var/sig in lawchanges)
var/dat = span_bold("Showing last [length(GLOB.lawchanges)] law changes.") + "<HR>"
for(var/sig in GLOB.lawchanges)
dat += "[sig]<BR>"
user << browse("<html>[dat]</html>", "window=lawchanges;size=800x500")
user << browse("<html>[dat]</html>", "window=GLOB.lawchanges;size=800x500")

View File

@@ -2,14 +2,14 @@
name = "Show Last Signalers"
/datum/admin_secret_item/admin_secret/show_signalers/name()
return "Show Last [length(lastsignalers)] Signaler\s"
return "Show Last [length(GLOB.lastsignalers)] Signaler\s"
/datum/admin_secret_item/admin_secret/show_signalers/execute(var/mob/user)
. = ..()
if(!.)
return
var/dat = span_bold("Showing last [length(lastsignalers)] signalers.") + "<HR>"
for(var/sig in lastsignalers)
var/dat = span_bold("Showing last [length(GLOB.lastsignalers)] signalers.") + "<HR>"
for(var/sig in GLOB.lastsignalers)
dat += "[sig]<BR>"
user << browse("<html>[dat]</html>", "window=lastsignalers;size=800x500")

View File

@@ -6,5 +6,5 @@
if(!.)
return
for(var/obj/machinery/light/L in machines)
for(var/obj/machinery/light/L in GLOB.machines)
L.fix()

View File

@@ -7,15 +7,15 @@
if(!.)
return
switch(max_explosion_range)
if(14) max_explosion_range = 16
if(16) max_explosion_range = 20
if(20) max_explosion_range = 28
if(28) max_explosion_range = 56
if(56) max_explosion_range = 128
if(128) max_explosion_range = 14
var/range_dev = max_explosion_range *0.25
var/range_high = max_explosion_range *0.5
var/range_low = max_explosion_range
switch(GLOB.max_explosion_range)
if(14) GLOB.max_explosion_range = 16
if(16) GLOB.max_explosion_range = 20
if(20) GLOB.max_explosion_range = 28
if(28) GLOB.max_explosion_range = 56
if(56) GLOB.max_explosion_range = 128
if(128) GLOB.max_explosion_range = 14
var/range_dev = GLOB.max_explosion_range *0.25
var/range_high = GLOB.max_explosion_range *0.5
var/range_low = GLOB.max_explosion_range
message_admins(span_danger("[key_name_admin(user)] changed the bomb cap to [range_dev], [range_high], [range_low]"), 1)
log_admin("[key_name_admin(user)] changed the bomb cap to [max_explosion_range]")
log_admin("[key_name_admin(user)] changed the bomb cap to [GLOB.max_explosion_range]")

View File

@@ -15,13 +15,13 @@
if(!.)
return
gravity_is_on = !gravity_is_on
GLOB.gravity_is_on = !GLOB.gravity_is_on
for(var/area/A in world)
A.gravitychange(gravity_is_on)
A.gravitychange(GLOB.gravity_is_on)
feedback_inc("admin_secrets_fun_used",1)
feedback_add_details("admin_secrets_fun_used","Grav")
if(gravity_is_on)
if(GLOB.gravity_is_on)
log_admin("[key_name(user)] toggled gravity on.", 1)
message_admins(span_notice("[key_name_admin(user)] toggled gravity on."), 1)
command_announcement.Announce("Gravity generators are again functioning within normal parameters. Sorry for any inconvenience.")

View File

@@ -15,16 +15,16 @@
if(!.)
return
gravity_is_on = !gravity_is_on
for(var/obj/machinery/gravity_generator/main/GG in machines)
GLOB.gravity_is_on = !GLOB.gravity_is_on
for(var/obj/machinery/gravity_generator/main/GG in GLOB.machines)
if(GG.z in using_map.station_levels)
GG.breaker = gravity_is_on
GG.breaker = GLOB.gravity_is_on
GG.set_power()
GG.charge_count = gravity_is_on ? 90 : 10
GG.charge_count = GLOB.gravity_is_on ? 90 : 10
feedback_inc("admin_secrets_fun_used",1)
feedback_add_details("admin_secrets_fun_used","Grav")
if(gravity_is_on)
if(GLOB.gravity_is_on)
log_admin("[key_name(user)] toggled gravity on.", 1)
message_admins(span_notice("[key_name_admin(user)] toggled gravity on."), 1)
command_announcement.Announce("Gravity generators are again functioning within normal parameters. Sorry for any inconvenience.")

View File

@@ -931,7 +931,7 @@
dat += {"<A href='byond://?src=\ref[src];[HrefToken()];c_mode2=[mode]'>[config.mode_names[mode]]</A><br>"}
dat += {"<A href='byond://?src=\ref[src];[HrefToken()];c_mode2=secret'>Secret</A><br>"}
dat += {"<A href='byond://?src=\ref[src];[HrefToken()];c_mode2=random'>Random</A><br>"}
dat += {"Now: [master_mode]"}
dat += {"Now: [GLOB.master_mode]"}
usr << browse("<html>[dat]</html>", "window=c_mode")
else if(href_list["f_secret"])
@@ -939,13 +939,13 @@
if(ticker && ticker.mode)
return tgui_alert_async(usr, "The game has already started.")
if(master_mode != "secret")
if(GLOB.master_mode != "secret")
return tgui_alert_async(usr, "The game mode has to be secret!")
var/dat = {"<B>What game mode do you want to force secret to be? Use this if you want to change the game mode, but want the players to believe it's secret. This will only work if the current game mode is secret.</B><HR>"}
for(var/mode in config.modes)
dat += {"<A href='byond://?src=\ref[src];[HrefToken()];f_secret2=[mode]'>[config.mode_names[mode]]</A><br>"}
dat += {"<A href='byond://?src=\ref[src];[HrefToken()];f_secret2=secret'>Random (default)</A><br>"}
dat += {"Now: [secret_force_mode]"}
dat += {"Now: [GLOB.secret_force_mode]"}
usr << browse("<html>[dat]</html>", "window=f_secret")
else if(href_list["c_mode2"])
@@ -953,12 +953,12 @@
if (ticker && ticker.mode)
return tgui_alert_async(usr, "The game has already started.")
master_mode = href_list["c_mode2"]
log_admin("[key_name(usr)] set the mode as [config.mode_names[master_mode]].")
message_admins(span_blue("[key_name_admin(usr)] set the mode as [config.mode_names[master_mode]]."), 1)
to_world(span_world(span_blue("The mode is now: [config.mode_names[master_mode]]")))
GLOB.master_mode = href_list["c_mode2"]
log_admin("[key_name(usr)] set the mode as [config.mode_names[GLOB.master_mode]].")
message_admins(span_blue("[key_name_admin(usr)] set the mode as [config.mode_names[GLOB.master_mode]]."), 1)
to_world(span_world(span_blue("The mode is now: [config.mode_names[GLOB.master_mode]]")))
Game() // updates the main game menu
world.save_mode(master_mode)
world.save_mode(GLOB.master_mode)
.(href, list("c_mode"=1))
else if(href_list["f_secret2"])
@@ -966,11 +966,11 @@
if(ticker && ticker.mode)
return tgui_alert_async(usr, "The game has already started.")
if(master_mode != "secret")
if(GLOB.master_mode != "secret")
return tgui_alert_async(usr, "The game mode has to be secret!")
secret_force_mode = href_list["f_secret2"]
log_admin("[key_name(usr)] set the forced secret mode as [secret_force_mode].")
message_admins(span_blue("[key_name_admin(usr)] set the forced secret mode as [secret_force_mode]."), 1)
GLOB.secret_force_mode = href_list["f_secret2"]
log_admin("[key_name(usr)] set the forced secret mode as [GLOB.secret_force_mode].")
message_admins(span_blue("[key_name_admin(usr)] set the forced secret mode as [GLOB.secret_force_mode]."), 1)
Game() // updates the main game menu
.(href, list("f_secret"=1))
@@ -1026,7 +1026,7 @@
to_chat(usr, span_filter_adminlog("This cannot be used on instances of type /mob/living/silicon/ai"))
return
var/turf/prison_cell = pick(prisonwarp)
var/turf/prison_cell = pick(GLOB.prisonwarp)
if(!prison_cell) return
var/obj/structure/closet/secure_closet/brig/locker = new /obj/structure/closet/secure_closet/brig(prison_cell)
@@ -1094,7 +1094,7 @@
M.Paralyse(5)
sleep(5)
M.loc = pick(tdome1)
M.loc = pick(GLOB.tdome1)
spawn(50)
to_chat(M, span_filter_system(span_notice("You have been sent to the Thunderdome.")))
log_admin("[key_name(usr)] has sent [key_name(M)] to the thunderdome. (Team 1)")
@@ -1119,7 +1119,7 @@
M.Paralyse(5)
sleep(5)
M.loc = pick(tdome2)
M.loc = pick(GLOB.tdome2)
spawn(50)
to_chat(M, span_filter_system(span_notice("You have been sent to the Thunderdome.")))
log_admin("[key_name(usr)] has sent [key_name(M)] to the thunderdome. (Team 2)")
@@ -1141,7 +1141,7 @@
M.Paralyse(5)
sleep(5)
M.loc = pick(tdomeadmin)
M.loc = pick(GLOB.tdomeadmin)
spawn(50)
to_chat(M, span_filter_system(span_notice("You have been sent to the Thunderdome.")))
log_admin("[key_name(usr)] has sent [key_name(M)] to the thunderdome. (Admin.)")
@@ -1170,7 +1170,7 @@
observer.equip_to_slot_or_del(new /obj/item/clothing/shoes/black(observer), slot_shoes)
M.Paralyse(5)
sleep(5)
M.loc = pick(tdomeobserve)
M.loc = pick(GLOB.tdomeobserve)
spawn(50)
to_chat(M, span_filter_system(span_notice("You have been sent to the Thunderdome.")))
log_admin("[key_name(usr)] has sent [key_name(M)] to the thunderdome. (Observer.)")

View File

@@ -12,24 +12,24 @@
to_chat(usr, "Checking for disconnected pipes...")
//all plumbing - yes, some things might get stated twice, doesn't matter.
for (var/obj/machinery/atmospherics/plumbing in machines)
for (var/obj/machinery/atmospherics/plumbing in GLOB.machines)
if (plumbing.nodealert)
to_chat(usr, span_filter_adminlog(span_warning("Unconnected [plumbing.name] located at [plumbing.x],[plumbing.y],[plumbing.z] ([get_area(plumbing.loc)])")))
//Manifolds
for (var/obj/machinery/atmospherics/pipe/manifold/pipe in machines)
for (var/obj/machinery/atmospherics/pipe/manifold/pipe in GLOB.machines)
if (!pipe.node1 || !pipe.node2 || !pipe.node3)
to_chat(usr, span_filter_adminlog(span_warning("Unconnected [pipe.name] located at [pipe.x],[pipe.y],[pipe.z] ([get_area(pipe.loc)])")))
//Pipes
for (var/obj/machinery/atmospherics/pipe/simple/pipe in machines)
for (var/obj/machinery/atmospherics/pipe/simple/pipe in GLOB.machines)
if (!pipe.node1 || !pipe.node2)
to_chat(usr, span_filter_adminlog(span_warning("Unconnected [pipe.name] located at [pipe.x],[pipe.y],[pipe.z] ([get_area(pipe.loc)])")))
to_chat(usr, "Checking for overlapping pipes...")
next_turf:
for(var/turf/T in world)
for(var/dir in cardinal)
for(var/dir in GLOB.cardinal)
var/list/connect_types = list(1 = 0, 2 = 0, 3 = 0)
for(var/obj/machinery/atmospherics/pipe in T)
if(dir & pipe.initialize_directions)

View File

@@ -608,7 +608,7 @@ CHOMP Remove end */
AI.give_target(A)
i++
to_chat(user, span_notice("Commanded [i] mob\s to attack \the [A]."))
var/image/orderimage = image(buildmode_hud,A,"ai_targetorder")
var/image/orderimage = image(GLOB.buildmode_hud,A,"ai_targetorder")
orderimage.plane = PLANE_BUILDMODE
flick_overlay(orderimage, list(user.client), 8, TRUE)
return
@@ -635,7 +635,7 @@ CHOMP Remove end */
if(j)
message += "[j] mob\s to follow \the [L]."
to_chat(user, span_notice(message))
var/image/orderimage = image(buildmode_hud,L,"ai_targetorder")
var/image/orderimage = image(GLOB.buildmode_hud,L,"ai_targetorder")
orderimage.plane = PLANE_BUILDMODE
flick_overlay(orderimage, list(user.client), 8, TRUE)
return
@@ -654,7 +654,7 @@ CHOMP Remove end */
AI.give_destination(T, 1, pa.Find("shift")) // If shift is held, the mobs will not stop moving to attack a visible enemy.
told++
to_chat(user, span_notice("Commanded [told] mob\s to move to \the [T], and manually placed [forced] of them."))
var/image/orderimage = image(buildmode_hud,T,"ai_turforder")
var/image/orderimage = image(GLOB.buildmode_hud,T,"ai_turforder")
orderimage.plane = PLANE_BUILDMODE
flick_overlay(orderimage, list(user.client), 8, TRUE)
return
@@ -831,7 +831,7 @@ CHOMP Remove end */
while(pending.len)
var/turf/T = pending[1]
pending -= T
for (var/dir in cardinal)
for (var/dir in GLOB.cardinal)
var/turf/NT = get_step(T,dir)
if (!isturf(NT) || (NT in found) || (NT in pending))
continue

View File

@@ -7,9 +7,9 @@
to_chat(src, "Only administrators may use this command.")
return
var/input = sanitize(tgui_input_text(usr, "Enter the description of the custom event. Be descriptive. To cancel the event, make this blank or hit cancel.", "Custom Event", custom_event_msg, MAX_PAPER_MESSAGE_LEN, TRUE, prevent_enter = TRUE), MAX_PAPER_MESSAGE_LEN, extra = 0)
var/input = sanitize(tgui_input_text(usr, "Enter the description of the custom event. Be descriptive. To cancel the event, make this blank or hit cancel.", "Custom Event", GLOB.custom_event_msg, MAX_PAPER_MESSAGE_LEN, TRUE, prevent_enter = TRUE), MAX_PAPER_MESSAGE_LEN, extra = 0)
if(!input || input == "")
custom_event_msg = null
GLOB.custom_event_msg = null
log_admin("[usr.key] has cleared the custom event text.")
message_admins("[key_name_admin(usr)] has cleared the custom event text.")
return
@@ -17,17 +17,17 @@
log_admin("[usr.key] has changed the custom event text.")
message_admins("[key_name_admin(usr)] has changed the custom event text.")
custom_event_msg = input
GLOB.custom_event_msg = input
to_world(span_filter_system("<h1>[span_alert("Custom Event")]</h1>"))
to_world(span_filter_system("<h2>[span_alert("A custom event is starting. OOC Info:")]</h2>"))
to_world(span_filter_system(span_alert("[custom_event_msg]")))
to_world(span_filter_system(span_alert("[GLOB.custom_event_msg]")))
to_world(span_filter_system("<br>"))
SSwebhooks.send(
WEBHOOK_CUSTOM_EVENT,
list(
"text" = custom_event_msg,
"text" = GLOB.custom_event_msg,
)
)
@@ -36,11 +36,11 @@
set category = "OOC.Game"
set name = "Custom Event Info"
if(!custom_event_msg || custom_event_msg == "")
if(!GLOB.custom_event_msg || GLOB.custom_event_msg == "")
to_chat(src, span_filter_notice("There currently is no known custom event taking place."))
to_chat(src, span_filter_notice("Keep in mind: it is possible that an admin has not properly set this."))
return
to_chat(src, "<h1>[span_filter_notice(span_alert("Custom Event"))]</h1>")
to_chat(src, "<h2>[span_filter_notice(span_alert("A custom event is taking place. OOC Info:"))]</h2>")
to_chat(src, span_filter_notice(span_alert("[custom_event_msg]<br>")))
to_chat(src, span_filter_notice(span_alert("[GLOB.custom_event_msg]<br>")))

View File

@@ -3,12 +3,12 @@
set name = "Debug-Game"
if(!check_rights(R_DEBUG)) return
if(Debug2)
Debug2 = 0
if(GLOB.Debug2)
GLOB.Debug2 = FALSE
message_admins("[key_name(src)] toggled debugging off.")
log_admin("[key_name(src)] toggled debugging off.")
else
Debug2 = 1
GLOB.Debug2 = TRUE
message_admins("[key_name(src)] toggled debugging on.")
log_admin("[key_name(src)] toggled debugging on.")
@@ -356,32 +356,32 @@
if(A && !(A.type in areas_with_APC))
areas_with_APC.Add(A.type)
for(var/obj/machinery/alarm/alarm in machines)
for(var/obj/machinery/alarm/alarm in GLOB.machines)
var/area/A = get_area(alarm)
if(A && !(A.type in areas_with_air_alarm))
areas_with_air_alarm.Add(A.type)
for(var/obj/machinery/requests_console/RC in machines)
for(var/obj/machinery/requests_console/RC in GLOB.machines)
var/area/A = get_area(RC)
if(A && !(A.type in areas_with_RC))
areas_with_RC.Add(A.type)
for(var/obj/machinery/light/L in machines)
for(var/obj/machinery/light/L in GLOB.machines)
var/area/A = get_area(L)
if(A && !(A.type in areas_with_light))
areas_with_light.Add(A.type)
for(var/obj/machinery/light_switch/LS in machines)
for(var/obj/machinery/light_switch/LS in GLOB.machines)
var/area/A = get_area(LS)
if(A && !(A.type in areas_with_LS))
areas_with_LS.Add(A.type)
for(var/obj/item/radio/intercom/I in machines)
for(var/obj/item/radio/intercom/I in GLOB.machines)
var/area/A = get_area(I)
if(A && !(A.type in areas_with_intercom))
areas_with_intercom.Add(A.type)
for(var/obj/machinery/camera/C in machines)
for(var/obj/machinery/camera/C in GLOB.machines)
var/area/A = get_area(C)
if(A && !(A.type in areas_with_camera))
areas_with_camera.Add(A.type)
@@ -462,31 +462,31 @@
if(tgui_alert(usr, "Are you sure? This will start up the engine. Should only be used during debug!","Start Singularity",list("Yes","No")) != "Yes")
return
for(var/obj/machinery/power/emitter/E in machines)
for(var/obj/machinery/power/emitter/E in GLOB.machines)
if(istype(get_area(E), /area/space))
E.anchored = TRUE
E.state = 2
E.connect_to_network()
E.active = TRUE
for(var/obj/machinery/field_generator/F in machines)
for(var/obj/machinery/field_generator/F in GLOB.machines)
if(istype(get_area(F), /area/space))
F.Varedit_start = 1
for(var/obj/machinery/power/grounding_rod/GR in machines)
for(var/obj/machinery/power/grounding_rod/GR in GLOB.machines)
GR.anchored = TRUE
GR.update_icon()
for(var/obj/machinery/power/tesla_coil/TC in machines)
for(var/obj/machinery/power/tesla_coil/TC in GLOB.machines)
TC.anchored = TRUE
TC.update_icon()
for(var/obj/structure/particle_accelerator/PA in machines)
for(var/obj/structure/particle_accelerator/PA in GLOB.machines)
PA.anchored = TRUE
PA.construction_state = 3
PA.update_icon()
for(var/obj/machinery/particle_accelerator/PA in machines)
for(var/obj/machinery/particle_accelerator/PA in GLOB.machines)
PA.anchored = TRUE
PA.construction_state = 3
PA.update_icon()
for(var/obj/machinery/power/rad_collector/Rad in machines)
for(var/obj/machinery/power/rad_collector/Rad in GLOB.machines)
if(Rad.anchored)
if(!Rad.P)
var/obj/item/tank/phoron/Phoron = new/obj/item/tank/phoron(Rad)
@@ -513,7 +513,7 @@
var/found_the_pump = 0
var/obj/machinery/power/supermatter/SM
for(var/obj/machinery/M in machines)
for(var/obj/machinery/M in GLOB.machines)
if(!M)
continue
if(!M.loc)

View File

@@ -15,7 +15,7 @@
var/current_time = world.timeofday
// Depower the supermatter, as it would quickly blow up once we remove all gases from the pipes.
for(var/obj/machinery/power/supermatter/S in machines)
for(var/obj/machinery/power/supermatter/S in GLOB.machines)
S.power = 0
to_chat(usr, "\[1/5\] - Supermatter depowered")

View File

@@ -118,7 +118,7 @@ GLOBAL_LIST_BOILERPLATE(all_debugging_effects, /obj/effect/debugging)
qdel(M)
if(intercom_range_display_status)
for(var/obj/item/radio/intercom/I in machines)
for(var/obj/item/radio/intercom/I in GLOB.machines)
for(var/turf/T in orange(7,I))
var/obj/effect/debugging/marker/F = new/obj/effect/debugging/marker(T)
if (!(F in view(7,I.loc)))

View File

@@ -33,7 +33,7 @@
//teleport person to cell
M.Paralyse(5)
sleep(5) //so they black out before warping
M.loc = pick(prisonwarp)
M.loc = pick(GLOB.prisonwarp)
if(ishuman(M))
var/mob/living/carbon/human/prisoner = M
prisoner.equip_to_slot_or_del(new /obj/item/clothing/under/color/prison(prisoner), slot_w_uniform)
@@ -485,10 +485,10 @@ Traitors and the like can also be revived with the previous role mostly intact.
return
if("Arrivals") //Spawn them at a latejoin spawnpoint
if(LAZYLEN(latejoin))
spawnloc = get_turf(pick(latejoin))
else if(LAZYLEN(latejoin_tram))
spawnloc = pick(latejoin_tram)
if(LAZYLEN(GLOB.latejoin))
spawnloc = get_turf(pick(GLOB.latejoin))
else if(LAZYLEN(GLOB.latejoin_tram))
spawnloc = pick(GLOB.latejoin_tram)
else
to_chat(src, "This map has no latejoin spawnpoint.")
return
@@ -554,7 +554,7 @@ Traitors and the like can also be revived with the previous role mostly intact.
//If desired, add records.
if(records)
data_core.manifest_inject(new_character)
GLOB.data_core.manifest_inject(new_character)
//A redraw for good measure
new_character.regenerate_icons()
@@ -1064,7 +1064,7 @@ Traitors and the like can also be revived with the previous role mostly intact.
var/list/human_cryopods = list()
var/list/robot_cryopods = list()
for(var/obj/machinery/cryopod/CP in machines)
for(var/obj/machinery/cryopod/CP in GLOB.machines)
if(!CP.control_computer)
continue //Broken pod w/o computer, move on.
@@ -1091,7 +1091,7 @@ Traitors and the like can also be revived with the previous role mostly intact.
if(isAI(M))
var/mob/living/silicon/ai/ai = M
GLOB.empty_playable_ai_cores += new /obj/structure/AIcore/deactivated(ai.loc)
global_announcer.autosay("[ai] has been moved to intelligence storage.", "Artificial Intelligence Oversight")
GLOB.global_announcer.autosay("[ai] has been moved to intelligence storage.", "Artificial Intelligence Oversight")
ai.clear_client()
return
else

View File

@@ -54,7 +54,7 @@
var/turf/Ts //Turf for shadekin
//Try to find nondense turf
for(var/direction in cardinal)
for(var/direction in GLOB.cardinal)
var/turf/T = get_step(target,direction)
if(T && !T.density)
Ts = T //Found shadekin spawn turf

View File

@@ -219,7 +219,7 @@
CHECK_TICK
else if (ispath(T, /obj/machinery))
for(var/obj/machinery/thing in machines)
for(var/obj/machinery/thing in GLOB.machines)
if (typecache[thing.type])
. += thing
CHECK_TICK

View File

@@ -36,11 +36,6 @@
/decl/global_vars/VV_hidden()
return list(
"forumsqladdress",
"forumsqldb",
"forumsqllogin",
"forumsqlpass",
"forumsqlport",
"sqladdress",
"sqldb",
"sqllogin",
@@ -73,11 +68,11 @@
"admin_ranks",
"admin_state",
"alien_whitelist",
"alldirs",
"GLOB.alldirs",
"ahelp_tickets",
"adminfaxes",
"adminlogs",
"cardinal",
"GLOB.cardinal",
"cardinalz",
"IClog"
)