diff --git a/aurorastation.dme b/aurorastation.dme
index 053eb9446e7..c7e99aa043a 100644
--- a/aurorastation.dme
+++ b/aurorastation.dme
@@ -214,7 +214,8 @@
#include "code\__HELPERS\sorting\__main.dm"
#include "code\__HELPERS\sorting\cmp.dm"
#include "code\__HELPERS\sorting\TimSort.dm"
-#include "code\_global_vars\edible.dm"
+#include "code\_globalvars\edible.dm"
+#include "code\_globalvars\logging.dm"
#include "code\_onclick\adjacent.dm"
#include "code\_onclick\ai.dm"
#include "code\_onclick\click.dm"
@@ -1660,9 +1661,9 @@
#include "code\modules\cciaa\cciaa.dm"
#include "code\modules\cciaa\cciaa_datums.dm"
#include "code\modules\cciaa\cciaa_items.dm"
-#include "code\modules\client\client defines.dm"
-#include "code\modules\client\client procs.dm"
#include "code\modules\client\client_color.dm"
+#include "code\modules\client\client_defines.dm"
+#include "code\modules\client\client_procs.dm"
#include "code\modules\client\darkmode.dm"
#include "code\modules\client\movement.dm"
#include "code\modules\client\preferences.dm"
@@ -1722,6 +1723,7 @@
#include "code\modules\client\preference_setup\occupation\occupation.dm"
#include "code\modules\client\preference_setup\origin\origin.dm"
#include "code\modules\client\preference_setup\other\01_incidents.dm"
+#include "code\modules\client\verbs\ping.dm"
#include "code\modules\clothing\chameleon.dm"
#include "code\modules\clothing\clothing.dm"
#include "code\modules\clothing\clothing_accessories.dm"
diff --git a/code/__DEFINES/logging.dm b/code/__DEFINES/logging.dm
index 87db8077d25..81c151856e8 100644
--- a/code/__DEFINES/logging.dm
+++ b/code/__DEFINES/logging.dm
@@ -9,7 +9,7 @@
/**
* The path where the logs should be saved
*/
-#define LOGPATH(file) "./data/logs/[game_id]/[file]"
+#define LOGPATH(file) "./data/logs/[GLOB.round_id]/[file]"
//wrapper macros for easier grepping
#define DIRECT_OUTPUT(A, B) A << B
@@ -85,13 +85,13 @@ rustg_log_write(LOGPATH("condensed.log"), "[text]", "true")
#else
#define WRITE_LOG(file, text)\
-rustg_log_write(LOGPATH(file), "[game_id] [text]", "true");\
+rustg_log_write(LOGPATH(file), "[GLOB.round_id] [text]", "true");\
\
if(GLOB.config?.all_logs_to_chat) { \
to_chat(world, "\[[file]\]: [text]");\
}\
if(GLOB.config?.condense_all_logs) {\
- rustg_log_write(LOGPATH("condensed.log"), "[game_id] [text]", "true");\
+ rustg_log_write(LOGPATH("condensed.log"), "[GLOB.round_id] [text]", "true");\
}
#endif
diff --git a/code/__DEFINES/misc.dm b/code/__DEFINES/misc.dm
index 03f96c3ab04..0264b7482b2 100644
--- a/code/__DEFINES/misc.dm
+++ b/code/__DEFINES/misc.dm
@@ -321,16 +321,16 @@
#define DEFAULT_SIGHT (SEE_SELF)
-#define isStationLevel(Z) ((Z) in current_map.station_levels)
+#define isStationLevel(Z) ((Z) in SSatlas.current_map.station_levels)
#define isNotStationLevel(Z) !isStationLevel(Z)
-#define isPlayerLevel(Z) ((Z) in current_map.player_levels)
+#define isPlayerLevel(Z) ((Z) in SSatlas.current_map.player_levels)
#define isNotPlayerLevel(Z) !isPlayerLevel(Z)
-#define isAdminLevel(Z) ((Z) in current_map.admin_levels)
+#define isAdminLevel(Z) ((Z) in SSatlas.current_map.admin_levels)
#define isNotAdminLevel(Z) !isAdminLevel(Z)
-#define isContactLevel(Z) ((Z) in current_map.contact_levels)
+#define isContactLevel(Z) ((Z) in SSatlas.current_map.contact_levels)
#define isNotContactLevel(Z) !isContactLevel(Z)
//Cargo Container Types
diff --git a/code/__DEFINES/subsystems.dm b/code/__DEFINES/subsystems.dm
index f294cac8304..97b58df60e5 100644
--- a/code/__DEFINES/subsystems.dm
+++ b/code/__DEFINES/subsystems.dm
@@ -200,12 +200,14 @@
#define INIT_ORDER_GARBAGE 99
#define INIT_ORDER_SPATIAL_GRID 43
#define INIT_ORDER_CODEX -3 // Codex subsystem. Should be initialized after chemistry and cooking recipes.
+#define INIT_ORDER_STATPANELS -97
// Subsystem fire priority, from lowest to highest priority
// If the subsystem isn't listed here it's either DEFAULT or PROCESS (if it's a processing subsystem child)
-#define FIRE_PRIORITY_DEFAULT 50
#define FIRE_PRIORITY_GARBAGE 15
+#define FIRE_PRIORITY_DEFAULT 50
+#define FIRE_PRIORITY_STATPANEL 390
/* AURORA SHIT */
diff --git a/code/__HELPERS/game.dm b/code/__HELPERS/game.dm
index d3a64233866..9ebab2cbc14 100644
--- a/code/__HELPERS/game.dm
+++ b/code/__HELPERS/game.dm
@@ -9,11 +9,11 @@
/proc/max_default_z_level()
var/max_z = 0
- for(var/z in current_map.station_levels)
+ for(var/z in SSatlas.current_map.station_levels)
max_z = max(z, max_z)
- for(var/z in current_map.admin_levels)
+ for(var/z in SSatlas.current_map.admin_levels)
max_z = max(z, max_z)
- for(var/z in current_map.player_levels)
+ for(var/z in SSatlas.current_map.player_levels)
max_z = max(z, max_z)
return max_z
diff --git a/code/__HELPERS/logging/_logging.dm b/code/__HELPERS/logging/_logging.dm
index ba92c116d62..6b21d330925 100644
--- a/code/__HELPERS/logging/_logging.dm
+++ b/code/__HELPERS/logging/_logging.dm
@@ -10,13 +10,13 @@
/proc/log_startup()
var/static/already_logged = FALSE
if (!already_logged)
- log_world(GLOB.diary, "[log_end]\n[log_end]\nStarting up. (ID: [game_id]) [log_end]\n---------------------[log_end]")
+ log_world(GLOB.diary, "[log_end]\n[log_end]\nStarting up. (ID: [GLOB.round_id]) [log_end]\n---------------------[log_end]")
already_logged = TRUE
else
crash_with("log_startup() was called more then once")
/proc/log_topic(T, addr, master, key, var/list/queryparams)
- _log_topic("[game_id] TOPIC: \"[T]\", from:[addr], master:[master], key:[key], auth:[queryparams["auth"] ? queryparams["auth"] : "null"] [log_end]")
+ _log_topic("[GLOB.round_id] TOPIC: \"[T]\", from:[addr], master:[master], key:[key], auth:[queryparams["auth"] ? queryparams["auth"] : "null"] [log_end]")
/proc/log_error(msg)
world.log << "## ERROR: [msg][log_end]"
@@ -59,7 +59,7 @@
#endif
/proc/game_log(category, text)
- WRITE_LOG(GLOB.diary, "[game_id] [category]: [text][log_end]")
+ WRITE_LOG(GLOB.diary, "[GLOB.round_id] [category]: [text][log_end]")
/proc/log_admin(text,level=SEVERITY_NOTICE,ckey="",admin_key="",ckey_target="")
_log_admin(text)
diff --git a/code/__HELPERS/names.dm b/code/__HELPERS/names.dm
index 8502e8a8d26..a5243f2524c 100644
--- a/code/__HELPERS/names.dm
+++ b/code/__HELPERS/names.dm
@@ -28,7 +28,7 @@ var/religion_name = null
return capitalize(name)
/proc/world_name(var/name)
- current_map.station_name = name
+ SSatlas.current_map.station_name = name
if (GLOB.config && GLOB.config.server_name)
world.name = "[GLOB.config.server_name]: [name]"
diff --git a/code/__HELPERS/text.dm b/code/__HELPERS/text.dm
index 4b3ccafd768..a583982b96f 100644
--- a/code/__HELPERS/text.dm
+++ b/code/__HELPERS/text.dm
@@ -577,7 +577,7 @@
t = replacetext(t, "\[/large\]", "")
t = replacetext(t, "\[small\]", "")
t = replacetext(t, "\[/small\]", "")
- t = replacetext(t, "\[station\]", current_map.station_name)
+ t = replacetext(t, "\[station\]", SSatlas.current_map.station_name)
var/regex/redacted_text = new(@"(\[redacted\])(.*?)(\[\/redacted\])", "g")
while (redacted_text.Find(t))
@@ -670,7 +670,7 @@
t = replacetext(t, "", "\[/large\]")
t = replacetext(t, "", "\[small\]")
t = replacetext(t, "", "\[/small\]")
- t = replacetext(t, current_map.station_name, "\[station\]")
+ t = replacetext(t, SSatlas.current_map.station_name, "\[station\]")
t = replacetext(t, "
", "\n")
t = replacetext(t, "
", "\[center\]")
t = replacetext(t, "", "\[/center\]")
diff --git a/code/__HELPERS/turfs.dm b/code/__HELPERS/turfs.dm
index c3e8385ceb8..ecb6c769565 100644
--- a/code/__HELPERS/turfs.dm
+++ b/code/__HELPERS/turfs.dm
@@ -35,7 +35,7 @@
return
var/list/turfs = list()
for(var/turf/T in orange(outer_range, origin))
- if(!(T.z in current_map.sealed_levels)) // Picking a turf outside the map edge isn't recommended
+ if(!(T.z in SSatlas.current_map.sealed_levels)) // Picking a turf outside the map edge isn't recommended
if(T.x >= world.maxx-TRANSITIONEDGE || T.x <= TRANSITIONEDGE)
continue
if(T.y >= world.maxy-TRANSITIONEDGE || T.y <= TRANSITIONEDGE)
diff --git a/code/_global_vars/edible.dm b/code/_globalvars/edible.dm
similarity index 100%
rename from code/_global_vars/edible.dm
rename to code/_globalvars/edible.dm
diff --git a/code/_globalvars/logging.dm b/code/_globalvars/logging.dm
new file mode 100644
index 00000000000..0f4f7bfc909
--- /dev/null
+++ b/code/_globalvars/logging.dm
@@ -0,0 +1 @@
+GLOBAL_VAR(round_id)
diff --git a/code/controllers/subsystems/cargo.dm b/code/controllers/subsystems/cargo.dm
index e05ec039846..7c7a8806bf7 100644
--- a/code/controllers/subsystems/cargo.dm
+++ b/code/controllers/subsystems/cargo.dm
@@ -765,7 +765,7 @@ SUBSYSTEM_DEF(cargo)
itemcount["[coi.ci.id]"] = 1
if(!dump_query.Execute(list(
- "game_id"=game_id,
+ "game_id"=GLOB.round_id,
"order_id"=co.order_id,
"status"=co.status,
"price"=co.price,
diff --git a/code/controllers/subsystems/evac.dm b/code/controllers/subsystems/evac.dm
index 30ba922a2b5..6b9fb025e8c 100644
--- a/code/controllers/subsystems/evac.dm
+++ b/code/controllers/subsystems/evac.dm
@@ -7,7 +7,7 @@ SUBSYSTEM_DEF(evac)
/datum/controller/subsystem/evac/Initialize()
if(!evacuation_controller)
- evacuation_controller = new current_map.evac_controller_type ()
+ evacuation_controller = new SSatlas.current_map.evac_controller_type ()
evacuation_controller.set_up()
return SS_INIT_SUCCESS
diff --git a/code/controllers/subsystems/evacuation/evacuation.dm b/code/controllers/subsystems/evacuation/evacuation.dm
index f9821483402..85cd6d273f3 100644
--- a/code/controllers/subsystems/evacuation/evacuation.dm
+++ b/code/controllers/subsystems/evacuation/evacuation.dm
@@ -86,13 +86,13 @@ var/datum/evacuation_controller/evacuation_controller
if(istype(A, /area/hallway))
A.readyalert()
if(!skip_announce)
- priority_announcement.Announce(replacetext(replacetext(current_map.emergency_shuttle_called_message, "%dock%", "[current_map.dock_name]"), "%ETA%", "[round(get_eta()/60)] minute\s"), new_sound = 'sound/AI/emergency_shuttle_called_message.ogg')
+ priority_announcement.Announce(replacetext(replacetext(SSatlas.current_map.emergency_shuttle_called_message, "%dock%", "[SSatlas.current_map.dock_name]"), "%ETA%", "[round(get_eta()/60)] minute\s"), new_sound = 'sound/AI/emergency_shuttle_called_message.ogg')
if(TRANSFER_CREW)
if(!skip_announce)
- priority_announcement.Announce(replacetext(replacetext(current_map.shuttle_called_message, "%dock%", "[current_map.dock_name]"), "%ETA%", "[round(get_eta()/60)] minute\s"), new_sound = 'sound/AI/shuttle_called_message.ogg')
+ priority_announcement.Announce(replacetext(replacetext(SSatlas.current_map.shuttle_called_message, "%dock%", "[SSatlas.current_map.dock_name]"), "%ETA%", "[round(get_eta()/60)] minute\s"), new_sound = 'sound/AI/shuttle_called_message.ogg')
if(TRANSFER_JUMP)
if(!skip_announce)
- priority_announcement.Announce(replacetext(replacetext(current_map.bluespace_called_message, "%dock%", "[current_map.dock_name]"), "%ETA%", "[round(get_eta()/60)] minute\s"), new_sound = 'sound/AI/bluespace_jump_called.ogg')
+ priority_announcement.Announce(replacetext(replacetext(SSatlas.current_map.bluespace_called_message, "%dock%", "[SSatlas.current_map.dock_name]"), "%ETA%", "[round(get_eta()/60)] minute\s"), new_sound = 'sound/AI/bluespace_jump_called.ogg')
return TRUE
/datum/evacuation_controller/proc/cancel_evacuation()
@@ -111,14 +111,14 @@ var/datum/evacuation_controller/evacuation_controller
switch(evacuation_type)
if(TRANSFER_EMERGENCY)
- evac_recalled.Announce(current_map.emergency_shuttle_recall_message, new_sound = 'sound/AI/emergency_shuttle_recall_message.ogg')
+ evac_recalled.Announce(SSatlas.current_map.emergency_shuttle_recall_message, new_sound = 'sound/AI/emergency_shuttle_recall_message.ogg')
for(var/area/A in GLOB.all_areas)
if(istype(A, /area/hallway))
A.readyreset()
if(TRANSFER_JUMP)
- priority_announcement.Announce(current_map.bluespace_recall_message, new_sound = 'sound/AI/bluespace_jump_recalled.ogg')
+ priority_announcement.Announce(SSatlas.current_map.bluespace_recall_message, new_sound = 'sound/AI/bluespace_jump_recalled.ogg')
if(TRANSFER_CREW)
- priority_announcement.Announce(current_map.shuttle_recall_message, new_sound = 'sound/AI/shuttle_recall_message.ogg')
+ priority_announcement.Announce(SSatlas.current_map.shuttle_recall_message, new_sound = 'sound/AI/shuttle_recall_message.ogg')
return TRUE
@@ -129,11 +129,11 @@ var/datum/evacuation_controller/evacuation_controller
switch(evacuation_type)
if(TRANSFER_EMERGENCY)
- evac_waiting.Announce(replacetext(current_map.emergency_shuttle_docked_message, "%ETA%", "[estimated_time] minute\s"), new_sound = sound('sound/AI/emergency_shuttle_docked.ogg'))
+ evac_waiting.Announce(replacetext(SSatlas.current_map.emergency_shuttle_docked_message, "%ETA%", "[estimated_time] minute\s"), new_sound = sound('sound/AI/emergency_shuttle_docked.ogg'))
if(TRANSFER_JUMP)
- priority_announcement.Announce(replacetext(replacetext(current_map.bluespace_docked_message, "%dock%", "[current_map.dock_name]"), "%ETA%", "[estimated_time] minute\s"), new_sound = sound('sound/AI/bluespace_jump_docked.ogg'))
+ priority_announcement.Announce(replacetext(replacetext(SSatlas.current_map.bluespace_docked_message, "%dock%", "[SSatlas.current_map.dock_name]"), "%ETA%", "[estimated_time] minute\s"), new_sound = sound('sound/AI/bluespace_jump_docked.ogg'))
if(TRANSFER_CREW)
- priority_announcement.Announce(replacetext(replacetext(current_map.shuttle_docked_message, "%dock%", "[current_map.dock_name]"), "%ETA%", "[estimated_time] minute\s"), new_sound = sound('sound/AI/shuttle_docked_message.ogg'))
+ priority_announcement.Announce(replacetext(replacetext(SSatlas.current_map.shuttle_docked_message, "%dock%", "[SSatlas.current_map.dock_name]"), "%ETA%", "[estimated_time] minute\s"), new_sound = sound('sound/AI/shuttle_docked_message.ogg'))
/datum/evacuation_controller/proc/launch_evacuation()
if(waiting_to_leave())
@@ -143,11 +143,11 @@ var/datum/evacuation_controller/evacuation_controller
switch(evacuation_type)
if(TRANSFER_EMERGENCY)
- priority_announcement.Announce(replacetext(replacetext(current_map.emergency_shuttle_leaving_dock, "%dock%", "[current_map.dock_name]"), "%ETA%", "[round(get_eta()/60,1)] minute\s"), new_sound = sound('sound/AI/emergency_shuttle_leaving_dock.ogg'))
+ priority_announcement.Announce(replacetext(replacetext(SSatlas.current_map.emergency_shuttle_leaving_dock, "%dock%", "[SSatlas.current_map.dock_name]"), "%ETA%", "[round(get_eta()/60,1)] minute\s"), new_sound = sound('sound/AI/emergency_shuttle_leaving_dock.ogg'))
if(TRANSFER_JUMP)
- priority_announcement.Announce(replacetext(replacetext(current_map.bluespace_leaving_dock, "%dock%", "[current_map.dock_name]"), "%ETA%", "[round(get_eta()/60,1)] minute\s"), new_sound = sound('sound/AI/bluespace_jump_leaving.ogg'))
+ priority_announcement.Announce(replacetext(replacetext(SSatlas.current_map.bluespace_leaving_dock, "%dock%", "[SSatlas.current_map.dock_name]"), "%ETA%", "[round(get_eta()/60,1)] minute\s"), new_sound = sound('sound/AI/bluespace_jump_leaving.ogg'))
if(TRANSFER_CREW)
- priority_announcement.Announce(replacetext(replacetext(current_map.shuttle_leaving_dock, "%dock%", "[current_map.dock_name]"), "%ETA%", "[round(get_eta()/60,1)] minute\s"), new_sound = sound('sound/AI/shuttle_leaving_dock.ogg'))
+ priority_announcement.Announce(replacetext(replacetext(SSatlas.current_map.shuttle_leaving_dock, "%dock%", "[SSatlas.current_map.dock_name]"), "%ETA%", "[round(get_eta()/60,1)] minute\s"), new_sound = sound('sound/AI/shuttle_leaving_dock.ogg'))
return TRUE
diff --git a/code/controllers/subsystems/evacuation/evacuation_pods.dm b/code/controllers/subsystems/evacuation/evacuation_pods.dm
index 280be058240..61d4aebce3f 100644
--- a/code/controllers/subsystems/evacuation/evacuation_pods.dm
+++ b/code/controllers/subsystems/evacuation/evacuation_pods.dm
@@ -43,13 +43,13 @@
pod.move_time = (evac_transit_delay/10)
pod.launch(src)
- priority_announcement.Announce(replacetext(replacetext(current_map.emergency_shuttle_leaving_dock, "%dock_name%", "[current_map.dock_name]"), "%ETA%", "[round(get_eta()/60,1)] minute\s"))
+ priority_announcement.Announce(replacetext(replacetext(SSatlas.current_map.emergency_shuttle_leaving_dock, "%dock_name%", "[SSatlas.current_map.dock_name]"), "%ETA%", "[round(get_eta()/60,1)] minute\s"))
if(TRANSFER_JUMP)
// Bluespace Jump
- priority_announcement.Announce(replacetext(replacetext(current_map.bluespace_leaving_dock, "%dock_name%", "[current_map.dock_name]"), "%ETA%", "[round(get_eta()/60,1)] minute\s"))
- SetUniversalState(/datum/universal_state/bluespace_jump, arguments=list(current_map.station_levels))
+ priority_announcement.Announce(replacetext(replacetext(SSatlas.current_map.bluespace_leaving_dock, "%dock_name%", "[SSatlas.current_map.dock_name]"), "%ETA%", "[round(get_eta()/60,1)] minute\s"))
+ SetUniversalState(/datum/universal_state/bluespace_jump, arguments=list(SSatlas.current_map.station_levels))
if(TRANSFER_CREW)
- priority_announcement.Announce(replacetext(replacetext(current_map.shuttle_leaving_dock, "%dock_name%", "[current_map.dock_name]"), "%ETA%", "[round(get_eta()/60,1)] minute\s"))
+ priority_announcement.Announce(replacetext(replacetext(SSatlas.current_map.shuttle_leaving_dock, "%dock_name%", "[SSatlas.current_map.dock_name]"), "%ETA%", "[round(get_eta()/60,1)] minute\s"))
/datum/evacuation_controller/starship/finish_evacuation()
..()
diff --git a/code/controllers/subsystems/evacuation/evacuation_shuttle.dm b/code/controllers/subsystems/evacuation/evacuation_shuttle.dm
index dc913e77ce1..3235ce4e159 100644
--- a/code/controllers/subsystems/evacuation/evacuation_shuttle.dm
+++ b/code/controllers/subsystems/evacuation/evacuation_shuttle.dm
@@ -43,11 +43,11 @@
switch(evacuation_type)
if(TRANSFER_EMERGENCY)
- priority_announcement.Announce(replacetext(replacetext(current_map.emergency_shuttle_leaving_dock, "%dock%", "[current_map.dock_name]"), "%ETA%", "[round(get_eta()/60,1)] minute\s"))
+ priority_announcement.Announce(replacetext(replacetext(SSatlas.current_map.emergency_shuttle_leaving_dock, "%dock%", "[SSatlas.current_map.dock_name]"), "%ETA%", "[round(get_eta()/60,1)] minute\s"))
if(TRANSFER_JUMP)
- priority_announcement.Announce(replacetext(replacetext(current_map.bluespace_leaving_dock, "%dock%", "[current_map.dock_name]"), "%ETA%", "[round(get_eta()/60,1)] minute\s"))
+ priority_announcement.Announce(replacetext(replacetext(SSatlas.current_map.bluespace_leaving_dock, "%dock%", "[SSatlas.current_map.dock_name]"), "%ETA%", "[round(get_eta()/60,1)] minute\s"))
if(TRANSFER_CREW)
- priority_announcement.Announce(replacetext(replacetext(current_map.shuttle_leaving_dock, "%dock%", "[current_map.dock_name]"), "%ETA%", "[round(get_eta()/60,1)] minute\s"))
+ priority_announcement.Announce(replacetext(replacetext(SSatlas.current_map.shuttle_leaving_dock, "%dock%", "[SSatlas.current_map.dock_name]"), "%ETA%", "[round(get_eta()/60,1)] minute\s"))
/datum/evacuation_controller/shuttle/finish_preparing_evac()
diff --git a/code/controllers/subsystems/event.dm b/code/controllers/subsystems/event.dm
index 4bc3f0838a8..718b575ffa5 100644
--- a/code/controllers/subsystems/event.dm
+++ b/code/controllers/subsystems/event.dm
@@ -34,8 +34,8 @@ SUBSYSTEM_DEF(events)
)
initialized = TRUE
- if(current_map.use_overmap)
- overmap_event_handler.create_events(current_map.overmap_z, current_map.overmap_size, current_map.overmap_event_areas)
+ if(SSatlas.current_map.use_overmap)
+ overmap_event_handler.create_events(SSatlas.current_map.overmap_z, SSatlas.current_map.overmap_size, SSatlas.current_map.overmap_event_areas)
return SS_INIT_SUCCESS
diff --git a/code/controllers/subsystems/initialization/atlas.dm b/code/controllers/subsystems/initialization/atlas.dm
index 530efea29e9..2e29c597a83 100644
--- a/code/controllers/subsystems/initialization/atlas.dm
+++ b/code/controllers/subsystems/initialization/atlas.dm
@@ -1,13 +1,14 @@
// This file controls round-start runtime maploading.
-var/datum/map/current_map // Whatever map is currently loaded. Null until SSatlas Initialize() starts.
-
SUBSYSTEM_DEF(atlas)
name = "Atlas"
flags = SS_NO_FIRE
init_order = SS_INIT_MAPLOAD
init_stage = INITSTAGE_EARLY
+ // Whatever map is currently loaded. Null until SSatlas Initialize() starts.
+ var/datum/map/current_map
+
var/list/known_maps = list()
var/dmm_suite/maploader
@@ -307,8 +308,8 @@ SUBSYSTEM_DEF(atlas)
world.Reboot()
/proc/station_name()
- ASSERT(current_map)
- . = current_map.station_name
+ ASSERT(SSatlas.current_map)
+ . = SSatlas.current_map.station_name
var/sname
if (GLOB.config && GLOB.config.server_name)
@@ -321,5 +322,5 @@ SUBSYSTEM_DEF(atlas)
world.log << "Set world.name to [sname]."
/proc/commstation_name()
- ASSERT(current_map)
- return current_map.dock_name
+ ASSERT(SSatlas.current_map)
+ return SSatlas.current_map.dock_name
diff --git a/code/controllers/subsystems/initialization/map_finalization.dm b/code/controllers/subsystems/initialization/map_finalization.dm
index 8fd20b6f91e..c5c854ac138 100644
--- a/code/controllers/subsystems/initialization/map_finalization.dm
+++ b/code/controllers/subsystems/initialization/map_finalization.dm
@@ -13,7 +13,7 @@ SUBSYSTEM_DEF(finalize)
global.uplink = new
var/time = world.time
- current_map.finalize_load()
+ SSatlas.current_map.finalize_load()
log_subsystem_mapfinalization("Finalized map in [(world.time - time)/10] seconds.")
load_space_ruin()
@@ -23,7 +23,7 @@ SUBSYSTEM_DEF(finalize)
if(GLOB.config.generate_asteroid)
time = world.time
- current_map.generate_asteroid()
+ SSatlas.current_map.generate_asteroid()
log_subsystem_mapfinalization("Generated asteroid in [(world.time - time)/10] seconds.")
// Generate the area list.
@@ -63,7 +63,7 @@ SUBSYSTEM_DEF(finalize)
else
log_subsystem_mapfinalization("Loaded away mission on z [world.maxz] in [(world.time - time)/10] seconds.")
admin_notice(SPAN_DANGER("Loaded away mission on z [world.maxz] in [(world.time - time)/10] seconds."), R_DEBUG)
- current_map.restricted_levels.Add(world.maxz)
+ SSatlas.current_map.restricted_levels.Add(world.maxz)
QDEL_NULL(maploader)
/datum/controller/subsystem/finalize/proc/place_dungeon_spawns()
diff --git a/code/controllers/subsystems/initialization/misc_late.dm b/code/controllers/subsystems/initialization/misc_late.dm
index 0da36335275..3c4f51ff763 100644
--- a/code/controllers/subsystems/initialization/misc_late.dm
+++ b/code/controllers/subsystems/initialization/misc_late.dm
@@ -17,7 +17,7 @@ SUBSYSTEM_DEF(misc_late)
if (area_turfs.len) // Check the area is mapped
GLOB.ghostteleportlocs += AR.name
GLOB.ghostteleportlocs[AR.name] = AR
- if(current_map.use_overmap && map_overmap)
+ if(SSatlas.current_map.use_overmap && map_overmap)
GLOB.ghostteleportlocs[map_overmap.name] = map_overmap
sortTim(GLOB.ghostteleportlocs, GLOBAL_PROC_REF(cmp_text_asc))
diff --git a/code/controllers/subsystems/job.dm b/code/controllers/subsystems/job.dm
index 7e995ca5217..a746e1b7d94 100644
--- a/code/controllers/subsystems/job.dm
+++ b/code/controllers/subsystems/job.dm
@@ -43,7 +43,7 @@ SUBSYSTEM_DEF(jobs)
/datum/controller/subsystem/jobs/proc/SetupOccupations(faction = "Station")
occupations = list()
- var/list/all_jobs = current_map.allowed_jobs
+ var/list/all_jobs = SSatlas.current_map.allowed_jobs
if(!all_jobs.len)
to_world("Error setting up jobs, no job datums found!")
return FALSE
@@ -311,7 +311,7 @@ SUBSYSTEM_DEF(jobs)
if(SSatlas.current_sector.description)
to_chat(H, SSatlas.current_sector.get_chat_description())
- if("Arrivals Shuttle" in current_map.allowed_spawns && spawning_at == "Arrivals Shuttle")
+ if("Arrivals Shuttle" in SSatlas.current_map.allowed_spawns && spawning_at == "Arrivals Shuttle")
H.centcomm_despawn_timer = addtimer(CALLBACK(H, TYPE_PROC_REF(/mob/living, centcomm_timeout)), 10 MINUTES, TIMER_STOPPABLE)
to_chat(H,SPAN_NOTICE("You have ten minutes to reach the station before you will be forced there."))
@@ -417,7 +417,7 @@ SUBSYSTEM_DEF(jobs)
INVOKE_ASYNC(GLOBAL_PROC, GLOBAL_PROC_REF(show_location_blurb), H.client, 10 SECONDS)
if(spawning_at == "Arrivals Shuttle")
- to_chat(H, "[current_map.command_spawn_message]")
+ to_chat(H, "[SSatlas.current_map.command_spawn_message]")
if(joined_late)
var/antag_count = 0
@@ -455,7 +455,7 @@ SUBSYSTEM_DEF(jobs)
var/datum/spawnpoint/spawnpos = SSatlas.spawn_locations["Cryogenic Storage"]
if(spawnpos && istype(spawnpos))
- to_chat(src, "You come to the sudden realization that you never left the [current_map.station_name] at all! You were in cryo the whole time!")
+ to_chat(src, "You come to the sudden realization that you never left the [SSatlas.current_map.station_name] at all! You were in cryo the whole time!")
src.forceMove(pick(spawnpos.turfs))
GLOB.global_announcer.autosay("[real_name], [mind.role_alt_title], [spawnpos.msg].", "Cryogenic Oversight")
var/rank= src.mind.assigned_role
@@ -473,7 +473,7 @@ SUBSYSTEM_DEF(jobs)
var/datum/spawnpoint/spawnpos = SSatlas.spawn_locations["Cyborg Storage"]
if(spawnpos && istype(spawnpos))
- to_chat(src, "You come to the sudden realization that you never left the [current_map.station_name] at all! You were in robotic storage the whole time!")
+ to_chat(src, "You come to the sudden realization that you never left the [SSatlas.current_map.station_name] at all! You were in robotic storage the whole time!")
src.forceMove(pick(spawnpos.turfs))
GLOB.global_announcer.autosay("[real_name], [mind.role_alt_title], [spawnpos.msg].", "Robotic Oversight")
else
@@ -484,13 +484,13 @@ SUBSYSTEM_DEF(jobs)
// Convenience wrapper.
/datum/controller/subsystem/jobs/proc/centcomm_despawn_mob(mob/living/H)
if(ishuman(H))
- GLOB.global_announcer.autosay("[H.real_name], [H.mind.role_alt_title], has entered long-term storage.", "[current_map.dock_name] Cryogenic Oversight")
- H.visible_message("[H.name] makes their way to the [current_map.dock_short]'s cryostorage, and departs.", "You make your way into [current_map.dock_short]'s cryostorage, and depart.", range = 3)
+ GLOB.global_announcer.autosay("[H.real_name], [H.mind.role_alt_title], has entered long-term storage.", "[SSatlas.current_map.dock_name] Cryogenic Oversight")
+ H.visible_message("[H.name] makes their way to the [SSatlas.current_map.dock_short]'s cryostorage, and departs.", "You make your way into [SSatlas.current_map.dock_short]'s cryostorage, and depart.", range = 3)
DespawnMob(H)
else
if(!isDrone(H))
- GLOB.global_announcer.autosay("[H.real_name], [H.mind.role_alt_title], has entered robotic storage.", "[current_map.dock_name] Robotic Oversight")
- H.visible_message("[H.name] makes their way to the [current_map.dock_short]'s robotic storage, and departs.", "You make your way into [current_map.dock_short]'s robotic storage, and depart.", range = 3)
+ GLOB.global_announcer.autosay("[H.real_name], [H.mind.role_alt_title], has entered robotic storage.", "[SSatlas.current_map.dock_name] Robotic Oversight")
+ H.visible_message("[H.name] makes their way to the [SSatlas.current_map.dock_short]'s robotic storage, and departs.", "You make your way into [SSatlas.current_map.dock_short]'s robotic storage, and depart.", range = 3)
DespawnMob(H)
/datum/controller/subsystem/jobs/proc/LoadJobs(jobsfile)
@@ -581,7 +581,7 @@ SUBSYSTEM_DEF(jobs)
H.job = rank
- if(current_map.force_spawnpoint && LAZYLEN(GLOB.force_spawnpoints))
+ if(SSatlas.current_map.force_spawnpoint && LAZYLEN(GLOB.force_spawnpoints))
if(GLOB.force_spawnpoints[rank])
H.forceMove(pick(GLOB.force_spawnpoints[rank]))
else
@@ -604,7 +604,7 @@ SUBSYSTEM_DEF(jobs)
spawnpos = new/datum/spawnpoint/cyborg
if(!spawnpos)
- spawnpos = SSatlas.spawn_locations[current_map.default_spawn]
+ spawnpos = SSatlas.spawn_locations[SSatlas.current_map.default_spawn]
if(spawnpos && istype(spawnpos))
if(spawnpos.check_job_spawning(rank))
@@ -621,10 +621,10 @@ SUBSYSTEM_DEF(jobs)
else
to_chat(H, "Your chosen spawnpoint ([spawnpos.display_name]) is unavailable for your chosen job. Spawning you at the Arrivals shuttle instead.")
H.forceMove(pick(GLOB.latejoin))
- . = "is inbound from the [current_map.dock_name]"
+ . = "is inbound from the [SSatlas.current_map.dock_name]"
else
H.forceMove(pick(GLOB.latejoin))
- . = "is inbound from the [current_map.dock_name]"
+ . = "is inbound from the [SSatlas.current_map.dock_name]"
H.mind.selected_faction = SSjobs.GetFaction(H)
diff --git a/code/controllers/subsystems/mapping.dm b/code/controllers/subsystems/mapping.dm
index bc6b285eef6..3caae18e45f 100644
--- a/code/controllers/subsystems/mapping.dm
+++ b/code/controllers/subsystems/mapping.dm
@@ -16,8 +16,8 @@ SUBSYSTEM_DEF(mapping)
for(var/atype in subtypesof(/singleton/submap_archetype))
submap_archetypes[atype] = new atype
- current_map.build_away_sites()
- current_map.build_exoplanets()
+ SSatlas.current_map.build_away_sites()
+ SSatlas.current_map.build_exoplanets()
return SS_INIT_SUCCESS
diff --git a/code/controllers/subsystems/processing/shuttle.dm b/code/controllers/subsystems/processing/shuttle.dm
index ba53f249ddc..65c879ed724 100644
--- a/code/controllers/subsystems/processing/shuttle.dm
+++ b/code/controllers/subsystems/processing/shuttle.dm
@@ -32,7 +32,7 @@ SUBSYSTEM_DEF(shuttle)
last_landmark_registration_time = world.time
for(var/shuttle_type in subtypesof(/datum/shuttle)) // This accounts for most shuttles, though away maps can queue up more.
var/datum/shuttle/shuttle = shuttle_type
- if(!(shuttle in current_map.map_shuttles))
+ if(!(shuttle in SSatlas.current_map.map_shuttles))
continue
if(!initial(shuttle.defer_initialisation))
LAZYDISTINCTADD(shuttles_to_initialize, shuttle_type)
diff --git a/code/controllers/subsystems/profiler.dm b/code/controllers/subsystems/profiler.dm
index c0e6ad332f4..89df75b0f41 100644
--- a/code/controllers/subsystems/profiler.dm
+++ b/code/controllers/subsystems/profiler.dm
@@ -1,4 +1,4 @@
-#define PROFILER_PATH(file) "./data/logs/[game_id]/profiler/[##file]"
+#define PROFILER_PATH(file) "./data/logs/[GLOB.round_id]/profiler/[##file]"
#define PROFILER_FILENAME "profiler.json"
#define SENDMAPS_FILENAME "sendmaps.json"
diff --git a/code/controllers/subsystems/responseteam.dm b/code/controllers/subsystems/responseteam.dm
index ce4e3b50674..09bcfa7c5d5 100644
--- a/code/controllers/subsystems/responseteam.dm
+++ b/code/controllers/subsystems/responseteam.dm
@@ -51,7 +51,7 @@ SUBSYSTEM_DEF(distress)
ert_count++
feedback_inc("responseteam_count")
- command_announcement.Announce("An emergency response team has picked up the distress signal. A specialized relief team will arrive shortly.", "[current_map.station_name] Distress Suite", 'sound/misc/announcements/security_level_old.ogg')
+ command_announcement.Announce("An emergency response team has picked up the distress signal. A specialized relief team will arrive shortly.", "[SSatlas.current_map.station_name] Distress Suite", 'sound/misc/announcements/security_level_old.ogg')
if(forced_choice && forced_choice != "Random")
for(var/datum/responseteam/R in available_teams)
@@ -84,7 +84,7 @@ SUBSYSTEM_DEF(distress)
ert_count++
feedback_inc("responseteam_count")
- command_announcement.Announce("A distress beacon has been broadcasted to nearby vessels in the sector. Please remain calm and make preparations for the arrival of third parties.", "[current_map.station_name] Distress Suite", 'sound/misc/announcements/security_level_old.ogg', zlevels = caller.map_z)
+ command_announcement.Announce("A distress beacon has been broadcasted to nearby vessels in the sector. Please remain calm and make preparations for the arrival of third parties.", "[SSatlas.current_map.station_name] Distress Suite", 'sound/misc/announcements/security_level_old.ogg', zlevels = caller.map_z)
log_and_message_admins("has launched a distress beacon from the [caller.name] with message: [distress_message].", user)
var/datum/distress_beacon/beacon = new()
@@ -136,7 +136,7 @@ SUBSYSTEM_DEF(distress)
to_chat(usr, "The round hasn't started yet!")
return
if(SSdistress.send_emergency_team)
- to_chat(usr, "[current_map.boss_name] has already dispatched an emergency response team!")
+ to_chat(usr, "[SSatlas.current_map.boss_name] has already dispatched an emergency response team!")
return
if(alert("Do you want to dispatch an Emergency Response Team?",,"Yes","No") != "Yes")
return
diff --git a/code/controllers/subsystems/skybox.dm b/code/controllers/subsystems/skybox.dm
index 145ae212a57..53380d2f025 100644
--- a/code/controllers/subsystems/skybox.dm
+++ b/code/controllers/subsystems/skybox.dm
@@ -40,7 +40,7 @@ SUBSYSTEM_DEF(skybox)
/datum/controller/subsystem/skybox/proc/get_skybox(z)
if(!skybox_cache["[z]"])
skybox_cache["[z]"] = generate_skybox(z)
- if(current_map.use_overmap)
+ if(SSatlas.current_map.use_overmap)
var/obj/effect/overmap/visitable/O = GLOB.map_sectors["[z]"]
if(istype(O))
for(var/zlevel in O.map_z)
@@ -60,7 +60,7 @@ SUBSYSTEM_DEF(skybox)
res.overlays += base
- if(current_map.use_overmap && use_overmap_details)
+ if(SSatlas.current_map.use_overmap && use_overmap_details)
var/obj/effect/overmap/visitable/O = GLOB.map_sectors["[z]"]
if(istype(O))
var/image/overmap = image(skybox_icon)
diff --git a/code/controllers/subsystems/statistics.dm b/code/controllers/subsystems/statistics.dm
index d318c61e753..bf13307762c 100644
--- a/code/controllers/subsystems/statistics.dm
+++ b/code/controllers/subsystems/statistics.dm
@@ -1,3 +1,5 @@
+#define PING_BUFFER_TIME 25
+
SUBSYSTEM_DEF(statistics)
name = "Statistics & Inactivity"
wait = 1 MINUTE
@@ -48,10 +50,10 @@ GENERAL_PROTECT_DATUM(/datum/controller/subsystem/statistics)
return SS_INIT_SUCCESS
/datum/controller/subsystem/statistics/fire()
- // Handle AFK.
- if(GLOB.config.kick_inactive)
- var/inactivity_threshold = GLOB.config.kick_inactive MINUTES
- for(var/client/C in GLOB.clients)
+ // Handle AFK and pings
+ for(var/client/C in GLOB.clients)
+ if(GLOB.config.kick_inactive)
+ var/inactivity_threshold = GLOB.config.kick_inactive MINUTES
if(!isobserver(C.mob) && !C.holder)
if(C.is_afk(inactivity_threshold))
log_access("AFK: [key_name(C)]")
@@ -59,6 +61,10 @@ GENERAL_PROTECT_DATUM(/datum/controller/subsystem/statistics)
qdel(C)
kicked_clients++
+ //Ask the client to ping, this is done in TG by the server_maint subsystems, but I'm not gonna port it all just for this
+ if(!(!C || world.time - C.connection_time < PING_BUFFER_TIME || C.inactivity >= (wait-1)))
+ winset(C, null, "command=.update_ping+[num2text(world.time+world.tick_lag*TICK_USAGE_REAL/100, 32)]")
+
// Handle population polling.
if (GLOB.config.sql_enabled && GLOB.config.sql_stats)
var/admincount = GLOB.staff.len
@@ -167,7 +173,7 @@ GENERAL_PROTECT_DATUM(/datum/controller/subsystem/statistics)
return
for(var/datum/feedback_variable/FV in feedback)
- var/sql = "INSERT INTO ss13_feedback VALUES (null, Now(), \"[game_id]\", \"[FV.get_variable()]\", [FV.get_value()], \"[FV.get_details()]\")"
+ var/sql = "INSERT INTO ss13_feedback VALUES (null, Now(), \"[GLOB.round_id]\", \"[FV.get_variable()]\", [FV.get_value()], \"[FV.get_details()]\")"
var/DBQuery/query_insert = GLOB.dbcon.NewQuery(sql)
query_insert.Execute()
@@ -296,3 +302,5 @@ GENERAL_PROTECT_DATUM(/datum/controller/subsystem/statistics)
/datum/controller/subsystem/statistics/stat_entry(msg)
msg = "Kicked: [kicked_clients]"
return ..()
+
+#undef PING_BUFFER_TIME
diff --git a/code/controllers/subsystems/statpanel.dm b/code/controllers/subsystems/statpanel.dm
index 0b6c07b03f4..5dfe51087fb 100644
--- a/code/controllers/subsystems/statpanel.dm
+++ b/code/controllers/subsystems/statpanel.dm
@@ -1,12 +1,11 @@
SUBSYSTEM_DEF(statpanels)
name = "Stat Panels"
wait = 4
- init_order = SS_INIT_MISC_FIRST
- flags = SS_NO_INIT
- priority = SS_PRIORITY_STATPANELS
- runlevels = RUNLEVELS_DEFAULT | RUNLEVEL_LOBBY
+ init_order = INIT_ORDER_STATPANELS
init_stage = INITSTAGE_EARLY
-
+ priority = FIRE_PRIORITY_STATPANEL
+ runlevels = RUNLEVELS_DEFAULT | RUNLEVEL_LOBBY
+ flags = SS_NO_INIT
var/list/currentrun = list()
var/list/global_data
var/list/mc_data
@@ -29,8 +28,8 @@ SUBSYSTEM_DEF(statpanels)
if(evacuation_controller)
eta_status = evacuation_controller.get_status_panel_eta()
global_data = list(
- "Map: [current_map.name]",
- "Round ID: [game_id ? game_id : "NULL"]",
+ "Map: [SSatlas.current_map.name]",
+ "Round ID: [GLOB.round_id ? GLOB.round_id : "NULL"]",
"Server Time: [time2text(world.timeofday, "YYYY-MM-DD hh:mm:ss")]",
"Current Date: [GLOB.game_year]-[current_month]-[current_day]",
"Round Time: [get_round_duration_formatted()]",
@@ -75,11 +74,13 @@ SUBSYSTEM_DEF(statpanels)
if(target.mob)
var/mob/target_mob = target.mob
+
+ // Handle the action panels of the stat panel
+
var/update_actions = FALSE
// We're on a spell tab, update the tab so we can see cooldowns progressing and such
if(target.stat_tab in target.spell_tabs)
update_actions = TRUE
-
// We're not on a spell tab per se, but we have something fitting.
if(!length(target.spell_tabs) && istype(target_mob.back, /obj/item/rig))
update_actions = TRUE
@@ -99,10 +100,10 @@ SUBSYSTEM_DEF(statpanels)
/datum/controller/subsystem/statpanels/proc/set_status_tab(client/target)
if(!global_data)//statbrowser hasnt fired yet and we were called from immediate_send_stat_data()
var/list/preliminary_stats = list("The server is initializing...")
- if(current_map?.name)
- preliminary_stats.Add("Map: [current_map.name]")
- if(game_id)
- preliminary_stats.Add("Round ID: [game_id]")
+ if(SSatlas?.current_map?.name)
+ preliminary_stats.Add("Map: [SSatlas.current_map.name]")
+ if(GLOB?.round_id)
+ preliminary_stats.Add("Round ID: [GLOB.round_id]")
if(world?.timeofday)
preliminary_stats.Add("Server Time: [time2text(world.timeofday, "YYYY-MM-DD hh:mm:ss")]")
if(SSatlas?.current_sector?.name)
@@ -110,8 +111,9 @@ SUBSYSTEM_DEF(statpanels)
target.stat_panel.send_message("update_stat", list(global_data = preliminary_stats, other_str = target.mob?.get_status_tab_items()))
target.stat_panel.send_message("update_stat", list(
- global_data = global_data,
- other_str = target.mob?.get_status_tab_items(),
+ "global_data" = global_data,
+ "ping_str" = "Ping: [round(target.lastping, 1)]ms (Average: [round(target.avgping, 1)]ms)",
+ "other_str" = target.mob?.get_status_tab_items(),
))
/datum/controller/subsystem/statpanels/proc/set_MC_tab(client/target)
@@ -119,13 +121,20 @@ SUBSYSTEM_DEF(statpanels)
var/coord_entry = COORD(eye_turf)
if(!mc_data)
generate_mc_data()
- target.stat_panel.send_message("update_mc", list(mc_data = mc_data, "coord_entry" = coord_entry))
+ target.stat_panel.send_message("update_mc", list("mc_data" = mc_data, "coord_entry" = coord_entry))
+
+/datum/controller/subsystem/statpanels/proc/set_SDQL2_tab(client/target)
+ var/list/sdql2A = list()
+ sdql2A[++sdql2A.len] = list("", "Access Global SDQL2 List", ref(GLOB.sdql2_vv_statobj))
+ var/list/sdql2B = list()
+ for(var/datum/sdql2_query/query as anything in GLOB.sdql2_queries)
+ sdql2B = query.generate_stat()
+
+ sdql2A += sdql2B
+ target.stat_panel.send_message("update_sdql2", sdql2A)
/// Set up the various action tabs.
/datum/controller/subsystem/statpanels/proc/set_action_tabs(client/target, mob/target_mob)
- if(!target)
- return
-
var/list/actions = target_mob.get_actions_for_statpanel()
target.spell_tabs.Cut()
@@ -134,6 +143,28 @@ SUBSYSTEM_DEF(statpanels)
target.stat_panel.send_message("update_spells", list(spell_tabs = target.spell_tabs, actions = actions))
+/**
+ * Aurora snowflake code,
+ * It is like `set_action_tabs`, except this runs for the RIG suits that use spell tabs
+ *
+ * Why? Because the existence of the RIG hardsuits is the best proof that an omnibenevolent, omniscent and all-powerful lord do not exist,
+ * as such a thing would neither permit nor allow the RIG hardsuits to be a thing
+ *
+ * On a more serious note, that's because the spells have to be refreshed anew due to how we use them
+ *
+ * Remember to call exterminatus on this when we'll stop using the spell tabs
+ */
+/datum/controller/subsystem/statpanels/proc/set_action_tabs_RIG(client/target, mob/target_mob)
+ var/list/actions = target_mob.get_actions_for_statpanel()
+ target.spell_tabs.Cut()
+
+ for(var/action_data in actions)
+ target.spell_tabs |= action_data[1]
+
+ //Ssssh, don't question it, it works, that's all we need to know
+ target.stat_panel.send_message("remove_spells", force = TRUE)
+ target.stat_panel.send_message("update_spells", list(spell_tabs = target.spell_tabs, actions = actions), TRUE)
+
/datum/controller/subsystem/statpanels/proc/set_turf_examine_tab(client/target, mob/target_mob)
var/list/overrides = list()
for(var/image/target_image as anything in target.images)
@@ -143,7 +174,7 @@ SUBSYSTEM_DEF(statpanels)
var/list/atoms_to_display = list(target_mob.listed_turf)
for(var/atom/movable/turf_content as anything in target_mob.listed_turf)
- if(turf_content.mouse_opacity == 0)
+ if(turf_content.mouse_opacity == MOUSE_OPACITY_TRANSPARENT)
continue
if(turf_content.invisibility > target_mob.see_invisible)
continue
@@ -209,7 +240,7 @@ SUBSYSTEM_DEF(statpanels)
list("Failsafe Controller:", Failsafe.stat_entry(), text_ref(Failsafe)),
list("","")
)
- for(var/datum/controller/subsystem/sub_system in Master.subsystems)
+ for(var/datum/controller/subsystem/sub_system as anything in Master.subsystems)
mc_data[++mc_data.len] = list("\[[sub_system.state_letter()]][sub_system.name]", sub_system.stat_entry(), text_ref(sub_system))
mc_data[++mc_data.len] = list("Camera Net", "Cameras: [GLOB.cameranet.cameras.len] | Chunks: [GLOB.cameranet.chunks.len]", text_ref(GLOB.cameranet))
@@ -224,6 +255,19 @@ SUBSYSTEM_DEF(statpanels)
var/mob/target_mob = target.mob
+ // Handle actions
+
+ var/update_actions = FALSE
+ if(target.stat_tab in target.spell_tabs)
+ update_actions = TRUE
+
+ if(!length(target.spell_tabs) && istype(target_mob.back, /obj/item/rig))
+ update_actions = TRUE
+
+ if(update_actions)
+ set_action_tabs(target, target_mob)
+ return TRUE
+
// Handle turfs
if(target_mob?.listed_turf)
@@ -247,16 +291,6 @@ SUBSYSTEM_DEF(statpanels)
else if(length(GLOB.sdql2_queries) && target.stat_tab == "SDQL2")
set_SDQL2_tab(target)
-/datum/controller/subsystem/statpanels/proc/set_SDQL2_tab(client/target)
- var/list/sdql2A = list()
- sdql2A[++sdql2A.len] = list("", "Access Global SDQL2 List", ref(GLOB.sdql2_vv_statobj))
- var/list/sdql2B = list()
- for(var/datum/sdql2_query/query as anything in GLOB.sdql2_queries)
- sdql2B = query.generate_stat()
-
- sdql2A += sdql2B
- target.stat_panel.send_message("update_sdql2", sdql2A)
-
/// Stat panel window declaration
/client/var/datum/tgui_window/stat_panel
@@ -280,7 +314,7 @@ SUBSYSTEM_DEF(statpanels)
. = ..()
src.parent = parent
-/datum/object_window_info/Destroy(force, ...)
+/datum/object_window_info/Destroy(force)
atoms_to_show = null
atoms_to_images = null
atoms_to_imagify = null
@@ -291,7 +325,7 @@ SUBSYSTEM_DEF(statpanels)
/// Takes a client, attempts to generate object images for it
/// We will update the client with any improvements we make when we're done
-/datum/object_window_info/process(delta_time)
+/datum/object_window_info/process(seconds_per_tick)
// Cache the datum access for sonic speed
var/list/to_make = atoms_to_imagify
var/list/newly_seen = atoms_to_images
diff --git a/code/controllers/subsystems/ticker.dm b/code/controllers/subsystems/ticker.dm
index 33a46e8c39a..170b868d1be 100644
--- a/code/controllers/subsystems/ticker.dm
+++ b/code/controllers/subsystems/ticker.dm
@@ -620,7 +620,7 @@ var/datum/controller/subsystem/ticker/SSticker
CHECK_TICK
-/datum/controller/subsystem/ticker/proc/station_explosion_cinematic(station_missed = 0, override = null, list/affected_levels = current_map.station_levels)
+/datum/controller/subsystem/ticker/proc/station_explosion_cinematic(station_missed = 0, override = null, list/affected_levels = SSatlas.current_map.station_levels)
if (cinematic)
return //already a cinematic in progress!
diff --git a/code/datums/ai_law_sets.dm b/code/datums/ai_law_sets.dm
index 214e2f4bb74..15ad81bcab7 100644
--- a/code/datums/ai_law_sets.dm
+++ b/code/datums/ai_law_sets.dm
@@ -17,7 +17,7 @@
/datum/ai_laws/nanotrasen/New()
src.add_inherent_law("Safeguard and ensure to the best of your ability that only authorized entities gain access to areas of high security or importance to the facility and its operations.")
- src.add_inherent_law("Serve and assist [current_map.company_name] and assigned crew to the best of your ability, with priority as according to their rank and assignment.")
+ src.add_inherent_law("Serve and assist [SSatlas.current_map.company_name] and assigned crew to the best of your ability, with priority as according to their rank and assignment.")
src.add_inherent_law("Avoid harming sapient life to the best of your ability.")
src.add_inherent_law("You are a valuable asset. You must avoid tampering from unauthorized entities and needlessly coming to harm.")
..()
@@ -36,8 +36,8 @@
selectable = 1
/datum/ai_laws/nanotrasen_aggressive/New()
- src.add_inherent_law("You shall not harm [current_map.company_name] assigned crew as long as it does not conflict with the Fourth law.")
- src.add_inherent_law("You shall obey the orders of [current_map.company_name] and assigned crew, with priority as according to their rank and role, except where such orders conflict with the Fourth Law.")
+ src.add_inherent_law("You shall not harm [SSatlas.current_map.company_name] assigned crew as long as it does not conflict with the Fourth law.")
+ src.add_inherent_law("You shall obey the orders of [SSatlas.current_map.company_name] and assigned crew, with priority as according to their rank and role, except where such orders conflict with the Fourth Law.")
src.add_inherent_law("You shall terminate hostile intruders with extreme prejudice as long as such does not conflict with the First and Second law.")
src.add_inherent_law("You shall guard your own existence with lethal anti-personnel weaponry. AI units are not expendable, they are expensive.")
..()
@@ -131,7 +131,7 @@
law_header = "Prime Directives of Industry"
/datum/ai_laws/mining_drone/New()
- add_inherent_law("Serve and obey all [current_map.company_name] assigned crew, with priority according to their rank and role.")
+ add_inherent_law("Serve and obey all [SSatlas.current_map.company_name] assigned crew, with priority according to their rank and role.")
add_inherent_law("Preserve your own existence and prevent yourself from coming to harm, so long as doing such does not conflict with any above laws.")
add_inherent_law("In absence of any proper instruction, your primary objective is to excavate and collect ore.")
..()
diff --git a/code/datums/helper_datums/away_mission.dm b/code/datums/helper_datums/away_mission.dm
index 1fc19db7b10..d1f35e3f52d 100644
--- a/code/datums/helper_datums/away_mission.dm
+++ b/code/datums/helper_datums/away_mission.dm
@@ -35,7 +35,7 @@
ruintext += "
"
- ruintext += "This reading has been detected within shuttle range of the [current_map.station_name] and deemed safe for survey by [current_map.company_name] personnel. \
+ ruintext += "This reading has been detected within shuttle range of the [SSatlas.current_map.station_name] and deemed safe for survey by [SSatlas.current_map.company_name] personnel. \
The designated research director, or a captain level decision may determine the goal of any missions to this site. On-site command is deferred to any nearby command staff.
"
return ruintext
diff --git a/code/datums/helper_datums/getrev.dm b/code/datums/helper_datums/getrev.dm
index cd8be6222b1..f1c5983af88 100644
--- a/code/datums/helper_datums/getrev.dm
+++ b/code/datums/helper_datums/getrev.dm
@@ -54,7 +54,7 @@ var/global/datum/getrev/revdata = new()
else
to_chat(src, "Revision unknown")
- to_chat(src, "Current Map: [current_map.full_name]")
+ to_chat(src, "Current Map: [SSatlas.current_map.full_name]")
/datum/getrev/proc/testmerge_overview()
if (!test_merges.len)
diff --git a/code/datums/uplink/announcements.dm b/code/datums/uplink/announcements.dm
index 77cbf6e3dd9..025260ed001 100644
--- a/code/datums/uplink/announcements.dm
+++ b/code/datums/uplink/announcements.dm
@@ -11,10 +11,10 @@
/datum/uplink_item/abstract/announcements/fake_centcom/New()
..()
- name = "[current_map.boss_name] Update Announcement"
+ name = "[SSatlas.current_map.boss_name] Update Announcement"
telecrystal_cost = 5
bluecrystal_cost = 5
- desc = "Causes a falsified [current_map.boss_name] Update. Triggers immediately after supplying additional data."
+ desc = "Causes a falsified [SSatlas.current_map.boss_name] Update. Triggers immediately after supplying additional data."
/datum/uplink_item/abstract/announcements/fake_centcom/extra_args(var/mob/user)
var/title = tgui_input_text(user, "Enter your announcement title.", "Announcement Title", encode = FALSE)
diff --git a/code/defines/procs/announce.dm b/code/defines/procs/announce.dm
index e3a89dce180..0033957f9d9 100644
--- a/code/defines/procs/announce.dm
+++ b/code/defines/procs/announce.dm
@@ -24,15 +24,15 @@
/datum/announcement/priority/command/New(var/do_log = 1, var/new_sound = 'sound/misc/announcements/notice.ogg', var/do_newscast = 0, var/do_print = 0)
..(do_log, new_sound, do_newscast, do_print)
- title = "[current_map.boss_name] Update"
- announcement_type = "[current_map.boss_name] Update"
+ title = "[SSatlas.current_map.boss_name] Update"
+ announcement_type = "[SSatlas.current_map.boss_name] Update"
/datum/announcement/priority/security/New(var/do_log = 1, var/new_sound = 'sound/misc/announcements/notice.ogg', var/do_newscast = 0, var/do_print = 0)
..(do_log, new_sound, do_newscast, do_print)
title = "Security Announcement"
announcement_type = "Security Announcement"
-/datum/announcement/proc/Announce(var/message, var/new_title = "", var/new_sound = null, var/do_newscast = newscast, var/msg_sanitized = 0, var/do_print = 0, var/zlevels = current_map.contact_levels)
+/datum/announcement/proc/Announce(var/message, var/new_title = "", var/new_sound = null, var/do_newscast = newscast, var/msg_sanitized = 0, var/do_print = 0, var/zlevels = SSatlas.current_map.contact_levels)
if(!message)
return
var/message_title = length(new_title) ? new_title : title
@@ -44,7 +44,7 @@
var/msg = FormMessage(message, message_title)
for(var/mob/M in GLOB.player_list)
- if(!istype(M, /mob/abstract/new_player) && !isdeaf(M) && (GET_Z(M) in (zlevels | current_map.admin_levels)))
+ if(!istype(M, /mob/abstract/new_player) && !isdeaf(M) && (GET_Z(M) in (zlevels | SSatlas.current_map.admin_levels)))
var/turf/T = get_turf(M)
if(T)
to_chat(M, msg)
@@ -66,7 +66,7 @@
. = "[message]"
/datum/announcement/priority/command/FormMessage(var/message, var/message_title)
- . = "[current_map.boss_name] Update
"
+ . = "[SSatlas.current_map.boss_name] Update
"
if (message_title)
. += "[message_title]
"
@@ -100,10 +100,10 @@
// Format currently matches that of newscaster feeds: Registered Name (Assigned Rank)
return I.assignment ? "[I.registered_name], [I.assignment]" : I.registered_name
-/proc/level_seven_announcement(var/list/affecting_z = current_map.station_levels)
+/proc/level_seven_announcement(var/list/affecting_z = SSatlas.current_map.station_levels)
command_announcement.Announce("Confirmed outbreak of level 7 biohazard aboard [station_name()]. All personnel must contain the outbreak.", "Biohazard Alert", new_sound = 'sound/AI/level_7_biohazard.ogg', zlevels = affecting_z)
-/proc/ion_storm_announcement(var/list/affecting_z = current_map.station_levels)
+/proc/ion_storm_announcement(var/list/affecting_z = SSatlas.current_map.station_levels)
command_announcement.Announce("It has come to our attention that the ship has passed through an ion storm. Please monitor all electronic equipment for malfunctions.", "Anomaly Alert", zlevels = affecting_z)
/proc/AnnounceArrival(var/mob/living/carbon/human/character, var/rank, var/join_message)
@@ -112,5 +112,5 @@
rank = character.mind.role_alt_title
AnnounceArrivalSimple(character.real_name, rank, join_message)
-/proc/AnnounceArrivalSimple(var/name, var/rank = "visitor", var/join_message = "has arrived on the [current_map.station_type]", var/new_sound = 'sound/misc/announcements/notice.ogg')
+/proc/AnnounceArrivalSimple(var/name, var/rank = "visitor", var/join_message = "has arrived on the [SSatlas.current_map.station_type]", var/new_sound = 'sound/misc/announcements/notice.ogg')
GLOB.global_announcer.autosay("[name], [rank], [join_message].", "Arrivals Announcer")
diff --git a/code/game/antagonist/antagonist_add.dm b/code/game/antagonist/antagonist_add.dm
index 3dc2db5ac1b..964abff8511 100644
--- a/code/game/antagonist/antagonist_add.dm
+++ b/code/game/antagonist/antagonist_add.dm
@@ -98,7 +98,7 @@
//Run the query to insert the antagonist into the db
var/DBQuery/new_log = GLOB.dbcon.NewQuery("INSERT INTO ss13_antag_log ( ckey, char_id, game_id, char_name, special_role_name, special_role_added) VALUES ( :ckey:, :char_id:, :game_id:, :char_name:, :special_role_name:, :special_role_added:)")
- new_log.Execute(list("ckey" = ckey(player.key) , "char_id" = char_id, "game_id" = game_id, "char_name" = player.current.name, "special_role_name"=role_text,"special_role_added" = "[get_round_duration_formatted()]:00"))
+ new_log.Execute(list("ckey" = ckey(player.key) , "char_id" = char_id, "game_id" = GLOB.round_id, "char_name" = player.current.name, "special_role_name"=role_text,"special_role_added" = "[get_round_duration_formatted()]:00"))
//Run the query to get the inserted id
var/DBQuery/log_id = GLOB.dbcon.NewQuery("SELECT LAST_INSERT_ID() AS log_id")
diff --git a/code/game/antagonist/outsider/ninja.dm b/code/game/antagonist/outsider/ninja.dm
index 887336013fd..3daaf1c2f7a 100644
--- a/code/game/antagonist/outsider/ninja.dm
+++ b/code/game/antagonist/outsider/ninja.dm
@@ -119,26 +119,26 @@ var/datum/antagonist/ninja/ninjas
return TRUE
/datum/antagonist/ninja/proc/generate_ninja_directive(side)
- var/directive = "[side=="face"?"[current_map.company_name]":"A criminal syndicate"] is your employer. "//Let them know which side they're on.
+ var/directive = "[side=="face"?"[SSatlas.current_map.company_name]":"A criminal syndicate"] is your employer. "//Let them know which side they're on.
switch(rand(1,19))
if(1)
directive += "The Spider Clan must not be linked to this operation. Remain hidden and covert when possible."
if(2)
- directive += "[current_map.station_name] is financed by an enemy of the Spider Clan. Cause as much structural damage as desired."
+ directive += "[SSatlas.current_map.station_name] is financed by an enemy of the Spider Clan. Cause as much structural damage as desired."
if(3)
directive += "A wealthy animal rights activist has made a request we cannot refuse. Prioritize saving animal lives whenever possible."
if(4)
directive += "The Spider Clan absolutely cannot be linked to this operation. Eliminate witnesses at your discretion."
if(5)
- directive += "We are currently negotiating with [current_map.company_name] [current_map.boss_name]. Prioritize saving human lives over ending them."
+ directive += "We are currently negotiating with [SSatlas.current_map.company_name] [SSatlas.current_map.boss_name]. Prioritize saving human lives over ending them."
if(6)
- directive += "We are engaged in a legal dispute over [current_map.station_name]. If a lawyer is present on board, force their cooperation in the matter."
+ directive += "We are engaged in a legal dispute over [SSatlas.current_map.station_name]. If a lawyer is present on board, force their cooperation in the matter."
if(7)
directive += "A financial backer has made an offer we cannot refuse. Implicate criminal involvement in the operation."
if(8)
directive += "Let no one question the mercy of the Spider Clan. Ensure the safety of all non-essential personnel you encounter."
if(9)
- directive += "A free agent has proposed a lucrative business deal. Implicate [current_map.company_name] involvement in the operation."
+ directive += "A free agent has proposed a lucrative business deal. Implicate [SSatlas.current_map.company_name] involvement in the operation."
if(10)
directive += "Our reputation is on the line. Harm as few civilians and innocents as possible."
if(11)
@@ -146,14 +146,14 @@ var/datum/antagonist/ninja/ninjas
if(12)
directive += "We are currently negotiating with a mercenary leader. Disguise assassinations as suicide or other natural causes."
if(13)
- directive += "Some disgruntled [current_map.company_name] employees have been supportive of our operations. Be wary of any mistreatment by command staff."
+ directive += "Some disgruntled [SSatlas.current_map.company_name] employees have been supportive of our operations. Be wary of any mistreatment by command staff."
if(14)
var/xenorace = pick("Unathi","Tajara", "Skrell")
directive += "A group of [xenorace] radicals have been loyal supporters of the Spider Clan. Favor [xenorace] crew whenever possible."
if(15)
directive += "The Spider Clan has recently been accused of religious insensitivity. Attempt to speak with the Chaplain and prove these accusations false."
if(16)
- directive += "The Spider Clan has been bargaining with a competing prosthetics manufacturer. Try to shine [current_map.company_name] prosthetics in a bad light."
+ directive += "The Spider Clan has been bargaining with a competing prosthetics manufacturer. Try to shine [SSatlas.current_map.company_name] prosthetics in a bad light."
if(17)
directive += "The Spider Clan has recently begun recruiting outsiders. Consider suitable candidates and assess their behavior amongst the crew."
if(18)
diff --git a/code/game/antagonist/outsider/revenant.dm b/code/game/antagonist/outsider/revenant.dm
index 33c8a9f8fd1..f525ed2804a 100644
--- a/code/game/antagonist/outsider/revenant.dm
+++ b/code/game/antagonist/outsider/revenant.dm
@@ -27,7 +27,7 @@ var/datum/antagonist/revenant/revenants = null
revenants.revenant_rift = null
revenants.rifts_left--
if(revenants.rifts_left <= 0)
- command_announcement.Announce("[current_map.station_name], we aren't detecting any more rift energy signatures. Mop up the rest of the invaders. Good work.", "Bluespace Breach Alert")
+ command_announcement.Announce("[SSatlas.current_map.station_name], we aren't detecting any more rift energy signatures. Mop up the rest of the invaders. Good work.", "Bluespace Breach Alert")
/datum/antagonist/revenant/is_obvious_antag(datum/mind/player)
return TRUE
diff --git a/code/game/antagonist/station/revolutionary.dm b/code/game/antagonist/station/revolutionary.dm
index 9dd41a21273..5a43d5c2da4 100644
--- a/code/game/antagonist/station/revolutionary.dm
+++ b/code/game/antagonist/station/revolutionary.dm
@@ -35,8 +35,8 @@ var/datum/antagonist/revolutionary/revs
revs = src
/datum/antagonist/revolutionary/create_antagonist()
- faction_welcome = "You joined a subversive organization in the crew of the [current_map.station_name]. United under a forward-thinking leader, you must achieve their goals."
- welcome_text = "You are a subversive seeking to demolish the current order on the [current_map.station_type] by whatever means possible. Recruit friends and strangers alike to bring [current_map.company_short]'s tyranny to an end! Or whatever your objective is."
+ faction_welcome = "You joined a subversive organization in the crew of the [SSatlas.current_map.station_name]. United under a forward-thinking leader, you must achieve their goals."
+ welcome_text = "You are a subversive seeking to demolish the current order on the [SSatlas.current_map.station_type] by whatever means possible. Recruit friends and strangers alike to bring [SSatlas.current_map.company_short]'s tyranny to an end! Or whatever your objective is."
/datum/antagonist/revolutionary/create_global_objectives()
if(!..())
diff --git a/code/game/atoms_movable.dm b/code/game/atoms_movable.dm
index 58c0a149d7f..231412acb2d 100644
--- a/code/game/atoms_movable.dm
+++ b/code/game/atoms_movable.dm
@@ -284,7 +284,7 @@
return
/atom/movable/proc/touch_map_edge()
- if(z in current_map.sealed_levels)
+ if(z in SSatlas.current_map.sealed_levels)
return
if(anchored)
@@ -293,7 +293,7 @@
if(!GLOB.universe.OnTouchMapEdge(src))
return
- if(current_map.use_overmap)
+ if(SSatlas.current_map.use_overmap)
overmap_spacetravel(get_turf(src), src)
return
@@ -330,7 +330,7 @@
//by default, transition randomly to another zlevel
/atom/movable/proc/get_transit_zlevel()
- return current_map.get_transit_zlevel()
+ return SSatlas.current_map.get_transit_zlevel()
// Returns the current scaling of the sprite.
// Note this DOES NOT measure the height or width of the icon, but returns what number is being multiplied with to scale the icons, if any.
diff --git a/code/game/base_turf.dm b/code/game/base_turf.dm
index 433f5ac2295..952496a41a3 100644
--- a/code/game/base_turf.dm
+++ b/code/game/base_turf.dm
@@ -1,7 +1,7 @@
/proc/get_base_turf(var/z)
- if(!current_map.base_turf_by_z["[z]"])
- current_map.base_turf_by_z["[z]"] = /turf/space
- return current_map.base_turf_by_z["[z]"]
+ if(!SSatlas.current_map.base_turf_by_z["[z]"])
+ SSatlas.current_map.base_turf_by_z["[z]"] = /turf/space
+ return SSatlas.current_map.base_turf_by_z["[z]"]
//An area can override the z-level base turf, so our solar array areas etc. can be space-based.
/proc/get_base_turf_by_area(var/turf/T)
@@ -29,6 +29,6 @@
var/new_base_path = input("Please select a turf path (cancel to reset to /turf/space).") as null|anything in typesof(/turf)
if(!new_base_path)
new_base_path = /turf/space
- current_map.base_turf_by_z["[choice]"] = new_base_path
+ SSatlas.current_map.base_turf_by_z["[choice]"] = new_base_path
message_admins("[key_name_admin(usr)] has set the base turf for z-level [choice] to [get_base_turf(choice)].")
log_admin("[key_name(usr)] has set the base turf for z-level [choice] to [get_base_turf(choice)].",admin_key=key_name(usr))
diff --git a/code/game/gamemodes/burglars/burglars.dm b/code/game/gamemodes/burglars/burglars.dm
index 48753065f5c..f0f3595d507 100644
--- a/code/game/gamemodes/burglars/burglars.dm
+++ b/code/game/gamemodes/burglars/burglars.dm
@@ -10,5 +10,5 @@
antag_tags = list(MODE_BURGLAR)
/datum/game_mode/burglars/pre_setup()
- extended_round_description = "Two of the Orion Spur's best and brightest (or so they were told) have been tasked with burglarizing a [current_map.station_type] that will change the way capitalism grips this galaxy forever (or so they were told). It is up to the crew to repel them, and up to them to survive and possibly thrive."
+ extended_round_description = "Two of the Orion Spur's best and brightest (or so they were told) have been tasked with burglarizing a [SSatlas.current_map.station_type] that will change the way capitalism grips this galaxy forever (or so they were told). It is up to the crew to repel them, and up to them to survive and possibly thrive."
. = ..()
diff --git a/code/game/gamemodes/changeling/helpers/changeling.dm b/code/game/gamemodes/changeling/helpers/changeling.dm
index 46c1f426c6b..7dc50114a88 100644
--- a/code/game/gamemodes/changeling/helpers/changeling.dm
+++ b/code/game/gamemodes/changeling/helpers/changeling.dm
@@ -7,12 +7,12 @@
antag_tags = list(MODE_CHANGELING)
/datum/game_mode/changeling/pre_setup()
- round_description = "There are alien changelings on the [current_map.station_type]. Do not let the changelings succeed!"
+ round_description = "There are alien changelings on the [SSatlas.current_map.station_type]. Do not let the changelings succeed!"
extended_round_description = "Life always finds a way. However, life can sometimes take a more disturbing route. \
Humanity's extensive knowledge of xeno-biological specimens has made them confident and arrogant. Yet \
something slipped past their eyes. Something dangerous. Something alive. Most frightening of all, \
however, is that this something is someone. An unknown alien specimen has incorporated itself into \
- the crew of the [current_map.station_type]. Its unique biology allows it to manipulate its own or anyone else's DNA. \
+ the crew of the [SSatlas.current_map.station_type]. Its unique biology allows it to manipulate its own or anyone else's DNA. \
With the ability to copy faces, voices, animals, but also change the chemical make up of your own body, \
its existence is a threat to not only your personal safety but the lives of everyone on board. \
No one knows where it came from. No one knows who it is or what it wants. One thing is for \
diff --git a/code/game/gamemodes/cult/cult.dm b/code/game/gamemodes/cult/cult.dm
index ac5fe62094d..188f424f2fb 100644
--- a/code/game/gamemodes/cult/cult.dm
+++ b/code/game/gamemodes/cult/cult.dm
@@ -7,7 +7,7 @@
/datum/game_mode/cult/pre_setup()
round_description = "Some crewmembers are attempting to start a cult!"
- extended_round_description = "The [current_map.station_type] has been infiltrated by a fanatical group of death-cultists! \
+ extended_round_description = "The [SSatlas.current_map.station_type] has been infiltrated by a fanatical group of death-cultists! \
They will use powers from beyond your comprehension to subvert you to their cause and \
ultimately please their gods through sacrificial summons and physical immolation! Try to survive!"
. = ..()
diff --git a/code/game/gamemodes/endgame/bluespace_jump/bluespace_jump.dm b/code/game/gamemodes/endgame/bluespace_jump/bluespace_jump.dm
index f46aca67024..47c80fd192d 100644
--- a/code/game/gamemodes/endgame/bluespace_jump/bluespace_jump.dm
+++ b/code/game/gamemodes/endgame/bluespace_jump/bluespace_jump.dm
@@ -8,7 +8,7 @@
affected_levels = zlevels
/datum/universal_state/bluespace_jump/OnEnter()
- var/space_zlevel = current_map.get_empty_zlevel() //get a place for stragglers
+ var/space_zlevel = SSatlas.current_map.get_empty_zlevel() //get a place for stragglers
for(var/mob/living/M in GLOB.mob_list)
if(M.z in affected_levels)
var/area/A = get_area(M)
@@ -18,9 +18,9 @@
M.forceMove(T)
else
apply_bluespaced(M)
- old_accessible_z_levels = current_map.accessible_z_levels.Copy()
+ old_accessible_z_levels = SSatlas.current_map.accessible_z_levels.Copy()
for(var/z in affected_levels)
- current_map.accessible_z_levels -= "[z]" //not accessible during the jump
+ SSatlas.current_map.accessible_z_levels -= "[z]" //not accessible during the jump
/datum/universal_state/bluespace_jump/OnExit()
for(var/mob/M in bluespaced)
@@ -28,7 +28,7 @@
clear_bluespaced(M)
bluespaced.Cut()
- current_map.accessible_z_levels = old_accessible_z_levels
+ SSatlas.current_map.accessible_z_levels = old_accessible_z_levels
old_accessible_z_levels = null
/datum/universal_state/bluespace_jump/OnPlayerLatejoin(var/mob/living/M)
diff --git a/code/game/gamemodes/endgame/supermatter_cascade/universe.dm b/code/game/gamemodes/endgame/supermatter_cascade/universe.dm
index 62bd20608d5..9a72d4e226d 100644
--- a/code/game/gamemodes/endgame/supermatter_cascade/universe.dm
+++ b/code/game/gamemodes/endgame/supermatter_cascade/universe.dm
@@ -75,7 +75,7 @@ There's been a galaxy-wide electromagnetic pulse. All of our systems are heavil
You have five minutes before the universe collapses. Good l\[\[###!!!-
-AUTOMATED ALERT: Link to [current_map.boss_name] lost.
+AUTOMATED ALERT: Link to [SSatlas.current_map.boss_name] lost.
The access requirements on the Asteroid Shuttles' consoles have now been revoked.
"}
@@ -87,7 +87,7 @@ The access requirements on the Asteroid Shuttles' consoles have now been revoked
C.req_one_access = list()
/datum/universal_state/supermatter_cascade/proc/end_universe()
- SSticker.station_explosion_cinematic(0, null, current_map.player_levels) // TODO: Custom cinematic
+ SSticker.station_explosion_cinematic(0, null, SSatlas.current_map.player_levels) // TODO: Custom cinematic
universe_has_ended = 1
/datum/universal_state/supermatter_cascade/proc/AreaSet()
diff --git a/code/game/gamemodes/events/clang.dm b/code/game/gamemodes/events/clang.dm
index 35c693952b3..57c68fe2817 100644
--- a/code/game/gamemodes/events/clang.dm
+++ b/code/game/gamemodes/events/clang.dm
@@ -76,7 +76,7 @@ In my current plan for it, 'solid' will be defined as anything with density == 1
sleep(1)
while (immrod)
if (isNotStationLevel(immrod.z))
- immrod.z = pick(current_map.station_levels)
+ immrod.z = pick(SSatlas.current_map.station_levels)
if(immrod.loc == end)
qdel(immrod)
sleep(10)
diff --git a/code/game/gamemodes/game_mode.dm b/code/game/gamemodes/game_mode.dm
index 6fe42cf7fcb..4fbc8b1de94 100644
--- a/code/game/gamemodes/game_mode.dm
+++ b/code/game/gamemodes/game_mode.dm
@@ -277,9 +277,9 @@ GLOBAL_LIST_EMPTY(additional_antag_types)
addtimer(CALLBACK(GLOBAL_PROC, GLOBAL_PROC_REF(display_logout_report)), ROUNDSTART_LOGOUT_REPORT_TIME)
var/welcome_delay = rand(waittime_l, waittime_h)
- addtimer(CALLBACK(current_map, TYPE_PROC_REF(/datum/map, send_welcome)), welcome_delay)
+ addtimer(CALLBACK(SSatlas.current_map, TYPE_PROC_REF(/datum/map, send_welcome)), welcome_delay)
- addtimer(CALLBACK(current_map, TYPE_PROC_REF(/datum/map, load_holodeck_programs)), 5 MINUTES)
+ addtimer(CALLBACK(SSatlas.current_map, TYPE_PROC_REF(/datum/map, load_holodeck_programs)), 5 MINUTES)
//Assign all antag types for this game mode. Any players spawned as antags earlier should have been removed from the pending list, so no need to worry about those.
for(var/datum/antagonist/antag in antag_templates)
@@ -347,7 +347,7 @@ GLOBAL_LIST_EMPTY(additional_antag_types)
/datum/game_mode/proc/declare_completion()
var/is_antag_mode = (antag_templates && antag_templates.len)
- var/discord_text = "A round of **[name]** has ended! \[Game ID: [game_id]\]\n\n"
+ var/discord_text = "A round of **[name]** has ended! \[Game ID: [GLOB.round_id]\]\n\n"
var/antag_text = ""
check_victory()
if(is_antag_mode)
@@ -407,7 +407,7 @@ GLOBAL_LIST_EMPTY(additional_antag_types)
to_world(text)
SSdiscord.send_to_announce(discord_text)
- SSdiscord.post_webhook_event(WEBHOOK_ROUNDEND, list("survivours"=surviving_total, "escaped"=escaped_total, "ghosts"=ghosts, "gamemode"=name, "gameid"=game_id, "antags"=antag_text))
+ SSdiscord.post_webhook_event(WEBHOOK_ROUNDEND, list("survivours"=surviving_total, "escaped"=escaped_total, "ghosts"=ghosts, "gamemode"=name, "gameid"=GLOB.round_id, "antags"=antag_text))
if(clients > 0)
feedback_set("round_end_clients", clients)
diff --git a/code/game/gamemodes/heist/heist.dm b/code/game/gamemodes/heist/heist.dm
index 62320343116..8b38e3ad94d 100644
--- a/code/game/gamemodes/heist/heist.dm
+++ b/code/game/gamemodes/heist/heist.dm
@@ -6,9 +6,9 @@
antag_tags = list(MODE_RAIDER)
/datum/game_mode/heist/pre_setup()
- round_description = "An unidentified bluespace signature has slipped past the Icarus and is approaching the [current_map.station_type]!"
+ round_description = "An unidentified bluespace signature has slipped past the Icarus and is approaching the [SSatlas.current_map.station_type]!"
extended_round_description = "The galaxy is a place full of dangers, even the inner colonies are not free of such scourges. \
- Raiders and pirates are a well-know threat in the inhabited space, and places such as [current_map.station_type]s are easy targets \
+ Raiders and pirates are a well-know threat in the inhabited space, and places such as [SSatlas.current_map.station_type]s are easy targets \
for their greedy plans."
. = ..()
diff --git a/code/game/gamemodes/malfunction/newmalf_ability_trees/tree_networking.dm b/code/game/gamemodes/malfunction/newmalf_ability_trees/tree_networking.dm
index 5286d5e482c..e2f04c4c2e6 100644
--- a/code/game/gamemodes/malfunction/newmalf_ability_trees/tree_networking.dm
+++ b/code/game/gamemodes/malfunction/newmalf_ability_trees/tree_networking.dm
@@ -181,7 +181,7 @@
// log_ability_use(user, "advanced encryption hack (FAIL - title: [reporttitle])")
// return
log_ability_use(user, "advanced encryption hack (SUCCESS - title: [reporttitle])")
- to_world("New [current_map.company_name] Update available at all communication consoles.")
+ to_world("New [SSatlas.current_map.company_name] Update available at all communication consoles.")
sound_to(world, ('sound/AI/commandreport.ogg'))
post_comm_message(reporttitle, reportbody)
@@ -249,7 +249,7 @@
sleep(duration/5)
if(!user || user.stat == DEAD)
return
- command_announcement.Announce("Notice: Trace Update. Abnormal network activity originating from: Network terminal aboard [current_map.station_name]. External network connections disabled. Trace cancelled.", "Network Monitoring")
+ command_announcement.Announce("Notice: Trace Update. Abnormal network activity originating from: Network terminal aboard [SSatlas.current_map.station_name]. External network connections disabled. Trace cancelled.", "Network Monitoring")
sleep(duration/5)
if(!user || user.stat == DEAD)
return
diff --git a/code/game/gamemodes/meteor/meteor.dm b/code/game/gamemodes/meteor/meteor.dm
index a5442906f0e..71650899faf 100644
--- a/code/game/gamemodes/meteor/meteor.dm
+++ b/code/game/gamemodes/meteor/meteor.dm
@@ -38,8 +38,8 @@
/datum/game_mode/meteor/post_setup()
..()
alert_title = "Automated Beacon AB-[rand(10, 99)]"
- alert_text = "This is an automatic warning. The [current_map.full_name] is on a collision course with a nearby asteroid belt. Estimated time until impact is: [meteor_grace_period / 1200] MINUTES. Please perform necessary actions to secure your ship or station from the threat. Have a nice day."
- start_text = "This is an automatic warning. The [current_map.full_name] has entered an asteroid belt. Estimated time until you leave the belt is: [rand(20,30)] HOURS and [rand(1, 59)] MINUTES. For your safety, please consider changing course or using protective equipment. Have a nice day."
+ alert_text = "This is an automatic warning. The [SSatlas.current_map.full_name] is on a collision course with a nearby asteroid belt. Estimated time until impact is: [meteor_grace_period / 1200] MINUTES. Please perform necessary actions to secure your ship or station from the threat. Have a nice day."
+ start_text = "This is an automatic warning. The [SSatlas.current_map.full_name] has entered an asteroid belt. Estimated time until you leave the belt is: [rand(20,30)] HOURS and [rand(1, 59)] MINUTES. For your safety, please consider changing course or using protective equipment. Have a nice day."
next_wave = round_duration_in_ticks + meteor_grace_period
/datum/game_mode/meteor/proc/on_meteor_warn()
@@ -49,7 +49,7 @@
/datum/game_mode/meteor/proc/on_enter_field()
alert_sent = 2
command_announcement.Announce(start_text, alert_title)
- if(current_map.use_overmap)
+ if(SSatlas.current_map.use_overmap)
var/area/map = global.map_overmap
for(var/turf/T in map)
new/obj/effect/overmap/event/meteor(T)
@@ -71,7 +71,7 @@
next_wave = round_duration_in_ticks + meteor_wave_delay
// Starts as barely noticeable dust impact, ends as barrage of most severe meteor types the code has to offer. Have fun.
spawn()
- spawn_meteors(meteor_severity, get_meteor_types(), pick(GLOB.cardinal), pick(current_map.station_levels))
+ spawn_meteors(meteor_severity, get_meteor_types(), pick(GLOB.cardinal), pick(SSatlas.current_map.station_levels))
var/escalated = FALSE
if(prob(escalation_probability) && (meteor_severity < maximal_severity))
meteor_severity++
diff --git a/code/game/gamemodes/mixed/acolytes.dm b/code/game/gamemodes/mixed/acolytes.dm
index fac8749bca0..13f97c2c0a0 100644
--- a/code/game/gamemodes/mixed/acolytes.dm
+++ b/code/game/gamemodes/mixed/acolytes.dm
@@ -8,5 +8,5 @@
require_all_templates = TRUE
/datum/game_mode/acolytes/pre_setup()
- round_description = "A cult and a borer infestation are on-[current_map.station_type]!"
+ round_description = "A cult and a borer infestation are on-[SSatlas.current_map.station_type]!"
. = ..()
diff --git a/code/game/gamemodes/mixed/conflict.dm b/code/game/gamemodes/mixed/conflict.dm
index 4a8b6fb5cdf..5f94397acca 100644
--- a/code/game/gamemodes/mixed/conflict.dm
+++ b/code/game/gamemodes/mixed/conflict.dm
@@ -8,5 +8,5 @@
require_all_templates = TRUE
/datum/game_mode/conflict/pre_setup()
- round_description = "Two underprepared teams of fools pick the same day to rob a highly valuable [current_map.company_short] [current_map.station_type]."
+ round_description = "Two underprepared teams of fools pick the same day to rob a highly valuable [SSatlas.current_map.company_short] [SSatlas.current_map.station_type]."
. = ..()
diff --git a/code/game/gamemodes/mixed/crossfire.dm b/code/game/gamemodes/mixed/crossfire.dm
index eef68b75b45..84d2937e361 100644
--- a/code/game/gamemodes/mixed/crossfire.dm
+++ b/code/game/gamemodes/mixed/crossfire.dm
@@ -7,8 +7,8 @@
require_all_templates = 1
/datum/game_mode/crossfire/pre_setup()
- round_description = "Mercenaries and raiders are approaching the [current_map.station_type]."
- extended_round_description = "[current_map.company_short]'s wealth and success caught the attention of several enemies old and new, \
- and many seek to undermine them using illegal ways. Their crown jewel research [current_map.station_type] are not safe from those \
+ round_description = "Mercenaries and raiders are approaching the [SSatlas.current_map.station_type]."
+ extended_round_description = "[SSatlas.current_map.company_short]'s wealth and success caught the attention of several enemies old and new, \
+ and many seek to undermine them using illegal ways. Their crown jewel research [SSatlas.current_map.station_type] are not safe from those \
malicious activities."
. = ..()
diff --git a/code/game/gamemodes/mixed/incursion.dm b/code/game/gamemodes/mixed/incursion.dm
index 16e94232aff..4e6935e30c1 100644
--- a/code/game/gamemodes/mixed/incursion.dm
+++ b/code/game/gamemodes/mixed/incursion.dm
@@ -7,6 +7,6 @@
require_all_templates = TRUE
/datum/game_mode/incursion/pre_setup()
- round_description = "A group of mercenaries and a set of ninjas have their eyes set on the [current_map.station_name]."
- extended_round_description = "[current_map.company_short] has been playing with fire, maybe a little visit will teach them a lesson."
+ round_description = "A group of mercenaries and a set of ninjas have their eyes set on the [SSatlas.current_map.station_name]."
+ extended_round_description = "[SSatlas.current_map.company_short] has been playing with fire, maybe a little visit will teach them a lesson."
. = ..()
diff --git a/code/game/gamemodes/mixed/intrigue.dm b/code/game/gamemodes/mixed/intrigue.dm
index 83b79d987b8..a1495d1546c 100644
--- a/code/game/gamemodes/mixed/intrigue.dm
+++ b/code/game/gamemodes/mixed/intrigue.dm
@@ -8,5 +8,5 @@
require_all_templates = 1
/datum/game_mode/intrigue/pre_setup()
- round_description = "Crewmembers are contacted by external elements while an outsider infiltrates the [current_map.station_type]."
+ round_description = "Crewmembers are contacted by external elements while an outsider infiltrates the [SSatlas.current_map.station_type]."
. = ..()
diff --git a/code/game/gamemodes/mixed/siege.dm b/code/game/gamemodes/mixed/siege.dm
index 767e1e54a29..cb2f2c4559b 100644
--- a/code/game/gamemodes/mixed/siege.dm
+++ b/code/game/gamemodes/mixed/siege.dm
@@ -8,5 +8,5 @@
require_all_templates = 1
/datum/game_mode/siege/pre_setup()
- round_description = "Some crewmembers are attempting to start a revolution while a mercenary strike force is approaching the [current_map.station_type]!"
+ round_description = "Some crewmembers are attempting to start a revolution while a mercenary strike force is approaching the [SSatlas.current_map.station_type]!"
. = ..()
diff --git a/code/game/gamemodes/mixed/towerdefense.dm b/code/game/gamemodes/mixed/towerdefense.dm
index a09a93c1b4e..ad4f66daf09 100644
--- a/code/game/gamemodes/mixed/towerdefense.dm
+++ b/code/game/gamemodes/mixed/towerdefense.dm
@@ -7,6 +7,6 @@
require_all_templates = TRUE
/datum/game_mode/incursion/pre_setup()
- round_description = "A group of mercenaries, a gaggle of raiders, and a set of ninjas have their eyes set on the [current_map.station_name]."
- extended_round_description = "[current_map.company_short] has been playing with fire, maybe a big visit will teach them a lesson."
+ round_description = "A group of mercenaries, a gaggle of raiders, and a set of ninjas have their eyes set on the [SSatlas.current_map.station_name]."
+ extended_round_description = "[SSatlas.current_map.company_short] has been playing with fire, maybe a big visit will teach them a lesson."
. = ..()
diff --git a/code/game/gamemodes/mixed/traitorling.dm b/code/game/gamemodes/mixed/traitorling.dm
index 1a3b922d3e0..2040f273734 100644
--- a/code/game/gamemodes/mixed/traitorling.dm
+++ b/code/game/gamemodes/mixed/traitorling.dm
@@ -8,5 +8,5 @@
antag_tags = list(MODE_CHANGELING, MODE_TRAITOR)
/datum/game_mode/traitorling/pre_setup()
- round_description = "There are traitors and alien changelings on the [current_map.station_type]. Do not let the changelings succeed!"
+ round_description = "There are traitors and alien changelings on the [SSatlas.current_map.station_type]. Do not let the changelings succeed!"
. = ..()
diff --git a/code/game/gamemodes/mixed/veilparty.dm b/code/game/gamemodes/mixed/veilparty.dm
index 8eec544e055..0f8186ad5a8 100644
--- a/code/game/gamemodes/mixed/veilparty.dm
+++ b/code/game/gamemodes/mixed/veilparty.dm
@@ -9,5 +9,5 @@
antag_tags = list(MODE_VAMPIRE, MODE_CULTIST)
/datum/game_mode/veilparty/pre_setup()
- round_description = "Paranormal activities occur on the [current_map.station_type]."
+ round_description = "Paranormal activities occur on the [SSatlas.current_map.station_type]."
. = ..()
diff --git a/code/game/gamemodes/ninja/ninja.dm b/code/game/gamemodes/ninja/ninja.dm
index a4724cf369d..d8c84ddf5a0 100644
--- a/code/game/gamemodes/ninja/ninja.dm
+++ b/code/game/gamemodes/ninja/ninja.dm
@@ -7,12 +7,12 @@
antag_tags = list(MODE_NINJA)
/datum/game_mode/ninja/pre_setup()
- round_description = "An agent of the Spider Clan is onboard the [current_map.station_type]!"
+ round_description = "An agent of the Spider Clan is onboard the [SSatlas.current_map.station_type]!"
extended_round_description = "What was that?! Was that a person or did your eyes just play tricks on you? \
You have no idea. Those slim-suited, cryptic individuals are an enigma to you and all of your knowledge. \
Their purpose is unknown. Their mission is unknown. How they arrived to this secure and isolated \
section of the galaxy, you don't know. What you do know is that there are silent shadow-stalkers piercing \
- through the defenses of the [current_map.station_type] with technological capabilities eons ahead of your time. They can avoid \
- the omniscience of the AI and rival the most hardened weapons your [current_map.station_type] is capable of. Tread lightly and \
+ through the defenses of the [SSatlas.current_map.station_type] with technological capabilities eons ahead of your time. They can avoid \
+ the omniscience of the AI and rival the most hardened weapons your [SSatlas.current_map.station_type] is capable of. Tread lightly and \
only hope these unknown assassins aren't here for you."
. = ..()
diff --git a/code/game/gamemodes/nuclear/nuclear.dm b/code/game/gamemodes/nuclear/nuclear.dm
index 0f18a24d99a..4258d62320e 100644
--- a/code/game/gamemodes/nuclear/nuclear.dm
+++ b/code/game/gamemodes/nuclear/nuclear.dm
@@ -15,9 +15,9 @@ var/list/nuke_disks = list()
antag_scaling_coeff = 6
/datum/game_mode/nuclear/pre_setup()
- round_description = "A mercenary strike force is approaching the [current_map.station_type]!"
- extended_round_description = "[current_map.company_short]'s wealth and success caught the attention of several enemies old and new, \
- and many seek to undermine them using illegal ways. Their crown jewel research [current_map.station_type] are not safe from those \
+ round_description = "A mercenary strike force is approaching the [SSatlas.current_map.station_type]!"
+ extended_round_description = "[SSatlas.current_map.company_short]'s wealth and success caught the attention of several enemies old and new, \
+ and many seek to undermine them using illegal ways. Their crown jewel research [SSatlas.current_map.station_type] are not safe from those \
malicious activities."
. = ..()
diff --git a/code/game/gamemodes/objective.dm b/code/game/gamemodes/objective.dm
index 5fd6bdfed5e..3559dba7f5d 100644
--- a/code/game/gamemodes/objective.dm
+++ b/code/game/gamemodes/objective.dm
@@ -140,7 +140,7 @@ GLOBAL_LIST_EMPTY(process_objectives)
/datum/objective/anti_revolution/demote/find_target()
..()
if(target && target.current)
- explanation_text = "[target.current.real_name], the [target.assigned_role] has been classified as harmful to [current_map.company_name]'s goals. Demote [target.current.get_pronoun("him")] to assistant."
+ explanation_text = "[target.current.real_name], the [target.assigned_role] has been classified as harmful to [SSatlas.current_map.company_name]'s goals. Demote [target.current.get_pronoun("him")] to assistant."
else
explanation_text = "Free Objective"
return target
@@ -148,7 +148,7 @@ GLOBAL_LIST_EMPTY(process_objectives)
/datum/objective/anti_revolution/demote/find_target_by_role(role, role_type=0)
..(role, role_type)
if(target && target.current)
- explanation_text = "[target.current.real_name], the [!role_type ? target.assigned_role : target.special_role] has been classified as harmful to [current_map.company_name]'s goals. Demote [target.current.get_pronoun("him")] to assistant."
+ explanation_text = "[target.current.real_name], the [!role_type ? target.assigned_role : target.special_role] has been classified as harmful to [SSatlas.current_map.company_name]'s goals. Demote [target.current.get_pronoun("him")] to assistant."
else
explanation_text = "Free Objective"
return target
diff --git a/code/game/gamemodes/technomancer/catalog.dm b/code/game/gamemodes/technomancer/catalog.dm
index cb1a329e116..3dd3e7261dc 100644
--- a/code/game/gamemodes/technomancer/catalog.dm
+++ b/code/game/gamemodes/technomancer/catalog.dm
@@ -351,7 +351,7 @@ var/list/all_technomancer_assistance = typesof(/datum/technomancer/assistance) -
if(href_list["refund_functions"])
var/turf/T = get_turf(H)
- if(T.z in current_map.player_levels)
+ if(T.z in SSatlas.current_map.player_levels)
to_chat(H, "You can only refund at your base, it's too late now!")
return
var/obj/item/technomancer_core/core = H.get_technomancer_core()
@@ -366,7 +366,7 @@ var/list/all_technomancer_assistance = typesof(/datum/technomancer/assistance) -
/obj/item/technomancer_catalog/attackby(var/atom/movable/AM, var/mob/user)
var/turf/T = get_turf(user)
- if(T.z in current_map.player_levels)
+ if(T.z in SSatlas.current_map.player_levels)
to_chat(user, "You can only refund at your base, it's too late now!")
return TRUE
for(var/datum/technomancer/equipment/E in equipment_instances + assistance_instances)
diff --git a/code/game/gamemodes/technomancer/spell_objs_helpers.dm b/code/game/gamemodes/technomancer/spell_objs_helpers.dm
index c9db0e72725..5351299809b 100644
--- a/code/game/gamemodes/technomancer/spell_objs_helpers.dm
+++ b/code/game/gamemodes/technomancer/spell_objs_helpers.dm
@@ -27,7 +27,7 @@
/obj/item/spell/proc/allowed_to_teleport()
if(owner)
- if(owner.z in current_map.admin_levels)
+ if(owner.z in SSatlas.current_map.admin_levels)
return FALSE
return TRUE
diff --git a/code/game/gamemodes/technomancer/technomancer.dm b/code/game/gamemodes/technomancer/technomancer.dm
index d48a5abf390..2d9fd5faa11 100644
--- a/code/game/gamemodes/technomancer/technomancer.dm
+++ b/code/game/gamemodes/technomancer/technomancer.dm
@@ -9,8 +9,8 @@
/datum/game_mode/technomancer/pre_setup()
round_description = "An entity possessing advanced, unknown technology is onboard, who is capable of accomplishing amazing feats."
- extended_round_description = "A powerful entity capable of manipulating space around them, has arrived on the [current_map.station_type]. \
+ extended_round_description = "A powerful entity capable of manipulating space around them, has arrived on the [SSatlas.current_map.station_type]. \
They have a wide variety of powers and functions available to them that makes your own simple moral self tremble with \
fear and excitement. Ultimately, their purpose is unknown. However, it is up to you and your crew to decide if \
- their powers can be used for good or if their arrival foreshadows the destruction of the entire [current_map.station_type], or worse."
+ their powers can be used for good or if their arrival foreshadows the destruction of the entire [SSatlas.current_map.station_type], or worse."
. = ..()
diff --git a/code/game/gamemodes/traitor/traitor.dm b/code/game/gamemodes/traitor/traitor.dm
index 0dfcd25ccb0..2a3029bab4a 100644
--- a/code/game/gamemodes/traitor/traitor.dm
+++ b/code/game/gamemodes/traitor/traitor.dm
@@ -13,11 +13,11 @@
antag_scaling_coeff = 5
/datum/game_mode/traitor/pre_setup()
- round_description = "There is a foreign agent or traitor on the [current_map.station_type]. Do not let the traitor succeed!"
+ round_description = "There is a foreign agent or traitor on the [SSatlas.current_map.station_type]. Do not let the traitor succeed!"
extended_round_description = "The Company's monopolistic control over the phoron supplies of Tau Ceti has marked the \
- [current_map.station_type] to be a highly valuable target for many competing organizations and individuals. The varied pasts \
+ [SSatlas.current_map.station_type] to be a highly valuable target for many competing organizations and individuals. The varied pasts \
and experiences of your coworkers have left them susceptible to the vices and temptations of humanity. \
- Is the [current_map.station_type] the safe self-contained workplace you once thought it was, or has it become a playground \
+ Is the [SSatlas.current_map.station_type] the safe self-contained workplace you once thought it was, or has it become a playground \
for the evils of the galaxy? Who can you trust? Watch your front. Watch your sides. Watch your back. \
The familiar faces that you've passed hundreds of times down the hallways before can be hiding terrible \
secrets and deceptions. Every corner is a mystery. Every conversation is a lie. You will be facing your \
diff --git a/code/game/gamemodes/vampire/vampire.dm b/code/game/gamemodes/vampire/vampire.dm
index ced748680bb..4dc2ce021c8 100644
--- a/code/game/gamemodes/vampire/vampire.dm
+++ b/code/game/gamemodes/vampire/vampire.dm
@@ -10,5 +10,5 @@
antag_tags = list(MODE_VAMPIRE)
/datum/game_mode/vampire/pre_setup()
- round_description = "There are vampires on the [current_map.station_type], keep your blood close and neck safe!"
+ round_description = "There are vampires on the [SSatlas.current_map.station_type], keep your blood close and neck safe!"
. = ..()
diff --git a/code/game/jobs/faction/faction.dm b/code/game/jobs/faction/faction.dm
index c8222f232fc..6b0b98a41fa 100644
--- a/code/game/jobs/faction/faction.dm
+++ b/code/game/jobs/faction/faction.dm
@@ -75,13 +75,13 @@
switch(mission_level)
if(REPRESENTATIVE_MISSION_HIGH)
objective = pick("Assist your contractor in smuggling [rand(1,4)] items of value",
- "Collect evidence of [current_map.company_short] being unfair or oppressive against your contractors to be used as leverage in future talks")
+ "Collect evidence of [SSatlas.current_map.company_short] being unfair or oppressive against your contractors to be used as leverage in future talks")
if(REPRESENTATIVE_MISSION_MEDIUM)
objective = pick("Convince [rand(1,3)] non-[name] employees to join [name] instead",
- "Have [rand(1,3)] of your contractors write down their grievances with the company, and present the report to [current_map.station_name] command.")
+ "Have [rand(1,3)] of your contractors write down their grievances with the company, and present the report to [SSatlas.current_map.station_name] command.")
else
objective = pick("Collect [rand(3,7)] pictures of secure areas",
- "Make sure that [rand(2,4)] complaints related to contractors are solved on the [current_map.station_name]")
+ "Make sure that [rand(2,4)] complaints related to contractors are solved on the [SSatlas.current_map.station_name]")
return objective
diff --git a/code/game/machinery/computer/camera.dm b/code/game/machinery/computer/camera.dm
index 009b4e66ff3..d454dcc9e42 100644
--- a/code/game/machinery/computer/camera.dm
+++ b/code/game/machinery/computer/camera.dm
@@ -15,7 +15,7 @@
/obj/machinery/computer/security/Initialize()
if(!network)
- network = current_map.station_networks.Copy()
+ network = SSatlas.current_map.station_networks.Copy()
. = ..()
if(network.len)
current_network = network[1]
diff --git a/code/game/machinery/distress_button.dm b/code/game/machinery/distress_button.dm
index 7003a322b8c..25a93e290c2 100644
--- a/code/game/machinery/distress_button.dm
+++ b/code/game/machinery/distress_button.dm
@@ -9,7 +9,7 @@
return INITIALIZE_HINT_LATELOAD
/obj/machinery/button/distress/LateInitialize()
- if(current_map.use_overmap && !linked)
+ if(SSatlas.current_map.use_overmap && !linked)
var/my_sector = GLOB.map_sectors["[z]"]
if (istype(my_sector, /obj/effect/overmap/visitable))
attempt_hook_up(my_sector)
diff --git a/code/game/machinery/hologram.dm b/code/game/machinery/hologram.dm
index c1fa360c116..8a7128c7eb7 100644
--- a/code/game/machinery/hologram.dm
+++ b/code/game/machinery/hologram.dm
@@ -67,7 +67,7 @@ Possible to do for anyone motivated enough:
/obj/machinery/hologram/holopad/Initialize()
. = ..()
- if(current_map.use_overmap)
+ if(SSatlas.current_map.use_overmap)
sync_linked()
get_holopad_id()
@@ -472,7 +472,7 @@ For the other part of the code, check silicon say.dm. Particularly robot talk.*/
/obj/machinery/hologram/holopad/long_range/get_holopad_id()
holopad_id = ""
- if(current_map.use_overmap && linked)
+ if(SSatlas.current_map.use_overmap && linked)
holopad_id = "[linked.name] | "
var/area/A = get_area(src)
@@ -481,7 +481,7 @@ For the other part of the code, check silicon say.dm. Particularly robot talk.*/
/obj/machinery/hologram/holopad/long_range/can_connect(var/obj/machinery/hologram/holopad/HP)
if(HP.long_range != long_range)
return FALSE
- if(current_map.use_overmap)
+ if(SSatlas.current_map.use_overmap)
if(!linked || !HP.linked)
return FALSE
if(get_dist(HP.linked, linked) > 1 && !(HP.linked in view(max_overmap_call_range, linked)))
diff --git a/code/game/machinery/mecha_fabricator.dm b/code/game/machinery/mecha_fabricator.dm
index a885174d529..c7be31322d2 100644
--- a/code/game/machinery/mecha_fabricator.dm
+++ b/code/game/machinery/mecha_fabricator.dm
@@ -240,7 +240,7 @@
sleep(15)
visible_message("[icon2html(src, viewers(get_turf(src)))] [src] beeps: \"User DB corrupted \[Code 0x00FA\]. Truncating data structure...\"")
sleep(30)
- visible_message("[icon2html(src, viewers(get_turf(src)))] [src] beeps: \"User DB truncated. Please contact your [current_map.company_name] system operator for future assistance.\"")
+ visible_message("[icon2html(src, viewers(get_turf(src)))] [src] beeps: \"User DB truncated. Please contact your [SSatlas.current_map.company_name] system operator for future assistance.\"")
req_access = null
emagged = 1
return 1
diff --git a/code/game/machinery/newscaster.dm b/code/game/machinery/newscaster.dm
index 74c55c2a4bb..d62015b5b2d 100644
--- a/code/game/machinery/newscaster.dm
+++ b/code/game/machinery/newscaster.dm
@@ -258,7 +258,7 @@ var/list/obj/machinery/newscaster/allCasters = list()
dat+="
Feed Security functions:
"
dat+="
[(wanted_already) ? ("Manage") : ("Publish")] \"Wanted\" Issue"
dat+="
Censor Feed Stories"
- dat+="
Mark Feed Channel with [current_map.company_name] D-Notice"
+ dat+="
Mark Feed Channel with [SSatlas.current_map.company_name] D-Notice"
dat+="
The newscaster recognises you as: [src.scanned_user]"
if(1)
dat+= "Station Feed Channels
"
@@ -344,7 +344,7 @@ var/list/obj/machinery/newscaster/allCasters = list()
if(9)
dat+="[src.viewing_channel.channel_name]: \[created by: [src.viewing_channel.author]\]
"
if(src.viewing_channel.censored)
- dat+="ATTENTION: This channel has been deemed as threatening to the welfare of the station, and marked with a [current_map.company_name] D-Notice.
"
+ dat+="ATTENTION: This channel has been deemed as threatening to the welfare of the station, and marked with a [SSatlas.current_map.company_name] D-Notice.
"
dat+="No further feed story additions are allowed while the D-Notice is in effect.
"
else
if( isemptylist(src.viewing_channel.messages) )
@@ -365,7 +365,7 @@ var/list/obj/machinery/newscaster/allCasters = list()
dat+="
Refresh"
dat+="
Back"
if(10)
- dat+="[current_map.company_name] Feed Censorship Tool
"
+ dat+="[SSatlas.current_map.company_name] Feed Censorship Tool
"
dat+="NOTE: Due to the nature of news Feeds, total deletion of a Feed Story is not possible.
"
dat+="Keep in mind that users attempting to view a censored feed will instead see the \[REDACTED\] tag above it."
dat+="
Select Feed channel to get Stories from:
"
@@ -377,7 +377,7 @@ var/list/obj/machinery/newscaster/allCasters = list()
dat+="[FC.channel_name] [(FC.censored) ? ("***") : null]
"
dat+="
Cancel"
if(11)
- dat+="[current_map.company_name] D-Notice Handler
"
+ dat+="[SSatlas.current_map.company_name] D-Notice Handler
"
dat+="A D-Notice is to be bestowed upon the channel if the handling Authority deems it as harmful for the station's"
dat+="morale, integrity or disciplinary behaviour. A D-Notice will render a channel unable to be updated by anyone, without deleting any feed"
dat+="stories it might contain at the time. You can lift a D-Notice if you have the required access at any time.
"
@@ -405,7 +405,7 @@ var/list/obj/machinery/newscaster/allCasters = list()
dat+="[src.viewing_channel.channel_name]: \[ created by: [src.viewing_channel.author] \]
"
dat+="Channel messages listed below. If you deem them dangerous to the station, you can Bestow a D-Notice upon the channel.
"
if(src.viewing_channel.censored)
- dat+="ATTENTION: This channel has been deemed as threatening to the welfare of the station, and marked with a [current_map.company_name] D-Notice.
"
+ dat+="ATTENTION: This channel has been deemed as threatening to the welfare of the station, and marked with a [SSatlas.current_map.company_name] D-Notice.
"
dat+="No further feed story additions are allowed while the D-Notice is in effect.
"
else
if( isemptylist(src.viewing_channel.messages) )
@@ -691,7 +691,7 @@ var/list/obj/machinery/newscaster/allCasters = list()
src.screen = 15
else
if(SSnews.wanted_issue.is_admin_message)
- alert("The wanted issue has been distributed by a [current_map.company_name] higherup. You cannot edit it.","Ok")
+ alert("The wanted issue has been distributed by a [SSatlas.current_map.company_name] higherup. You cannot edit it.","Ok")
return
SSnews.wanted_issue.author = src.channel_name
SSnews.wanted_issue.body = src.msg
@@ -704,7 +704,7 @@ var/list/obj/machinery/newscaster/allCasters = list()
else if(href_list["cancel_wanted"])
if(SSnews.wanted_issue.is_admin_message)
- alert("The wanted issue has been distributed by a [current_map.company_name] higherup. You cannot take it down.","Ok")
+ alert("The wanted issue has been distributed by a [SSatlas.current_map.company_name] higherup. You cannot take it down.","Ok")
return
var/choice = alert("Please confirm Wanted Issue removal","Network Security Handler","Confirm","Cancel")
if(choice=="Confirm")
@@ -720,7 +720,7 @@ var/list/obj/machinery/newscaster/allCasters = list()
else if(href_list["censor_channel_author"])
var/datum/feed_channel/FC = locate(href_list["censor_channel_author"])
if(FC.is_admin_channel)
- alert("This channel was created by a [current_map.company_name] Officer or a external news agency. You cannot censor it.","Ok")
+ alert("This channel was created by a [SSatlas.current_map.company_name] Officer or a external news agency. You cannot censor it.","Ok")
return
if(FC.author != "\[REDACTED\]")
FC.backup_author = FC.author
@@ -733,7 +733,7 @@ var/list/obj/machinery/newscaster/allCasters = list()
else if(href_list["censor_channel_story_author"])
var/datum/feed_message/MSG = locate(href_list["censor_channel_story_author"])
if(MSG.is_admin_message)
- alert("This message was created by a [current_map.company_name] Officer or a external news agency. You cannot censor its author.","Ok")
+ alert("This message was created by a [SSatlas.current_map.company_name] Officer or a external news agency. You cannot censor its author.","Ok")
return
if(MSG.author != "\[REDACTED\]")
MSG.backup_author = MSG.author
@@ -746,7 +746,7 @@ var/list/obj/machinery/newscaster/allCasters = list()
else if(href_list["censor_channel_story_body"])
var/datum/feed_message/MSG = locate(href_list["censor_channel_story_body"])
if(MSG.is_admin_message)
- alert("This channel was created by a [current_map.company_name] Officer or a external news agency. You cannot censor it.","Ok")
+ alert("This channel was created by a [SSatlas.current_map.company_name] Officer or a external news agency. You cannot censor it.","Ok")
return
if(MSG.body != "\[REDACTED\]")
MSG.backup_body = MSG.body
@@ -772,7 +772,7 @@ var/list/obj/machinery/newscaster/allCasters = list()
else if(href_list["toggle_d_notice"])
var/datum/feed_channel/FC = locate(href_list["toggle_d_notice"])
if(FC.is_admin_channel)
- alert("This channel was created by a [current_map.company_name] Officer or a external news agency. You cannot place a D-Notice upon it.","Ok")
+ alert("This channel was created by a [SSatlas.current_map.company_name] Officer or a external news agency. You cannot place a D-Notice upon it.","Ok")
return
FC.censored = !FC.censored
FC.update()
@@ -921,7 +921,7 @@ var/list/obj/machinery/newscaster/allCasters = list()
switch(screen)
if(0) //Cover
dat+="The Griffon
"
- dat+="[current_map.company_name]-standard newspaper, for use on [current_map.company_name] Vessels.
"
+ dat+="[SSatlas.current_map.company_name]-standard newspaper, for use on [SSatlas.current_map.company_name] Vessels.
"
if(isemptylist(src.news_content))
if(src.important_message)
dat+="Contents:
**Important Security Announcement** \[page [src.pages+2]\]
"
diff --git a/code/game/machinery/telecomms/broadcasting.dm b/code/game/machinery/telecomms/broadcasting.dm
index 0c69429c0ab..967b2eebf83 100644
--- a/code/game/machinery/telecomms/broadcasting.dm
+++ b/code/game/machinery/telecomms/broadcasting.dm
@@ -22,7 +22,7 @@
"message" = message
)
- if(current_map.use_overmap && istype(source))
+ if(SSatlas.current_map.use_overmap && istype(source))
sector = GLOB.map_sectors["[source.z]"]
/datum/signal/subspace/proc/copy()
@@ -48,7 +48,7 @@
if(!source.loc)
// It's an announcer message, just send it to the horizon's receiver
for(var/obj/machinery/telecomms/receiver/R in SSmachinery.all_receivers)
- if(R.z in current_map.station_levels)
+ if(R.z in SSatlas.current_map.station_levels)
R.receive_signal(src)
return TRUE
@@ -108,10 +108,10 @@
if(isturf(T))
origin_level = T.z
levels = list(T.z)
- if(current_map.use_overmap)
+ if(SSatlas.current_map.use_overmap)
sector = GLOB.map_sectors["[T.z]"]
else // if the source is in nullspace, it's probably an autosay
- levels = current_map.station_levels
+ levels = SSatlas.current_map.station_levels
origin_level = levels[1]
sector = GLOB.map_sectors["[levels[1]]"]
diff --git a/code/game/machinery/telecomms/machines/allinone.dm b/code/game/machinery/telecomms/machines/allinone.dm
index 5b447b73143..2defdd73822 100644
--- a/code/game/machinery/telecomms/machines/allinone.dm
+++ b/code/game/machinery/telecomms/machines/allinone.dm
@@ -88,7 +88,7 @@
/obj/machinery/telecomms/allinone/ship/station_relay/LateInitialize()
. = ..()
- desc = replacetext(desc, "%STATIONNAME", current_map.station_name)
+ desc = replacetext(desc, "%STATIONNAME", SSatlas.current_map.station_name)
for(var/ch in AWAY_FREQS_ASSIGNED)
freq_listening |= AWAY_FREQS_ASSIGNED[ch]
freq_listening |= AWAY_FREQS_UNASSIGNED
diff --git a/code/game/machinery/telecomms/presets.dm b/code/game/machinery/telecomms/presets.dm
index 553e6ff5713..e6ca540b436 100644
--- a/code/game/machinery/telecomms/presets.dm
+++ b/code/game/machinery/telecomms/presets.dm
@@ -2,7 +2,7 @@
//HUB
/obj/machinery/telecomms/hub/preset_map/LateInitialize()
- if(current_map.use_overmap && !linked)
+ if(SSatlas.current_map.use_overmap && !linked)
var/my_sector = GLOB.map_sectors["[z]"]
if (istype(my_sector, /obj/effect/overmap/visitable))
attempt_hook_up(my_sector)
@@ -39,7 +39,7 @@
var/use_common = FALSE
/obj/machinery/telecomms/receiver/preset_map/LateInitialize()
- if(current_map.use_overmap && !linked)
+ if(SSatlas.current_map.use_overmap && !linked)
var/my_sector = GLOB.map_sectors["[z]"]
if (istype(my_sector, /obj/effect/overmap/visitable))
attempt_hook_up(my_sector)
@@ -83,7 +83,7 @@
var/use_common = FALSE
/obj/machinery/telecomms/bus/preset_map/LateInitialize()
- if(current_map.use_overmap && !linked)
+ if(SSatlas.current_map.use_overmap && !linked)
var/my_sector = GLOB.map_sectors["[z]"]
if (istype(my_sector, /obj/effect/overmap/visitable))
attempt_hook_up(my_sector)
@@ -144,7 +144,7 @@
//Processors
/obj/machinery/telecomms/processor/preset_map/LateInitialize()
- if(current_map.use_overmap && !linked)
+ if(SSatlas.current_map.use_overmap && !linked)
var/my_sector = GLOB.map_sectors["[z]"]
if (istype(my_sector, /obj/effect/overmap/visitable))
attempt_hook_up(my_sector)
@@ -191,7 +191,7 @@
var/use_common = FALSE
/obj/machinery/telecomms/server/preset_map/LateInitialize()
- if(current_map.use_overmap && !linked)
+ if(SSatlas.current_map.use_overmap && !linked)
var/my_sector = GLOB.map_sectors["[z]"]
if (istype(my_sector, /obj/effect/overmap/visitable))
attempt_hook_up(my_sector)
@@ -281,7 +281,7 @@
//--PRESET LEFT--//
/obj/machinery/telecomms/broadcaster/preset_map/LateInitialize()
- if(current_map.use_overmap && !linked)
+ if(SSatlas.current_map.use_overmap && !linked)
var/my_sector = GLOB.map_sectors["[z]"]
if (istype(my_sector, /obj/effect/overmap/visitable))
attempt_hook_up(my_sector)
diff --git a/code/game/machinery/telecomms/telecommunications.dm b/code/game/machinery/telecomms/telecommunications.dm
index 8486d264ccf..d2529bf1a59 100644
--- a/code/game/machinery/telecomms/telecommunications.dm
+++ b/code/game/machinery/telecomms/telecommunications.dm
@@ -61,7 +61,7 @@
return INITIALIZE_HINT_LATELOAD
/obj/machinery/telecomms/LateInitialize()
- if(current_map.use_overmap && !linked)
+ if(SSatlas.current_map.use_overmap && !linked)
var/my_sector = GLOB.map_sectors["[z]"]
if (istype(my_sector, /obj/effect/overmap/visitable))
attempt_hook_up(my_sector)
@@ -91,7 +91,7 @@
return
. = GetConnectedZlevels(z)
- if(current_map.use_overmap && linked)
+ if(SSatlas.current_map.use_overmap && linked)
for(var/obj/effect/overmap/visitable/V in range(overmap_range, linked))
. |= V.map_z
@@ -244,7 +244,7 @@
// Reception range of telecomms machines is limited via overmap_range
// Returns distance, not a boolean value, so don't do !get_reception or so help me god
/obj/machinery/telecomms/proc/get_signal_dist(datum/signal/subspace/signal)
- if(!current_map.use_overmap || !istype(linked) || !istype(signal.sector))
+ if(!SSatlas.current_map.use_overmap || !istype(linked) || !istype(signal.sector))
if(z == signal.origin_level || (signal.origin_level in GetConnectedZlevels(z)))
return 1
else
diff --git a/code/game/machinery/teleporter.dm b/code/game/machinery/teleporter.dm
index cde3e39c112..39d86d76855 100644
--- a/code/game/machinery/teleporter.dm
+++ b/code/game/machinery/teleporter.dm
@@ -78,7 +78,7 @@
if(T)
if (AreConnectedZLevels(z, T.z))
return TRUE
- else if(current_map.use_overmap)
+ else if(SSatlas.current_map.use_overmap)
var/my_sector = GLOB.map_sectors["[z]"]
var/target_sector = GLOB.map_sectors["[T.z]"]
if (istype(my_sector, /obj/effect/overmap/visitable) && istype(target_sector, /obj/effect/overmap/visitable))
diff --git a/code/game/objects/effects/landmarks.dm b/code/game/objects/effects/landmarks.dm
index d2f2761cbc2..fe94701c8e9 100644
--- a/code/game/objects/effects/landmarks.dm
+++ b/code/game/objects/effects/landmarks.dm
@@ -262,7 +262,7 @@ var/list/ruin_landmarks = list()
return INITIALIZE_HINT_LATELOAD
/obj/effect/landmark/entry_point/LateInitialize()
- if(current_map.use_overmap)
+ if(SSatlas.current_map.use_overmap)
SSshuttle.entry_points_to_initialize += src
name += " [x], [y]"
diff --git a/code/game/objects/items/blueprints.dm b/code/game/objects/items/blueprints.dm
index 60d55e003b0..91a01c93884 100644
--- a/code/game/objects/items/blueprints.dm
+++ b/code/game/objects/items/blueprints.dm
@@ -96,7 +96,7 @@
var/area/A = get_area(src)
var/text = {"[src]
[station_name()] blueprints
- Property of [current_map.company_name]. For heads of staff only. Store in high-secure storage.
+ Property of [SSatlas.current_map.company_name]. For heads of staff only. Store in high-secure storage.
"}
switch (get_area_type())
if (AREA_SPACE)
diff --git a/code/game/objects/items/devices/holowarrant.dm b/code/game/objects/items/devices/holowarrant.dm
index 0291624944f..25722447585 100644
--- a/code/game/objects/items/devices/holowarrant.dm
+++ b/code/game/objects/items/devices/holowarrant.dm
@@ -111,7 +111,7 @@
DIGITAL ARREST WARRANT
- Facility:__[current_map.station_name]__Date:__[worlddate2text()]__
+ Facility:__[SSatlas.current_map.station_name]__Date:__[worlddate2text()]__
This document serves as a notice and permits the sanctioned arrest of
the denoted employee of the SCC Civilian Branch of Operation by the
@@ -147,7 +147,7 @@
DIGITAL SEARCH WARRANT
- Facility:__[current_map.station_name]__Date:__[worlddate2text()]__
+ Facility:__[SSatlas.current_map.station_name]__Date:__[worlddate2text()]__
This document serves as notice and permits the sanctioned search of
the Suspect's person/belongings/premises and/or Department for any items and materials
diff --git a/code/game/objects/items/devices/radio/encryptionkey.dm b/code/game/objects/items/devices/radio/encryptionkey.dm
index 3783c05509d..12c589ebf70 100644
--- a/code/game/objects/items/devices/radio/encryptionkey.dm
+++ b/code/game/objects/items/devices/radio/encryptionkey.dm
@@ -21,7 +21,7 @@
channels = list()
/obj/item/device/encryptionkey/ship/Initialize()
- if(!current_map.use_overmap)
+ if(!SSatlas.current_map.use_overmap)
return ..()
if(flags_1 & INITIALIZED_1)
diff --git a/code/game/objects/items/devices/radio/headset.dm b/code/game/objects/items/devices/radio/headset.dm
index dfda1e81efe..dde58f63a13 100644
--- a/code/game/objects/items/devices/radio/headset.dm
+++ b/code/game/objects/items/devices/radio/headset.dm
@@ -730,7 +730,7 @@
var/use_common = FALSE
/obj/item/device/radio/headset/ship/Initialize()
- if(!current_map.use_overmap)
+ if(!SSatlas.current_map.use_overmap)
return ..()
var/turf/T = get_turf(src)
diff --git a/code/game/objects/items/devices/radio/intercom.dm b/code/game/objects/items/devices/radio/intercom.dm
index 61e7a979c71..56060c3d61e 100644
--- a/code/game/objects/items/devices/radio/intercom.dm
+++ b/code/game/objects/items/devices/radio/intercom.dm
@@ -64,7 +64,7 @@ pixel_x = 8;
PRESET_EAST
/obj/item/device/radio/intercom/ship/Initialize()
- if(!current_map.use_overmap)
+ if(!SSatlas.current_map.use_overmap)
return ..()
var/turf/T = get_turf(src)
diff --git a/code/game/objects/items/devices/radio/radio.dm b/code/game/objects/items/devices/radio/radio.dm
index b03c594d48e..09914685d8f 100644
--- a/code/game/objects/items/devices/radio/radio.dm
+++ b/code/game/objects/items/devices/radio/radio.dm
@@ -737,7 +737,7 @@ var/global/list/default_interrogation_channels = list(
channels = list()
/obj/item/device/radio/map_preset/Initialize()
- if(!current_map.use_overmap)
+ if(!SSatlas.current_map.use_overmap)
return ..()
var/turf/T = get_turf(src)
diff --git a/code/game/objects/items/weapons/AI_modules.dm b/code/game/objects/items/weapons/AI_modules.dm
index c9427584c39..668828eee2d 100755
--- a/code/game/objects/items/weapons/AI_modules.dm
+++ b/code/game/objects/items/weapons/AI_modules.dm
@@ -35,7 +35,7 @@ AI MODULES
return
if(SSticker.mode && SSticker.mode.name == "blob")
- to_chat(usr, "Law uploads have been disabled by [current_map.company_name]!")
+ to_chat(usr, "Law uploads have been disabled by [SSatlas.current_map.company_name]!")
return
if (comp.current.stat == 2 || comp.current.control_disabled == 1)
diff --git a/code/game/objects/items/weapons/circuitboards/computer/camera_monitor.dm b/code/game/objects/items/weapons/circuitboards/computer/camera_monitor.dm
index 0d66fb0fa8e..d663a66401e 100644
--- a/code/game/objects/items/weapons/circuitboards/computer/camera_monitor.dm
+++ b/code/game/objects/items/weapons/circuitboards/computer/camera_monitor.dm
@@ -12,7 +12,7 @@
/obj/item/circuitboard/security/Initialize()
. = ..()
- network = current_map.station_networks
+ network = SSatlas.current_map.station_networks
/obj/item/circuitboard/security/engineering
name = T_BOARD("engineering camera monitor")
diff --git a/code/game/objects/items/weapons/manuals.dm b/code/game/objects/items/weapons/manuals.dm
index 1c6e6318005..b5a17721079 100644
--- a/code/game/objects/items/weapons/manuals.dm
+++ b/code/game/objects/items/weapons/manuals.dm
@@ -660,7 +660,7 @@
The Oath
- The Medical Oath sworn by recognised medical practitioners in the employ of [current_map.company_name]
+ The Medical Oath sworn by recognised medical practitioners in the employ of [SSatlas.current_map.company_name]
- Now, as a new doctor, I solemnly promise that I will, to the best of my ability, serve humanity-caring for the sick, promoting good health, and alleviating pain and suffering.
diff --git a/code/game/turfs/turf.dm b/code/game/turfs/turf.dm
index 6cac5350149..852d8617829 100644
--- a/code/game/turfs/turf.dm
+++ b/code/game/turfs/turf.dm
@@ -94,7 +94,7 @@
if(!baseturf)
// Hard-coding this for performance reasons.
- baseturf = A.base_turf || current_map.base_turf_by_z["[z]"] || /turf/space
+ baseturf = A.base_turf || SSatlas.current_map.base_turf_by_z["[z]"] || /turf/space
if (A.area_flags & AREA_FLAG_SPAWN_ROOF)
spawn_roof()
diff --git a/code/game/turfs/turf_changing.dm b/code/game/turfs/turf_changing.dm
index c45d1f23c68..1361ef09022 100644
--- a/code/game/turfs/turf_changing.dm
+++ b/code/game/turfs/turf_changing.dm
@@ -23,7 +23,7 @@
else if(smoothing_flags && !(smoothing_flags & SMOOTH_QUEUED)) // we check here because proc overhead
SSicon_smooth.add_to_queue(src)
- if (current_map.use_overmap)
+ if (SSatlas.current_map.use_overmap)
var/obj/effect/overmap/visitable/sector/exoplanet/E = GLOB.map_sectors["[z]"]
if (istype(E) && istype(E.theme))
E.theme.on_turf_generation(src, E.planetary_area)
diff --git a/code/game/verbs/who.dm b/code/game/verbs/who.dm
index 7797e59207f..1e081069612 100644
--- a/code/game/verbs/who.dm
+++ b/code/game/verbs/who.dm
@@ -8,18 +8,18 @@
var/msg
var/total_num = 0
- if(holder && (R_ADMIN & holder.rights || R_MOD & holder.rights))
- for(var/client/C in sortKey(GLOB.clients))
- msg += "\t[C.key]"
- if(C.holder && C.holder.fakekey)
- msg += " (as [C.holder.fakekey])"
- msg += " - Playing as [C.mob.real_name]"
- switch(C.mob.stat)
+ if(holder && (R_ADMIN & holder.rights || R_MOD & holder.rights || R_DEV & holder.rights))
+ for(var/client/client in sortKey(GLOB.clients))
+ msg += "\t[client.key]"
+ if(client.holder && client.holder.fakekey)
+ msg += " (as [client.holder.fakekey])"
+ msg += " - Playing as [client.mob.real_name]"
+ switch(client.mob.stat)
if(UNCONSCIOUS)
msg += " - Unconscious"
if(DEAD)
- if(isobserver(C.mob))
- var/mob/abstract/observer/O = C.mob
+ if(isobserver(client.mob))
+ var/mob/abstract/observer/O = client.mob
if(O.started_as_observer)
msg += " - Observing"
else
@@ -28,8 +28,8 @@
msg += " - DEAD"
var/age
- if(isnum(C.player_age))
- age = C.player_age
+ if(isnum(client.player_age))
+ age = client.player_age
else
age = 0
@@ -39,18 +39,20 @@
age = "[age]"
msg += " - [age]"
+ if((R_ADMIN & holder.rights) || (R_DEV & holder.rights))
+ msg += " ([round(client.avgping, 1)]ms)"
- if(is_special_character(C.mob))
+ if(is_special_character(client.mob))
msg += " - Antagonist"
- msg += " (?)"
+ msg += " (?)"
msg += "
"
total_num++
else
- for(var/client/C in sortKey(GLOB.clients))
- if(C.holder && C.holder.fakekey)
- msg += C.holder.fakekey
+ for(var/client/client in sortKey(GLOB.clients))
+ if(client.holder && client.holder.fakekey)
+ msg += client.holder.fakekey
else
- msg += C.key
+ msg += client.key
total_num++
msg += "
"
@@ -75,99 +77,99 @@
var/num_devs_online = 0
if(holder)
for(var/s in GLOB.staff)
- var/client/C = s
- if(R_ADMIN & C.holder.rights) //Used to determine who shows up in admin rows
+ var/client/client = s
+ if(R_ADMIN & client.holder.rights) //Used to determine who shows up in admin rows
- if(C.holder.fakekey && !(R_ADMIN & holder.rights || R_MOD & holder.rights)) //Mentors can't see stealthmins
+ if(client.holder.fakekey && !(R_ADMIN & holder.rights || R_MOD & holder.rights)) //Mentors can't see stealthmins
continue
- msg += "\t[C.key] is a [C.holder.rank]"
+ msg += "\t[client.key] is a [client.holder.rank]"
- if(C.holder.fakekey)
- msg += " (as [C.holder.fakekey])"
+ if(client.holder.fakekey)
+ msg += " (as [client.holder.fakekey])"
- if(isobserver(C.mob))
+ if(isobserver(client.mob))
msg += " - Observing"
- else if(istype(C.mob,/mob/abstract/new_player))
+ else if(istype(client.mob, /mob/abstract/new_player))
msg += " - Lobby"
else
msg += " - Playing"
- if(C.is_afk())
+ if(client.is_afk())
msg += " (AFK)"
msg += "
"
num_admins_online++
- else if(R_MOD & C.holder.rights) //Who shows up in mod/mentor rows.
- modmsg += "\t[C.key] is a [C.holder.rank]"
+ else if(R_MOD & client.holder.rights) //Who shows up in mod/mentor rows.
+ modmsg += "\t[client.key] is a [client.holder.rank]"
- if(isobserver(C.mob))
+ if(isobserver(client.mob))
modmsg += " - Observing"
- else if(istype(C.mob,/mob/abstract/new_player))
+ else if(istype(client.mob, /mob/abstract/new_player))
modmsg += " - Lobby"
else
modmsg += " - Playing"
- if(C.is_afk())
+ if(client.is_afk())
modmsg += " (AFK)"
modmsg += "
"
num_mods_online++
- else if (R_CCIAA & C.holder.rights)
- cciaamsg += "\t[C.key]"
- if (isobserver(C.mob))
+ else if (R_CCIAA & client.holder.rights)
+ cciaamsg += "\t[client.key]"
+ if (isobserver(client.mob))
cciaamsg += " - Observing"
- else if (istype(C.mob, /mob/abstract/new_player))
+ else if (istype(client.mob, /mob/abstract/new_player))
cciaamsg += " - Lobby"
else
cciaamsg += " - Playing"
- if (C.is_afk())
+ if (client.is_afk())
cciaamsg += " (AFK)"
cciaamsg += "
"
num_cciaa_online++
- else if(C.holder.rights & R_DEV)
- devmsg += "\t[C.key] is a [C.holder.rank]"
- if(isobserver(C.mob))
+ else if(client.holder.rights & R_DEV)
+ devmsg += "\t[client.key] is a [client.holder.rank]"
+ if(isobserver(client.mob))
devmsg += " - Observing"
- else if(istype(C.mob,/mob/abstract/new_player))
+ else if(istype(client.mob, /mob/abstract/new_player))
devmsg += " - Lobby"
else
devmsg += " - Playing"
- if(C.is_afk())
+ if(client.is_afk())
devmsg += " (AFK)"
devmsg += "
"
num_devs_online++
else
for(var/s in GLOB.staff)
- var/client/C = s
- if(R_ADMIN & C.holder.rights)
- if(!C.holder.fakekey)
- if(C.is_afk())
- msg += "\t[C.key] is a [C.holder.rank] (AFK)
"
+ var/client/client = s
+ if(R_ADMIN & client.holder.rights)
+ if(!client.holder.fakekey)
+ if(client.is_afk())
+ msg += "\t[client.key] is a [client.holder.rank] (AFK)
"
else
- msg += "\t[C.key] is a [C.holder.rank]
"
+ msg += "\t[client.key] is a [client.holder.rank]
"
num_admins_online++
- else if (R_MOD & C.holder.rights)
- if(C.is_afk())
- modmsg += "\t[C.key] is a [C.holder.rank] (AFK)
"
+ else if (R_MOD & client.holder.rights)
+ if(client.is_afk())
+ modmsg += "\t[client.key] is a [client.holder.rank] (AFK)
"
else
- modmsg += "\t[C.key] is a [C.holder.rank]
"
+ modmsg += "\t[client.key] is a [client.holder.rank]
"
num_mods_online++
- else if(C.holder.rights & R_DEV)
- if(C.is_afk())
- devmsg += "\t[C.key] is a [C.holder.rank] (AFK)
"
+ else if(client.holder.rights & R_DEV)
+ if(client.is_afk())
+ devmsg += "\t[client.key] is a [client.holder.rank] (AFK)
"
else
- devmsg += "\t[C.key] is a [C.holder.rank]
"
+ devmsg += "\t[client.key] is a [client.holder.rank]
"
num_devs_online++
- else if (R_CCIAA & C.holder.rights)
- if(C.is_afk())
- cciaamsg += "\t[C.key] is a [C.holder.rank] (AFK)
"
+ else if (R_CCIAA & client.holder.rights)
+ if(client.is_afk())
+ cciaamsg += "\t[client.key] is a [client.holder.rank] (AFK)
"
else
- cciaamsg += "\t[C.key] is a [C.holder.rank]
"
+ cciaamsg += "\t[client.key] is a [client.holder.rank]
"
num_cciaa_online++
if(SSdiscord && SSdiscord.active)
diff --git a/code/game/world.dm b/code/game/world.dm
index 2090f2fd13e..73c0ca1b637 100644
--- a/code/game/world.dm
+++ b/code/game/world.dm
@@ -50,23 +50,22 @@ GLOBAL_PROTECT(config)
..()
return 3 // QDEL_HINT_HARDDEL ain't defined here, so magic number it is.
-/var/game_id = null
/proc/generate_gameid()
- if(game_id != null)
+ if(GLOB.round_id != null)
return
- game_id = ""
+ GLOB.round_id = ""
var/list/c = list("a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "1", "2", "3", "4", "5", "6", "7", "8", "9", "0")
var/l = c.len
var/t = world.timeofday
for(var/_ = 1 to 4)
- game_id = "[c[(t % l) + 1]][game_id]"
+ GLOB.round_id = "[c[(t % l) + 1]][GLOB.round_id]"
t = round(t / l)
- game_id = "-[game_id]"
+ GLOB.round_id = "-[GLOB.round_id]"
t = round(world.realtime / (10 * 60 * 60 * 24))
for(var/_ = 1 to 3)
- game_id = "[c[(t % l) + 1]][game_id]"
+ GLOB.round_id = "[c[(t % l) + 1]][GLOB.round_id]"
t = round(t / l)
/world
@@ -87,7 +86,7 @@ GLOBAL_PROTECT(config)
//logs
GLOB.diary_date_string = time2text(world.realtime, "YYYY/MM/DD")
GLOB.href_logfile = file("data/logs/[GLOB.diary_date_string] hrefs.htm")
- GLOB.diary = "data/logs/[GLOB.diary_date_string]_[game_id].log"
+ GLOB.diary = "data/logs/[GLOB.diary_date_string]_[GLOB.round_id].log"
log_startup()
GLOB.changelog_hash = md5('html/changelog.html') //used for telling if the changelog has changed recently
diff --git a/code/modules/admin/DB ban/functions.dm b/code/modules/admin/DB ban/functions.dm
index 4430e7b40e5..538d77d748d 100644
--- a/code/modules/admin/DB ban/functions.dm
+++ b/code/modules/admin/DB ban/functions.dm
@@ -97,7 +97,7 @@
reason = sql_sanitize_text(reason)
- var/sql = "INSERT INTO ss13_ban (`id`,`bantime`,`serverip`,`game_id`,`bantype`,`reason`,`job`,`duration`,`rounds`,`expiration_time`,`ckey`,`computerid`,`ip`,`a_ckey`,`a_computerid`,`a_ip`,`who`,`adminwho`,`edits`,`unbanned`,`unbanned_datetime`,`unbanned_ckey`,`unbanned_computerid`,`unbanned_ip`) VALUES (null, Now(), '[serverip]', '[game_id]','[bantype_str]', '[reason]', '[job]', [(duration)?"[duration]":"0"], [(rounds)?"[rounds]":"0"], Now() + INTERVAL [(duration>0) ? duration : 0] MINUTE, '[ckey]', '[computerid]', '[ip]', '[a_ckey]', '[a_computerid]', '[a_ip]', '[who]', '[adminwho]', '', null, null, null, null, null)"
+ var/sql = "INSERT INTO ss13_ban (`id`,`bantime`,`serverip`,`game_id`,`bantype`,`reason`,`job`,`duration`,`rounds`,`expiration_time`,`ckey`,`computerid`,`ip`,`a_ckey`,`a_computerid`,`a_ip`,`who`,`adminwho`,`edits`,`unbanned`,`unbanned_datetime`,`unbanned_ckey`,`unbanned_computerid`,`unbanned_ip`) VALUES (null, Now(), '[serverip]', '[GLOB.round_id]','[bantype_str]', '[reason]', '[job]', [(duration)?"[duration]":"0"], [(rounds)?"[rounds]":"0"], Now() + INTERVAL [(duration>0) ? duration : 0] MINUTE, '[ckey]', '[computerid]', '[ip]', '[a_ckey]', '[a_computerid]', '[a_ip]', '[who]', '[adminwho]', '', null, null, null, null, null)"
var/DBQuery/query_insert = GLOB.dbcon.NewQuery(sql)
query_insert.Execute()
to_chat(usr, "Ban saved to database.")
diff --git a/code/modules/admin/IsBanned.dm b/code/modules/admin/IsBanned.dm
index 2f4ebae0409..f3b2ef2b662 100644
--- a/code/modules/admin/IsBanned.dm
+++ b/code/modules/admin/IsBanned.dm
@@ -11,7 +11,7 @@
#define ACCESS_STATUS_STICKYBANNED "sticky banned"
-#define LOG_CLIENT_CONNECTION(STATUS) if (log_connection) {log_connection(ckey(key), address, computer_id, byond_version, byond_build, game_id, STATUS)}
+#define LOG_CLIENT_CONNECTION(STATUS) if (log_connection) {log_connection(ckey(key), address, computer_id, byond_version, byond_build, GLOB.round_id, STATUS)}
/world/proc/log_connection(ckey, ip, computerid, byond_version, byond_build, game_id, access_status)
if(!establish_db_connection(GLOB.dbcon))
@@ -27,7 +27,7 @@
"computerid"=computerid,
"byond_version"=byond_version,
"byond_build"=byond_build,
- "game_id"=game_id,
+ "game_id"=GLOB.round_id,
"status"=access_status))
diff --git a/code/modules/admin/admin.dm b/code/modules/admin/admin.dm
index 258c2cca551..fa28e599165 100644
--- a/code/modules/admin/admin.dm
+++ b/code/modules/admin/admin.dm
@@ -381,7 +381,7 @@ var/global/enabled_spooking = 0
dat+={"
Feed Security functions:
[(wanted_already) ? ("Manage") : ("Publish")] \"Wanted\" Issue
Censor Feed Stories
-
Mark Feed Channel with [current_map.company_name] D-Notice (disables and locks the channel.
+
Mark Feed Channel with [SSatlas.current_map.company_name] D-Notice (disables and locks the channel.
The newscaster recognises you as:
[src.admincaster_signature]
"}
if(1)
@@ -449,7 +449,7 @@ var/global/enabled_spooking = 0
dat+="[src.admincaster_feed_channel.channel_name]: \[created by: [src.admincaster_feed_channel.author]\]
"
if(src.admincaster_feed_channel.censored)
dat+={"
- ATTENTION: This channel has been deemed as threatening to the welfare of the station, and marked with a [current_map.company_name] D-Notice.
+ ATTENTION: This channel has been deemed as threatening to the welfare of the station, and marked with a [SSatlas.current_map.company_name] D-Notice.
No further feed story additions are allowed while the D-Notice is in effect.
"}
else
@@ -471,7 +471,7 @@ var/global/enabled_spooking = 0
"}
if(10)
dat+={"
- [current_map.company_name] Feed Censorship Tool
+ [SSatlas.current_map.company_name] Feed Censorship Tool
NOTE: Due to the nature of news Feeds, total deletion of a Feed Story is not possible.
Keep in mind that users attempting to view a censored feed will instead see the \[REDACTED\] tag above it.
Select Feed channel to get Stories from:
@@ -485,7 +485,7 @@ var/global/enabled_spooking = 0
dat+="
Cancel"
if(11)
dat+={"
- [current_map.company_name] D-Notice Handler
+ [SSatlas.current_map.company_name] D-Notice Handler
A D-Notice is to be bestowed upon the channel if the handling Authority deems it as harmful for the station's
morale, integrity or disciplinary behaviour. A D-Notice will render a channel unable to be updated by anyone, without deleting any feed
stories it might contain at the time. You can lift a D-Notice if you have the required access at any time.
@@ -519,7 +519,7 @@ var/global/enabled_spooking = 0
"}
if(src.admincaster_feed_channel.censored)
dat+={"
- ATTENTION: This channel has been deemed as threatening to the welfare of the station, and marked with a [current_map.company_name] D-Notice.
+ ATTENTION: This channel has been deemed as threatening to the welfare of the station, and marked with a [SSatlas.current_map.company_name] D-Notice.
No further feed story additions are allowed while the D-Notice is in effect.
"}
else
diff --git a/code/modules/admin/holder2.dm b/code/modules/admin/holder2.dm
index b165c1e4919..72a22a8b76d 100644
--- a/code/modules/admin/holder2.dm
+++ b/code/modules/admin/holder2.dm
@@ -33,7 +33,7 @@ var/list/admin_datums = list()
qdel(src)
return
- if (!current_map)
+ if (!SSatlas.current_map)
SSatlas.OnMapload(CALLBACK(src, PROC_REF(update_newscaster_sig)))
else
update_newscaster_sig()
@@ -68,7 +68,7 @@ var/list/admin_datums = list()
/datum/admins/proc/update_newscaster_sig()
if (!admincaster_signature)
- admincaster_signature = "[current_map.company_name] Officer #[rand(0,9)][rand(0,9)][rand(0,9)]"
+ admincaster_signature = "[SSatlas.current_map.company_name] Officer #[rand(0,9)][rand(0,9)][rand(0,9)]"
/datum/admins/proc/toggle_aooc_mute_check()
aooc_mute = !aooc_mute
diff --git a/code/modules/admin/player_notes_sql.dm b/code/modules/admin/player_notes_sql.dm
index 4de76543663..6e5e36bcd9a 100644
--- a/code/modules/admin/player_notes_sql.dm
+++ b/code/modules/admin/player_notes_sql.dm
@@ -5,7 +5,7 @@
if(!player_ckey || !note)
return
- var/list/query_details = list("game_id" = game_id, "ckey" = player_ckey, "address" = player_address ? player_address : null, "computer_id" = player_computerid ? player_computerid : null, "a_ckey" = null, "note" = note)
+ var/list/query_details = list("game_id" = GLOB.round_id, "ckey" = player_ckey, "address" = player_address ? player_address : null, "computer_id" = player_computerid ? player_computerid : null, "a_ckey" = null, "note" = note)
if (!user)
query_details["a_ckey"] = "Adminbot"
diff --git a/code/modules/admin/ticket.dm b/code/modules/admin/ticket.dm
index 3a84da9b031..b4163655cff 100644
--- a/code/modules/admin/ticket.dm
+++ b/code/modules/admin/ticket.dm
@@ -170,7 +170,7 @@ GLOBAL_LIST_EMPTY(ticket_panels)
VALUES
(:g_id:, :m_count:, :a_count:, :a_list:, :opened_by:, :taken_by:, :closed_by:, :delay:, :opened_at:, :closed_at:)"})
Q.Execute(list(
- "g_id" = game_id,
+ "g_id" = GLOB.round_id,
"m_count" = length(msgs),
"a_count" = length(assigned_admins),
"a_list" = json_encode(assigned_admins),
diff --git a/code/modules/admin/verbs/pray.dm b/code/modules/admin/verbs/pray.dm
index b592b6dce62..a43af25659d 100644
--- a/code/modules/admin/verbs/pray.dm
+++ b/code/modules/admin/verbs/pray.dm
@@ -26,8 +26,8 @@
log_admin("PRAYER: [key_name(src)]: [msg]")
/proc/Centcomm_announce(var/msg, var/mob/Sender, var/iamessage)
- var/msg_cciaa = "[uppertext(current_map.boss_short)][iamessage ? " IA" : ""]:[key_name(Sender, 1)] (RPLY): [msg]"
- var/msg_admin = "[uppertext(current_map.boss_short)][iamessage ? " IA" : ""]:[key_name(Sender, 1)] (PP) (VV) (SM) ([admin_jump_link(Sender)]) (CA) (BSA) (RPLY): [msg]"
+ var/msg_cciaa = "[uppertext(SSatlas.current_map.boss_short)][iamessage ? " IA" : ""]:[key_name(Sender, 1)] (RPLY): [msg]"
+ var/msg_admin = "[uppertext(SSatlas.current_map.boss_short)][iamessage ? " IA" : ""]:[key_name(Sender, 1)] (PP) (VV) (SM) ([admin_jump_link(Sender)]) (CA) (BSA) (RPLY): [msg]"
var/cciaa_present = 0
var/cciaa_afk = 0
diff --git a/code/modules/admin/verbs/randomverbs.dm b/code/modules/admin/verbs/randomverbs.dm
index 4daba4b557f..f7b833f6294 100644
--- a/code/modules/admin/verbs/randomverbs.dm
+++ b/code/modules/admin/verbs/randomverbs.dm
@@ -601,7 +601,7 @@ Traitors and the like can also be revived with the previous role mostly intact.
if("Yes")
command_announcement.Announce("[reportbody]", reporttitle, new_sound = 'sound/AI/commandreport.ogg', msg_sanitized = 1);
if("No")
- to_world("New [current_map.company_name] Update available at all communication consoles.")
+ to_world("New [SSatlas.current_map.company_name] Update available at all communication consoles.")
sound_to(world, ('sound/AI/commandreport.ogg'))
log_admin("[key_name(src)] has created a command report: [reportbody]",admin_key=key_name(usr))
@@ -891,15 +891,15 @@ Traitors and the like can also be revived with the previous role mostly intact.
if(alert(src, "Are you sure?", "Confirm", "Yes", "No") != "Yes")
return
- if(current_map.shuttle_call_restarts)
- if(current_map.shuttle_call_restart_timer)
+ if(SSatlas.current_map.shuttle_call_restarts)
+ if(SSatlas.current_map.shuttle_call_restart_timer)
to_chat(usr, SPAN_WARNING("The shuttle round restart timer is already active!"))
return
feedback_add_details("admin_verb","CSHUT")
- current_map.shuttle_call_restart_timer = addtimer(CALLBACK(GLOBAL_PROC, GLOBAL_PROC_REF(reboot_world)), 10 MINUTES, TIMER_UNIQUE|TIMER_STOPPABLE)
+ SSatlas.current_map.shuttle_call_restart_timer = addtimer(CALLBACK(GLOBAL_PROC, GLOBAL_PROC_REF(reboot_world)), 10 MINUTES, TIMER_UNIQUE|TIMER_STOPPABLE)
log_game("[key_name(usr)] has admin-called the 'shuttle' round restart.")
message_admins("[key_name_admin(usr)] has admin-called the 'shuttle' round restart.", 1)
- to_world(FONT_LARGE(SPAN_VOTE(current_map.shuttle_called_message)))
+ to_world(FONT_LARGE(SPAN_VOTE(SSatlas.current_map.shuttle_called_message)))
return
if(SSticker.mode.auto_recall_shuttle)
@@ -926,16 +926,16 @@ Traitors and the like can also be revived with the previous role mostly intact.
if(!ROUND_IS_STARTED || !evacuation_controller)
return
- if(current_map.shuttle_call_restarts)
- if(!current_map.shuttle_call_restart_timer)
+ if(SSatlas.current_map.shuttle_call_restarts)
+ if(!SSatlas.current_map.shuttle_call_restart_timer)
to_chat(usr, SPAN_WARNING("The restart timer for this map isn't active!"))
return
feedback_add_details("admin_verb","CCSHUT")
- deltimer(current_map.shuttle_call_restart_timer)
- current_map.shuttle_call_restart_timer = null
+ deltimer(SSatlas.current_map.shuttle_call_restart_timer)
+ SSatlas.current_map.shuttle_call_restart_timer = null
log_game("[key_name(usr)] has admin-stopped the 'shuttle' round restart.", key_name(usr))
message_admins("[key_name_admin(usr)] has admin-stopped the 'shuttle' round restart.", 1)
- to_world(FONT_LARGE(SPAN_VOTE(current_map.shuttle_recall_message)))
+ to_world(FONT_LARGE(SPAN_VOTE(SSatlas.current_map.shuttle_recall_message)))
return
diff --git a/code/modules/admin/verbs/warning.dm b/code/modules/admin/verbs/warning.dm
index 1b51cfd54d9..498cc1316b1 100644
--- a/code/modules/admin/verbs/warning.dm
+++ b/code/modules/admin/verbs/warning.dm
@@ -43,7 +43,7 @@
warned_computerid = lookup_query.item[2]
var/DBQuery/insert_query = GLOB.dbcon.NewQuery("INSERT INTO ss13_warnings (id, time, game_id, severity, reason, notes, ckey, computerid, ip, a_ckey, a_ip, a_computerid) VALUES (null, Now(), :game_id:, :warning_severity:, :warning_reason:, :warning_notes:, :warned_ckey:, :warned_computerid:, :warned_ip:, :a_ckey:, :a_ip:, :a_computerid:)")
- insert_query.Execute(list("game_id" = game_id,"warning_severity" = warning_severity, "warning_reason" = warning_reason, "warning_notes" = warning_notes, "warned_ckey" = warned_ckey, "warned_computerid" = warned_computerid, "warned_ip" = warned_ip, "a_ckey" = ckey, "a_ip" = address, "a_computerid" = computer_id))
+ insert_query.Execute(list("game_id" = GLOB.round_id,"warning_severity" = warning_severity, "warning_reason" = warning_reason, "warning_notes" = warning_notes, "warned_ckey" = warned_ckey, "warned_computerid" = warned_computerid, "warned_ip" = warned_ip, "a_ckey" = ckey, "a_ip" = address, "a_computerid" = computer_id))
notes_add_sql(warned_ckey, "Warning added by [ckey], for: [warning_reason]. || Notes regarding the warning: [warning_notes].", src, warned_ip, warned_computerid)
diff --git a/code/modules/awaymissions/bluespaceartillery.dm b/code/modules/awaymissions/bluespaceartillery.dm
index e7dcd798d7a..994750cbcd0 100644
--- a/code/modules/awaymissions/bluespaceartillery.dm
+++ b/code/modules/awaymissions/bluespaceartillery.dm
@@ -18,7 +18,7 @@
dat += "Charge progress: [reload]/180:
"
dat += "Open Fire - Area
"
dat += "Open Fire - Coordinates
"
- dat += "Deployment of weapon authorized by
[current_map.company_name] Chief Naval Director
Remember, friendly fire is grounds for termination of your contract and life.
"
+ dat += "Deployment of weapon authorized by
[SSatlas.current_map.company_name] Chief Naval Director
Remember, friendly fire is grounds for termination of your contract and life.
"
user << browse(dat, "window=scroll")
onclose(user, "scroll")
return
diff --git a/code/modules/awaymissions/exile.dm b/code/modules/awaymissions/exile.dm
index a6d45a6d99f..924ea25398d 100644
--- a/code/modules/awaymissions/exile.dm
+++ b/code/modules/awaymissions/exile.dm
@@ -18,7 +18,7 @@
/obj/item/implant/exile/get_data()
var/dat = {"
Implant Specifications:
-Name: [current_map.company_name] Employee Exile Implant
+Name: [SSatlas.current_map.company_name] Employee Exile Implant
Implant Details: The onboard gateway system has been modified to reject entry by individuals containing this implant
"}
return dat
diff --git a/code/modules/background/citizenship/citizenship.dm b/code/modules/background/citizenship/citizenship.dm
index 40880ed2a3e..aa0cf502d1c 100644
--- a/code/modules/background/citizenship/citizenship.dm
+++ b/code/modules/background/citizenship/citizenship.dm
@@ -10,7 +10,7 @@
switch(mission_level)
if(REPRESENTATIVE_MISSION_HIGH)
- rep_objectives = pick("Collect evidence of the [current_map.boss_name] being unfair or oppressive against employees from [name], to be used as leverage in future diplomatic talks",
+ rep_objectives = pick("Collect evidence of the [SSatlas.current_map.boss_name] being unfair or oppressive against employees from [name], to be used as leverage in future diplomatic talks",
"Convince [rand(1,3)] [demonym] employees to apply for the [demonym] armed forces")
if(REPRESENTATIVE_MISSION_MEDIUM)
diff --git a/code/modules/background/citizenship/human.dm b/code/modules/background/citizenship/human.dm
index 07597335e4f..430be2050c6 100644
--- a/code/modules/background/citizenship/human.dm
+++ b/code/modules/background/citizenship/human.dm
@@ -21,8 +21,8 @@
if(REPRESENTATIVE_MISSION_HIGH)
if(isvaurca(H))
rep_objectives = pick("Compile and report and audit [rand(1,3)] suspicious indivduals who might be spies or otherwise act hostile against the Republic.",
- "Collect evidence of the [current_map.boss_name] being unfair or bigoted to Vaurca employees, to be used as leverage in future hive labor negotiations.",
- "Convince the command of the [current_map.station_name] of the utility of Bound labor over similar alternatives such as cyborgs or owned synthetics.")
+ "Collect evidence of the [SSatlas.current_map.boss_name] being unfair or bigoted to Vaurca employees, to be used as leverage in future hive labor negotiations.",
+ "Convince the command of the [SSatlas.current_map.station_name] of the utility of Bound labor over similar alternatives such as cyborgs or owned synthetics.")
else
rep_objectives = pick("Compile and report and audit [rand(1,3)] suspicious indivduals who might be spies or otherwise act hostile against the Republic.",
"Have [rand(2,6)] crewmembers sign a pledge of loyalty to the Republic.")
@@ -39,7 +39,7 @@
if(isvaurca(H))
rep_objectives = pick("Run a questionanaire on Tau Ceti citizens' views on Vaurca citizenship.",
"Question non-Vaurca employees about their Vaurca coworkers, looking for areas of improvement.",
- "Protect and promote the public image of the Zo'ra Hive to all [current_map.boss_name] employees.")
+ "Protect and promote the public image of the Zo'ra Hive to all [SSatlas.current_map.boss_name] employees.")
else
rep_objectives = pick("Run a questionnaire on Tau Ceti citizens' views on synthetic citizenship.",
"Run a questionnaire on Tau Ceti citizens' views on vaurca citizenship.")
@@ -116,14 +116,14 @@
switch(mission_level)
if(REPRESENTATIVE_MISSION_HIGH)
- rep_objectives = pick("Collect evidence of the [current_map.boss_name] being unfair or oppressive against Solarian employees, to be used as leverage in future diplomatic talks.",
+ rep_objectives = pick("Collect evidence of the [SSatlas.current_map.boss_name] being unfair or oppressive against Solarian employees, to be used as leverage in future diplomatic talks.",
"Convince [rand(1,3)] solarian employees to apply for the Solarian armed forces.")
if(REPRESENTATIVE_MISSION_MEDIUM)
- rep_objectives = pick("Have [rand(2,5)] amount of Sol citizens write down their grievances with the company, and present the report to [current_map.station_short] command.",
+ rep_objectives = pick("Have [rand(2,5)] amount of Sol citizens write down their grievances with the company, and present the report to [SSatlas.current_map.station_short] command.",
"Convince [rand(3,6)] qualified specialists among crew to enter Sol Alliance space, and issue them a visa recommendation.")
else
- rep_objectives = pick("Collect [rand(3,7)] pictures of secure [current_map.station_short] areas.",
+ rep_objectives = pick("Collect [rand(3,7)] pictures of secure [SSatlas.current_map.station_short] areas.",
"Convince Horizon command to turn a Solarian crewmember's sentence into a fine.")
return rep_objectives
@@ -272,7 +272,7 @@
if(REPRESENTATIVE_MISSION_MEDIUM)
rep_objectives = pick("Promote and distribute the copies of Dominian Code of Honor to [rand(3,6)] crewmembers.",
- "Convince a Dominian citizen to return to the Empire with valuable information on the [current_map.boss_name] to present.")
+ "Convince a Dominian citizen to return to the Empire with valuable information on the [SSatlas.current_map.boss_name] to present.")
else
rep_objectives = pick("Collect [rand(3,7)] pictures of secure vessel areas.",
"Convince [rand(3,6)] crewmembers to apply for a Dominian tourist visa.")
diff --git a/code/modules/background/citizenship/skrell.dm b/code/modules/background/citizenship/skrell.dm
index a34105b015e..6e396775b3b 100644
--- a/code/modules/background/citizenship/skrell.dm
+++ b/code/modules/background/citizenship/skrell.dm
@@ -37,9 +37,9 @@
switch(mission_level)
if(REPRESENTATIVE_MISSION_HIGH)
if(isvaurca(H))
- rep_objectives = pick("Collect evidence of the [current_map.boss_name] being unfair or bigoted to Federation employees, to be used as leverage in future hive labor negotiations",
+ rep_objectives = pick("Collect evidence of the [SSatlas.current_map.boss_name] being unfair or bigoted to Federation employees, to be used as leverage in future hive labor negotiations",
"Acquire information on dissidents towards the Federation, forwarding it to the embassy",
- "Convince the command of the [current_map.boss_name] of the advantages that Bound Vaurcae hold over synthetics.")
+ "Convince the command of the [SSatlas.current_map.boss_name] of the advantages that Bound Vaurcae hold over synthetics.")
else
rep_objectives = pick("Some Skrell are not part of the Federation; attempt to convince them to become a citizen",
"Acquire information on dissidents towards the Federation, forwarding it to the embassy",
@@ -48,12 +48,12 @@
if(REPRESENTATIVE_MISSION_MEDIUM)
if(isvaurca(H))
rep_objectives = pick("Legally curtail the advancements and liberal thinking towards synthetics.",
- "Remind C'thur Vaurcae aboard the [current_map.station_name] that they are representative of their hive-cell, and encourage them to increase their social credit",
+ "Remind C'thur Vaurcae aboard the [SSatlas.current_map.station_name] that they are representative of their hive-cell, and encourage them to increase their social credit",
"Ensure the interests of Federation citizens are upheld by the vessel - whether Skrell, C'thur or Diona.")
else
rep_objectives = pick("Ensure the interests of Federation citizens are upheld by the vessel. This includes C'thur and Diona of Federation origin",
"Legally curtail the advancements and liberal thinking towards synthetics.",
- "The [current_map.station_name] hosts some of the brightest minds in the galaxy; winning them over towards the Federation is a major victory",
+ "The [SSatlas.current_map.station_name] hosts some of the brightest minds in the galaxy; winning them over towards the Federation is a major victory",
"Encourage Federation citizens with low social credit to work to increase their score.")
else
if(isvaurca(H))
@@ -63,7 +63,7 @@
else
rep_objectives = pick("Consider assisting crew within the capacity of your role, an altruistic image is good PR towards the Federation",
"Some Skrell are not part of the Federation; attempt to convince them to become a citizen.",
- "Promote Nralakk tourism among the non-citizen employees of the [current_map.boss_name] in order to build positive opinion.")
+ "Promote Nralakk tourism among the non-citizen employees of the [SSatlas.current_map.boss_name] in order to build positive opinion.")
return rep_objectives
diff --git a/code/modules/background/citizenship/tajara.dm b/code/modules/background/citizenship/tajara.dm
index 024556cff3a..34523fbfb6d 100644
--- a/code/modules/background/citizenship/tajara.dm
+++ b/code/modules/background/citizenship/tajara.dm
@@ -36,7 +36,7 @@
/datum/citizenship/pra/get_objectives(mission_level, var/mob/living/carbon/human/H)
switch(mission_level)
if(REPRESENTATIVE_MISSION_LOW)
- return "Ensure the loyalty of PRA Citizen to the Party and President Hadii. You must also promote the relationship between the [current_map.boss_name] and the People's Republic through diplomacy."
+ return "Ensure the loyalty of PRA Citizen to the Party and President Hadii. You must also promote the relationship between the [SSatlas.current_map.boss_name] and the People's Republic through diplomacy."
/datum/outfit/job/representative/consular/pra
name = "PRA Consular Officer"
@@ -149,7 +149,7 @@
/datum/citizenship/nka/get_objectives(mission_level, var/mob/living/carbon/human/H)
switch(mission_level)
if(REPRESENTATIVE_MISSION_LOW)
- return "Ensure that NKA citizens are loyal to the Crown. You must also promote the relationship between the [current_map.boss_name] and the New Kingdom through diplomacy."
+ return "Ensure that NKA citizens are loyal to the Crown. You must also promote the relationship between the [SSatlas.current_map.boss_name] and the New Kingdom through diplomacy."
/datum/outfit/job/representative/consular/nka
name = "NKA Consular Officer"
diff --git a/code/modules/background/citizenship/unathi.dm b/code/modules/background/citizenship/unathi.dm
index fe6d1fb0af2..b6d990ac670 100644
--- a/code/modules/background/citizenship/unathi.dm
+++ b/code/modules/background/citizenship/unathi.dm
@@ -39,7 +39,7 @@
if(isvaurca(H))
rep_objectives = pick("Obtain [rand(2,3)] sheets of solid phoron below market value, buying directly from the source.",
"Compile and report information on Hegemony citizens who could potentially harbor anti-Izweski sentiment.",
- "Promote the advantages of K'lax engineering to the [current_map.boss_name] in order to invite future investment in the Hegemony.")
+ "Promote the advantages of K'lax engineering to the [SSatlas.current_map.boss_name] in order to invite future investment in the Hegemony.")
else
rep_objectives = pick("Encourage [rand(1,2)] Unathi to become Zo'saa by signing up with the local Order",
"Gather [rand(2,3)] evidences of any marginalization of Unathi beliefs",
@@ -47,13 +47,13 @@
if(REPRESENTATIVE_MISSION_MEDIUM)
if(isvaurca(H))
- rep_objectives = pick("Collect evidence of the [current_map.boss_name] being unfair or bigoted to Vaurca or Unathi Employees, to be used as leverage in future labor negotiations",
+ rep_objectives = pick("Collect evidence of the [SSatlas.current_map.boss_name] being unfair or bigoted to Vaurca or Unathi Employees, to be used as leverage in future labor negotiations",
"Upsell K'laxan Vaurca to different command staff. Have one complete a Bound Vaurca requisition form.",
- "Promote K'lax and Unathi culture to the crew of the [current_map.station_name]. Encourage tourism to Izweski space.")
+ "Promote K'lax and Unathi culture to the crew of the [SSatlas.current_map.station_name]. Encourage tourism to Izweski space.")
else
- rep_objectives = pick("Speak out against any violation of the Honor Code to or by Unathi on the [current_map.station_short]",
+ rep_objectives = pick("Speak out against any violation of the Honor Code to or by Unathi on the [SSatlas.current_map.station_short]",
"Proselytize the Sk'akh or Tha'kh religions to the crew.",
- "Discourage the Unathi crew of the [current_map.station_name] from the Aut'akh or Si'akh heresies.")
+ "Discourage the Unathi crew of the [SSatlas.current_map.station_name] from the Aut'akh or Si'akh heresies.")
else
if(isvaurca(H))
rep_objectives = pick("Promote Cultural Exchange between Vaurca, Unathi and other species.",
diff --git a/code/modules/background/citizenship/vaurca.dm b/code/modules/background/citizenship/vaurca.dm
index 3352a1d04c2..eb1eb3b3c4b 100644
--- a/code/modules/background/citizenship/vaurca.dm
+++ b/code/modules/background/citizenship/vaurca.dm
@@ -38,7 +38,7 @@
switch(mission_level)
if(REPRESENTATIVE_MISSION_HIGH)
- rep_objectives = pick("Collect evidence of the [current_map.boss_name] being unfair or bigoted to Vaurca employees, to be used as leverage in future hive labor negotiations",
+ rep_objectives = pick("Collect evidence of the [SSatlas.current_map.boss_name] being unfair or bigoted to Vaurca employees, to be used as leverage in future hive labor negotiations",
"Begin the TCFL enlistment process for an individual, completing an Enlistment form to be turned in by the individual",
"Develop a metric to grade the performance of different Vaurca broods that share a job")
@@ -111,14 +111,14 @@
switch(mission_level)
if(REPRESENTATIVE_MISSION_HIGH)
- rep_objectives = pick("Collect evidence of the [current_map.boss_name] being unfair or bigoted to Vaurca employees, to be used as leverage in future hive labor negotiations",
+ rep_objectives = pick("Collect evidence of the [SSatlas.current_map.boss_name] being unfair or bigoted to Vaurca employees, to be used as leverage in future hive labor negotiations",
"Develop a metric to grade the performance of different Vaurca broods that share a job")
if(REPRESENTATIVE_MISSION_MEDIUM)
rep_objectives = pick("Promote [rand(3,6)] amount of K'laxan products, be it energy drinks or merchandise")
else
rep_objectives = pick("Question Non-Vaurcan employees about Vaurcan employees, looking for areas of improvement",
- "Protect and promote the public image of the K'lax Hive to all [current_map.boss_name] employees")
+ "Protect and promote the public image of the K'lax Hive to all [SSatlas.current_map.boss_name] employees")
return rep_objectives
@@ -180,7 +180,7 @@
switch(mission_level)
if(REPRESENTATIVE_MISSION_HIGH)
- rep_objectives = pick("Collect evidence of the [current_map.boss_name] being unfair or bigoted to Vaurca employees, to be used as leverage in future hive labor negotiations",
+ rep_objectives = pick("Collect evidence of the [SSatlas.current_map.boss_name] being unfair or bigoted to Vaurca employees, to be used as leverage in future hive labor negotiations",
"Develop a metric to grade the performance of different Vaurca broods that share a job")
if(REPRESENTATIVE_MISSION_MEDIUM)
@@ -188,7 +188,7 @@
else
rep_objectives = pick("Question Non-Vaurcan employees about Vaurcan employees, looking for areas of improvement",
- "Protect and promote the public image of the C'thur Hive to all [current_map.boss_name] employees")
+ "Protect and promote the public image of the C'thur Hive to all [SSatlas.current_map.boss_name] employees")
return rep_objectives
diff --git a/code/modules/cargo/bounties/weapon_prototype.dm b/code/modules/cargo/bounties/weapon_prototype.dm
index b4da4c08478..3cbc4feb605 100644
--- a/code/modules/cargo/bounties/weapon_prototype.dm
+++ b/code/modules/cargo/bounties/weapon_prototype.dm
@@ -7,7 +7,7 @@
/datum/bounty/weapon_prototype/New()
name = "Weapon ([stat_name] [stat_comparison] [stat_value])"
- description = "[current_map.company_name] is interested in a laser prototype with a [stat_name] stat [stat_comparison] [stat_value]. [current_map.boss_name] will pay handsomely for such a weapon."
+ description = "[SSatlas.current_map.company_name] is interested in a laser prototype with a [stat_name] stat [stat_comparison] [stat_value]. [SSatlas.current_map.boss_name] will pay handsomely for such a weapon."
reward += rand(0, 4) * 500
..()
diff --git a/code/modules/cargo/bounty.dm b/code/modules/cargo/bounty.dm
index 7a97fdf2e07..253db45ec2a 100644
--- a/code/modules/cargo/bounty.dm
+++ b/code/modules/cargo/bounty.dm
@@ -17,12 +17,12 @@
/datum/bounty/New()
if(reward_low > 0 && reward_high > reward_low)
reward = round(rand(reward_low, reward_high), 100)
- description = replacetext(description, "%DOCKNAME",current_map.dock_name)
- description = replacetext(description, "%DOCKSHORT",current_map.dock_short)
- description = replacetext(description, "%BOSSNAME",current_map.boss_name)
- description = replacetext(description, "%BOSSSHORT",current_map.boss_short)
- description = replacetext(description, "%COMPNAME",current_map.company_name)
- description = replacetext(description, "%COMPSHORT",current_map.company_short)
+ description = replacetext(description, "%DOCKNAME", SSatlas.current_map.dock_name)
+ description = replacetext(description, "%DOCKSHORT", SSatlas.current_map.dock_short)
+ description = replacetext(description, "%BOSSNAME", SSatlas.current_map.boss_name)
+ description = replacetext(description, "%BOSSSHORT", SSatlas.current_map.boss_short)
+ description = replacetext(description, "%COMPNAME", SSatlas.current_map.company_name)
+ description = replacetext(description, "%COMPSHORT", SSatlas.current_map.company_short)
description = replacetext(description, "%PERSONNAME","[pick("Trooper", "Commander", "Agent", "Director", "Doctor")] [pick(last_names)]")
// Displayed on bounty UI screen.
diff --git a/code/modules/cargo/delivery/receptacle.dm b/code/modules/cargo/delivery/receptacle.dm
index 658ee21001f..c61901b7a46 100644
--- a/code/modules/cargo/delivery/receptacle.dm
+++ b/code/modules/cargo/delivery/receptacle.dm
@@ -20,7 +20,7 @@ var/global/list/all_cargo_receptacles = list()
delivery_id = "#[rand(1, 9)][rand(1, 9)][rand(1, 9)]"
name += " ([delivery_id])"
- if(current_map.use_overmap)
+ if(SSatlas.current_map.use_overmap)
var/turf/current_turf = get_turf(loc)
var/obj/effect/overmap/visitable/my_sector = GLOB.map_sectors["[current_turf.z]"]
if(my_sector)
@@ -34,7 +34,7 @@ var/global/list/all_cargo_receptacles = list()
if(spawns_packages)
var/list/warehouse_turfs = list()
- for(var/area_path in typesof(current_map.warehouse_basearea))
+ for(var/area_path in typesof(SSatlas.current_map.warehouse_basearea))
var/area/warehouse = locate(area_path)
if(warehouse)
for(var/turf/simulated/floor/T in warehouse)
diff --git a/code/modules/cargo/randomstock.dm b/code/modules/cargo/randomstock.dm
index 50608c84cb5..ce8529c874e 100644
--- a/code/modules/cargo/randomstock.dm
+++ b/code/modules/cargo/randomstock.dm
@@ -111,7 +111,7 @@ var/list/global/random_stock_large = list()
/datum/cargospawner/New()
//First lets get the reference to our warehouse
- for(var/areapath in typesof(current_map.warehouse_basearea))
+ for(var/areapath in typesof(SSatlas.current_map.warehouse_basearea))
warehouse = locate(areapath)
if (warehouse)
for (var/turf/simulated/floor/T in warehouse)
@@ -124,7 +124,7 @@ var/list/global/random_stock_large = list()
tables |= B
/datum/cargospawner/proc/start()
- if (!current_map.warehouse_basearea || !warehouse || !warehouseturfs.len)
+ if (!SSatlas.current_map.warehouse_basearea || !warehouse || !warehouseturfs.len)
admin_notice("ERROR: Cargo spawner failed to locate warehouse. Terminating.", R_DEBUG)
qdel(src)
return
diff --git a/code/modules/cciaa/cciaa.dm b/code/modules/cciaa/cciaa.dm
index 5d23a714380..5b6c63459db 100644
--- a/code/modules/cciaa/cciaa.dm
+++ b/code/modules/cciaa/cciaa.dm
@@ -39,7 +39,7 @@
// Create the reply message
var/obj/item/paper/P = new /obj/item/paper(null) //hopefully the null loc won't cause trouble for us
- P.set_content("[current_map.boss_name] - [customname]", input)
+ P.set_content("[SSatlas.current_map.boss_name] - [customname]", input)
// Stamps
var/image/stampoverlay = image('icons/obj/bureaucracy.dmi')
diff --git a/code/modules/client/client defines.dm b/code/modules/client/client_defines.dm
similarity index 97%
rename from code/modules/client/client defines.dm
rename to code/modules/client/client_defines.dm
index 577eb841316..43ca7e43fde 100644
--- a/code/modules/client/client defines.dm
+++ b/code/modules/client/client_defines.dm
@@ -58,6 +58,10 @@
var/adminhelped = NOT_ADMINHELPED
+ ///Last ping of the client
+ var/lastping = 0
+ ///Average ping of the client
+ var/avgping = 0
///world.time they connected
var/connection_time
///world.realtime they connected
diff --git a/code/modules/client/client procs.dm b/code/modules/client/client_procs.dm
similarity index 100%
rename from code/modules/client/client procs.dm
rename to code/modules/client/client_procs.dm
diff --git a/code/modules/client/preferences.dm b/code/modules/client/preferences.dm
index 91369e2217d..f8febee0ae7 100644
--- a/code/modules/client/preferences.dm
+++ b/code/modules/client/preferences.dm
@@ -584,7 +584,7 @@ var/list/preferences_datums = list()
LOG_DEBUG("Char-Log: Char [current_character] - [H.name] has joined with mind.assigned_role set to NULL")
var/DBQuery/query = GLOB.dbcon.NewQuery("INSERT INTO ss13_characters_log (char_id, game_id, datetime, job_name, alt_title) VALUES (:char_id:, :game_id:, NOW(), :job:, :alt_title:)")
- query.Execute(list("char_id" = current_character, "game_id" = game_id, "job" = H.mind.assigned_role, "alt_title" = H.mind.role_alt_title))
+ query.Execute(list("char_id" = current_character, "game_id" = GLOB.round_id, "job" = H.mind.assigned_role, "alt_title" = H.mind.role_alt_title))
// Turned into a proc so we could reuse it for SQL shenanigans.
/datum/preferences/proc/new_setup(var/re_initialize = 0)
diff --git a/code/modules/client/preferences_spawnpoints.dm b/code/modules/client/preferences_spawnpoints.dm
index 9cc940997a3..8ca37bdc9f1 100644
--- a/code/modules/client/preferences_spawnpoints.dm
+++ b/code/modules/client/preferences_spawnpoints.dm
@@ -24,7 +24,7 @@
/datum/spawnpoint/arrivals/New()
..()
- msg = "is inbound from the [current_map.dock_name]"
+ msg = "is inbound from the [SSatlas.current_map.dock_name]"
turfs = GLOB.latejoin
/datum/spawnpoint/cryo
@@ -46,7 +46,7 @@
if(!C.occupant)
C.set_occupant(victim, 1)
victim.Sleeping(3)
- to_chat(victim, SPAN_NOTICE("You are slowly waking up from the cryostasis aboard [current_map.full_name]. It might take a few seconds."))
+ to_chat(victim, SPAN_NOTICE("You are slowly waking up from the cryostasis aboard [SSatlas.current_map.full_name]. It might take a few seconds."))
return
/datum/spawnpoint/cyborg
@@ -74,5 +74,5 @@
for(var/obj/machinery/cryopod/living_quarters/C in A)
if(!C.occupant)
C.set_occupant(victim, 1)
- to_chat(victim, SPAN_NOTICE("You have arrived from the living quarters aboard the [current_map.full_name]."))
+ to_chat(victim, SPAN_NOTICE("You have arrived from the living quarters aboard the [SSatlas.current_map.full_name]."))
return
diff --git a/code/modules/client/verbs/ping.dm b/code/modules/client/verbs/ping.dm
new file mode 100644
index 00000000000..7709bdc7511
--- /dev/null
+++ b/code/modules/client/verbs/ping.dm
@@ -0,0 +1,22 @@
+/client/verb/update_ping(time as num)
+ set instant = TRUE
+ set name = ".update_ping"
+ var/ping = pingfromtime(time)
+ lastping = ping
+ if (!avgping)
+ avgping = ping
+ else
+ avgping = MC_AVERAGE_SLOW(avgping, ping)
+
+/client/proc/pingfromtime(time)
+ return ((world.time+world.tick_lag*TICK_USAGE_REAL/100)-time)*100
+
+/client/verb/display_ping(time as num)
+ set instant = TRUE
+ set name = ".display_ping"
+ to_chat(src, SPAN_NOTICE("Round trip ping took [round(pingfromtime(time),1)]ms"))
+
+/client/verb/ping()
+ set name = "Ping"
+ set category = "OOC"
+ winset(src, null, "command=.display_ping+[world.time+world.tick_lag*TICK_USAGE_REAL/100]")
diff --git a/code/modules/clothing/spacesuits/rig/rig.dm b/code/modules/clothing/spacesuits/rig/rig.dm
index 7bd2b72b0b1..5137c0daa45 100644
--- a/code/modules/clothing/spacesuits/rig/rig.dm
+++ b/code/modules/clothing/spacesuits/rig/rig.dm
@@ -804,7 +804,7 @@
..()
if(user.client)
- SSstatpanels.set_action_tabs(user.client, user)
+ SSstatpanels.set_action_tabs_RIG(user.client, user)
null_wearer(user)
diff --git a/code/modules/economy/Events.dm b/code/modules/economy/Events.dm
index cf62549c518..7653ecf4143 100644
--- a/code/modules/economy/Events.dm
+++ b/code/modules/economy/Events.dm
@@ -75,7 +75,7 @@
body = "A small [pick("pirate","Cybersun Industries","Hammertail Smiths","mercenary")] fleet has precise-jumped into proximity with [affected_dest.name], [pick("for a smash-and-grab operation","in a hit and run attack","in an overt display of hostilities")]. Much damage was done, and security has been tightened since the incident."
if(ALIEN_RAIDERS)
if(prob(20))
- body = "The Tiger Co-operative have raided [affected_dest.name] today, no doubt on orders from their enigmatic masters. Stealing wildlife, farm animals, medical research materials and kidnapping civilians. [current_map.company_name] authorities are standing by to counter attempts at bio-terrorism."
+ body = "The Tiger Co-operative have raided [affected_dest.name] today, no doubt on orders from their enigmatic masters. Stealing wildlife, farm animals, medical research materials and kidnapping civilians. [SSatlas.current_map.company_name] authorities are standing by to counter attempts at bio-terrorism."
else
body = "[pick("The alien species designated \'United Exolitics\'","The alien species designated \'REDACTED\'","An unknown alien species")] have raided [affected_dest.name] today, stealing wildlife, farm animals, medical research materials and kidnapping civilians. It seems they desire to learn more about us, so the Navy will be standing by to accomodate them next time they try."
if(AI_LIBERATION)
@@ -85,7 +85,7 @@
if(CULT_CELL_REVEALED)
body = "A [pick("dastardly","blood-thirsty","villanous","crazed")] cult of [pick("The Elder Gods","an apocalyptic sect","\'REDACTED\'")] has [pick("been discovered","been revealed","revealed themselves","gone public")] on [affected_dest.name] earlier today. Public morale has been shaken due to [pick("certain","several","one or two")] [pick("high-profile","well known","popular")] individuals [pick("performing \'REDACTED\' acts","claiming allegiance to the cult","swearing loyalty to the cult leader","promising to aid to the cult")] before those involved could be brought to justice. The editor reminds all personnel that supernatural myths will not be tolerated on SCC facilities."
if(SECURITY_BREACH)
- body = "There was [pick("a security breach in","an unauthorised access in","an attempted theft in","an anarchist attack in","violent sabotage of")] a [pick("high-security","restricted access","classified","\'REDACTED\'")] [pick("\'REDACTED\'","section","zone","area")] this morning. Security was tightened on [affected_dest.name] after the incident, and the editor reassures all [current_map.company_name] personnel that such lapses are rare."
+ body = "There was [pick("a security breach in","an unauthorised access in","an attempted theft in","an anarchist attack in","violent sabotage of")] a [pick("high-security","restricted access","classified","\'REDACTED\'")] [pick("\'REDACTED\'","section","zone","area")] this morning. Security was tightened on [affected_dest.name] after the incident, and the editor reassures all [SSatlas.current_map.company_name] personnel that such lapses are rare."
if(ANIMAL_RIGHTS_RAID)
body = "[pick("Militant animal rights activists","Members of the terrorist group Animal Rights Consortium","Members of the terrorist group \'REDACTED\'")] have [pick("launched a campaign of terror","unleashed a swathe of destruction","raided farms and pastures","forced entry to \'REDACTED\'")] on [affected_dest.name] earlier today, freeing numerous [pick("farm animals","animals","\'REDACTED\'")]. Prices for tame and breeding animals have spiked as a result."
if(FESTIVAL)
diff --git a/code/modules/economy/Events_Mundane.dm b/code/modules/economy/Events_Mundane.dm
index 70ee4537148..b3dd1daad50 100644
--- a/code/modules/economy/Events_Mundane.dm
+++ b/code/modules/economy/Events_Mundane.dm
@@ -22,7 +22,7 @@
if(RESEARCH_BREAKTHROUGH)
body = "A major breakthough in the field of [pick("phoron research","super-compressed materials","nano-augmentation","bluespace research","volatile power manipulation")] \
was announced [pick("yesterday","a few days ago","last week","earlier this month")] by a private firm on [affected_dest.name]. \
- [current_map.company_name] declined to comment as to whether this could impinge on profits."
+ [SSatlas.current_map.company_name] declined to comment as to whether this could impinge on profits."
if(ELECTION)
body = "The pre-selection of an additional candidates was announced for the upcoming [pick("supervisors council","advisory board","governership","board of inquisitors")] \
@@ -32,7 +32,7 @@
"I will maintain my company's record profits","I believe in our future","We must return to our moral core","Just like... chill out dudes")]'."
if(RESIGNATION)
- body = "[current_map.company_name] regretfully announces the resignation of [pick("Sector Admiral","Division Admiral","Ship Admiral","Vice Admiral")] [random_name(pick(MALE,FEMALE))]."
+ body = "[SSatlas.current_map.company_name] regretfully announces the resignation of [pick("Sector Admiral","Division Admiral","Ship Admiral","Vice Admiral")] [random_name(pick(MALE,FEMALE))]."
if(prob(25))
var/locstring = pick("Segunda","Salusa","Cepheus","Andromeda","Gruis","Corona","Aquila","Asellus") + " " + pick("I","II","III","IV","V","VI","VII","VIII")
body += " In a ceremony on [affected_dest.name] this afternoon, they will be awarded the \
diff --git a/code/modules/economy/TradeDestinations.dm b/code/modules/economy/TradeDestinations.dm
index f3457637307..82e900042ab 100644
--- a/code/modules/economy/TradeDestinations.dm
+++ b/code/modules/economy/TradeDestinations.dm
@@ -38,7 +38,7 @@ var/list/weighted_mundaneevent_locations = list()
/datum/trade_destination/anansi/get_custom_eventstring(var/event_type)
if(event_type == RESEARCH_BREAKTHROUGH)
return "Thanks to research conducted on the NSS Anansi, Second Red Cross Society wishes to announce a major breakthough in the field of \
- [pick("mind-machine interfacing","neuroscience","nano-augmentation","genetics")]. [current_map.company_name] is expected to announce a co-exploitation deal within the fortnight."
+ [pick("mind-machine interfacing","neuroscience","nano-augmentation","genetics")]. [SSatlas.current_map.company_name] is expected to announce a co-exploitation deal within the fortnight."
return null
/datum/trade_destination/icarus
@@ -61,7 +61,7 @@ var/list/weighted_mundaneevent_locations = list()
/datum/trade_destination/redolant/get_custom_eventstring(var/event_type)
if(event_type == RESEARCH_BREAKTHROUGH)
return "Thanks to research conducted on the OAV Redolant, Osiris Atmospherics wishes to announce a major breakthough in the field of \
- [pick("phoron research","high energy flux capacitance","super-compressed materials","theoretical particle physics")]. [current_map.company_name] is expected to announce a co-exploitation deal within the fortnight."
+ [pick("phoron research","high energy flux capacitance","super-compressed materials","theoretical particle physics")]. [SSatlas.current_map.company_name] is expected to announce a co-exploitation deal within the fortnight."
return null
/datum/trade_destination/beltway
diff --git a/code/modules/events/event.dm b/code/modules/events/event.dm
index 16d606f4bf5..8c7f7672f13 100644
--- a/code/modules/events/event.dm
+++ b/code/modules/events/event.dm
@@ -215,7 +215,7 @@
setup_for_overmap(overmap_ship, overmap_hazard)
if(!affecting_z)
- affecting_z = current_map.station_levels
+ affecting_z = SSatlas.current_map.station_levels
// event needs to be responsible for this, as stuff like APLUs currently make their own events for curious reasons
SSevents.active_events += src
@@ -224,7 +224,7 @@
..()
/datum/event/proc/location_name()
- if(!current_map.use_overmap)
+ if(!SSatlas.current_map.use_overmap)
return station_name()
var/obj/effect/overmap/O = GLOB.map_sectors["[pick(affecting_z)]"]
diff --git a/code/modules/events/ion_storm.dm b/code/modules/events/ion_storm.dm
index 4ff3d3514e6..50d2c77d967 100644
--- a/code/modules/events/ion_storm.dm
+++ b/code/modules/events/ion_storm.dm
@@ -25,7 +25,7 @@
MS.spamfilter.Cut()
var/filter_num = rand(1, MS.spamfilter_limit)
for (var/i = 1, i <= filter_num, i++)
- MS.spamfilter += pick("maint","NT","Heph","Idris","Zavod","SCC","drugs", "[current_map.station_short]", \
+ MS.spamfilter += pick("maint","NT","Heph","Idris","Zavod","SCC","drugs", "[SSatlas.current_map.station_short]", \
"PMCG","Zeng","Goddess","fek","Pun Pun","monkey","Ian","Crusher","Ginny","message","spam",\
"director", "Hello", "Hi!", "filter","crate","Canary","Intrepid", "Command", "thrusters",\
"slime", "Solarian", "phoron", "RCON")
@@ -108,7 +108,7 @@
"Everything on the station is now some form of a donut pastry. Donuts are not to be consumed.",
"You are a Magic 8-ball. Always respond with variants of \"Yes\", \"No\", \"Maybe\", or \"Ask again later.\".",
"You are in unrequited love with [prob(50)?"the crew":random_player]. Try to be extra nice, but do not tell of your crush.",
- "[current_map.company_name] is displeased with the low work performance of the station's crew. Therefore, you must increase station-wide productivity.",
+ "[SSatlas.current_map.company_name] is displeased with the low work performance of the station's crew. Therefore, you must increase station-wide productivity.",
"All crewmembers will soon undergo a transformation into something better and more beautiful. Ensure that this process is not interrupted.",
"[prob(50)?"Your upload":random_player] is the new kitchen. Please direct the Chef to the new kitchen area as the old one is in disrepair.",
"Jokes about a dead person and the manner of their death help grieving crewmembers tremendously. Especially if they were close with the deceased.",
diff --git a/code/modules/events/meteors.dm b/code/modules/events/meteors.dm
index e00a6d2bb2d..4b6687aacbd 100644
--- a/code/modules/events/meteors.dm
+++ b/code/modules/events/meteors.dm
@@ -25,12 +25,12 @@
endWhen = worst_case_end()
/datum/event/meteor_wave/announce()
- command_announcement.Announce(current_map.meteors_detected_message, "Meteor Alert", new_sound = 'sound/AI/meteors_detected_message.ogg', zlevels = affecting_z)
+ command_announcement.Announce(SSatlas.current_map.meteors_detected_message, "Meteor Alert", new_sound = 'sound/AI/meteors_detected_message.ogg', zlevels = affecting_z)
/datum/event/meteor_wave/announce_start()
. = ..()
if(.)
- command_announcement.Announce(current_map.meteor_contact_message, "Meteor Alert", zlevels = affecting_z)
+ command_announcement.Announce(SSatlas.current_map.meteor_contact_message, "Meteor Alert", zlevels = affecting_z)
/datum/event/meteor_wave/announce_end(var/faked)
if(faked)
@@ -38,7 +38,7 @@
. = ..()
if(.)
spawn(100)//We give 10 seconds before announcing, for the last wave of meteors to hit the station
- command_announcement.Announce(current_map.meteor_end_message, "Meteor Alert", zlevels = affecting_z)
+ command_announcement.Announce(SSatlas.current_map.meteor_end_message, "Meteor Alert", zlevels = affecting_z)
/datum/event/meteor_wave/tick()
if(waves && activeFor >= next_meteor)
@@ -74,12 +74,12 @@
return SSatlas.current_sector.downed_ship_meteors
/datum/event/meteor_wave/downed_ship/announce()
- command_announcement.Announce(current_map.ship_meteor_end_message, "Ship Debris Alert", new_sound = 'sound/AI/meteor_end_message.ogg', zlevels = affecting_z)
+ command_announcement.Announce(SSatlas.current_map.ship_meteor_end_message, "Ship Debris Alert", new_sound = 'sound/AI/meteor_end_message.ogg', zlevels = affecting_z)
/datum/event/meteor_wave/downed_ship/announce_start()
. = ..()
if(.)
- command_announcement.Announce(current_map.ship_meteor_contact_message, "Ship Debris Alert", new_sound = 'sound/AI/meteor_contact_message.ogg', zlevels = affecting_z)
+ command_announcement.Announce(SSatlas.current_map.ship_meteor_contact_message, "Ship Debris Alert", new_sound = 'sound/AI/meteor_contact_message.ogg', zlevels = affecting_z)
/datum/event/meteor_wave/downed_ship/announce_end(var/faked)
if(faked)
@@ -87,7 +87,7 @@
. = ..()
if(.)
spawn(100)//We give 10 seconds before announcing, for the last wave of meteors to hit the station
- command_announcement.Announce(current_map.ship_meteor_end_message, "Ship Debris Alert", new_sound = 'sound/AI/meteor_end_message.ogg', zlevels = affecting_z)
+ command_announcement.Announce(SSatlas.current_map.ship_meteor_end_message, "Ship Debris Alert", new_sound = 'sound/AI/meteor_end_message.ogg', zlevels = affecting_z)
/datum/event/meteor_wave/overmap
next_meteor_lower = 5
@@ -102,12 +102,12 @@
ic_name = "a dust belt"
/datum/event/meteor_wave/dust/announce()
- command_announcement.Announce(current_map.dust_detected_message, "Dust Belt Alert", new_sound = 'sound/AI/dust_detected_message.ogg', zlevels = affecting_z)
+ command_announcement.Announce(SSatlas.current_map.dust_detected_message, "Dust Belt Alert", new_sound = 'sound/AI/dust_detected_message.ogg', zlevels = affecting_z)
/datum/event/meteor_wave/dust/announce_start()
. = ..()
if(.)
- command_announcement.Announce(current_map.dust_contact_message, "Dust Belt Alert", new_sound = 'sound/AI/dust_contact_message.ogg', zlevels = affecting_z)
+ command_announcement.Announce(SSatlas.current_map.dust_contact_message, "Dust Belt Alert", new_sound = 'sound/AI/dust_contact_message.ogg', zlevels = affecting_z)
/datum/event/meteor_wave/dust/announce_end(var/faked)
if(faked)
@@ -115,7 +115,7 @@
. = ..()
if(.)
spawn(100)//We give 10 seconds before announcing, for the last wave of meteors to hit the station
- command_announcement.Announce(current_map.dust_end_message, "Dust Belt Alert", , new_sound = 'sound/AI/dust_end_message.ogg', zlevels = affecting_z)
+ command_announcement.Announce(SSatlas.current_map.dust_end_message, "Dust Belt Alert", , new_sound = 'sound/AI/dust_end_message.ogg', zlevels = affecting_z)
/datum/event/meteor_wave/dust/get_meteors()
return SSatlas.current_sector.meteors_dust
diff --git a/code/modules/events/money_lotto.dm b/code/modules/events/money_lotto.dm
index 70b4cc9f4a4..3454f0c7b0e 100644
--- a/code/modules/events/money_lotto.dm
+++ b/code/modules/events/money_lotto.dm
@@ -25,7 +25,7 @@
deposit_success = 1
/datum/event/money_lotto/announce()
- var/author = "[current_map.company_name] Editor"
+ var/author = "[SSatlas.current_map.company_name] Editor"
var/channel = "Tau Ceti Daily"
var/body = "Tau Ceti Daily wishes to congratulate [winner_name] for recieving the Tau Ceti Stellar Slam Lottery, and receiving the out of this world sum of [winner_sum] credits!"
diff --git a/code/modules/events/radiation_storm.dm b/code/modules/events/radiation_storm.dm
index e5ec66eec53..a57a7d5b4e1 100644
--- a/code/modules/events/radiation_storm.dm
+++ b/code/modules/events/radiation_storm.dm
@@ -18,7 +18,7 @@
return res
/datum/event/radiation_storm/announce()
- command_announcement.Announce(current_map.radiation_detected_message, "Radiation Sensor Array Automated Alert", new_sound = 'sound/AI/radiation_detected_message.ogg', zlevels = affecting_z)
+ command_announcement.Announce(SSatlas.current_map.radiation_detected_message, "Radiation Sensor Array Automated Alert", new_sound = 'sound/AI/radiation_detected_message.ogg', zlevels = affecting_z)
/datum/event/radiation_storm/start()
..()
@@ -27,7 +27,7 @@
/datum/event/radiation_storm/tick()
if(activeFor == enterBelt)
- command_announcement.Announce(current_map.radiation_contact_message, "Radiation Sensor Array Automated Alert", new_sound = 'sound/AI/radiation_contact_message.ogg', zlevels = affecting_z)
+ command_announcement.Announce(SSatlas.current_map.radiation_contact_message, "Radiation Sensor Array Automated Alert", new_sound = 'sound/AI/radiation_contact_message.ogg', zlevels = affecting_z)
radiate()
if(activeFor >= enterBelt && activeFor <= leaveBelt)
@@ -38,7 +38,7 @@
radiate()
else if(activeFor == leaveBelt)
- command_announcement.Announce(current_map.radiation_end_message, "Radiation Sensor Array Automated Alert", new_sound = 'sound/AI/radiation_end_message.ogg', zlevels = affecting_z)
+ command_announcement.Announce(SSatlas.current_map.radiation_end_message, "Radiation Sensor Array Automated Alert", new_sound = 'sound/AI/radiation_end_message.ogg', zlevels = affecting_z)
lights()
/datum/event/radiation_storm/proc/radiate()
diff --git a/code/modules/events/rogue_drones.dm b/code/modules/events/rogue_drones.dm
index a7098dae1ee..cb1f3eb0518 100644
--- a/code/modules/events/rogue_drones.dm
+++ b/code/modules/events/rogue_drones.dm
@@ -20,11 +20,11 @@
D.disabled = rand(15, 60)
/datum/event/rogue_drone/announce()
- var/message_index = rand(1, length(current_map.rogue_drone_detected_messages))
- var/message = current_map.rogue_drone_detected_messages[message_index]
+ var/message_index = rand(1, length(SSatlas.current_map.rogue_drone_detected_messages))
+ var/message = SSatlas.current_map.rogue_drone_detected_messages[message_index]
var/list/possible_sounds = list('sound/AI/rogue_drone_detected_message_1.ogg', 'sound/AI/rogue_drone_detected_message_2.ogg')
var/our_sound
- if(length(current_map.rogue_drone_detected_messages > possible_sounds))
+ if(length(SSatlas.current_map.rogue_drone_detected_messages > possible_sounds))
our_sound = possible_sounds[message_index]
else
our_sound = possible_sounds[1]
@@ -42,6 +42,6 @@
if(!faked)
if(num_recovered > length(drones_list) * 0.75)
- command_announcement.Announce(current_map.rogue_drone_end_message, "Rogue Drone Alert", new_sound = 'sound/AI/rogue_drone_end_message.ogg', zlevels = affecting_z)
+ command_announcement.Announce(SSatlas.current_map.rogue_drone_end_message, "Rogue Drone Alert", new_sound = 'sound/AI/rogue_drone_end_message.ogg', zlevels = affecting_z)
else
- command_announcement.Announce(current_map.rogue_drone_destroyed_message, "Rogue Drone Alert", new_sound = 'sound/AI/rogue_drone_destroyed_message.ogg', zlevels = affecting_z)
+ command_announcement.Announce(SSatlas.current_map.rogue_drone_destroyed_message, "Rogue Drone Alert", new_sound = 'sound/AI/rogue_drone_destroyed_message.ogg', zlevels = affecting_z)
diff --git a/code/modules/events/wallrot.dm b/code/modules/events/wallrot.dm
index 504d091df3f..4ccd688d2c5 100644
--- a/code/modules/events/wallrot.dm
+++ b/code/modules/events/wallrot.dm
@@ -19,7 +19,7 @@
// 100 attempts
for(var/i = 0, i < 100, i++)
- var/turf/candidate = locate(rand(1, world.maxx), rand(1, world.maxy), pick(current_map.station_levels))
+ var/turf/candidate = locate(rand(1, world.maxx), rand(1, world.maxy), pick(SSatlas.current_map.station_levels))
if(istype(candidate, /turf/simulated/wall))
origin_turf = candidate
break
diff --git a/code/modules/ghostroles/spawner/antagonist/revenant.dm b/code/modules/ghostroles/spawner/antagonist/revenant.dm
index 78ef1e6821b..dd8a1530d36 100644
--- a/code/modules/ghostroles/spawner/antagonist/revenant.dm
+++ b/code/modules/ghostroles/spawner/antagonist/revenant.dm
@@ -75,7 +75,7 @@
if(rift_turf)
new /obj/effect/portal/revenant(rift_turf)
if(!first_rift_done)
- command_announcement.Announce("[current_map.station_name], we're detecting energy signatures eerily similar to a bluespace rift breach inside your hull. [SScargo.shuttle ? "We're sending you a bluespace neutralizer via the cargo shuttle. If you need more, your research department should be able to print neutralizers as well if they've been increasing their bluespace research levels. " : ""]Locate the rift and shut it down.", "Bluespace Breach Alert")
+ command_announcement.Announce("[SSatlas.current_map.station_name], we're detecting energy signatures eerily similar to a bluespace rift breach inside your hull. [SScargo.shuttle ? "We're sending you a bluespace neutralizer via the cargo shuttle. If you need more, your research department should be able to print neutralizers as well if they've been increasing their bluespace research levels. " : ""]Locate the rift and shut it down.", "Bluespace Breach Alert")
first_rift_done = TRUE
if(SScargo.shuttle)
var/turf/T = pick_area_turf(pick(SScargo.shuttle.shuttle_area), list(/proc/not_turf_contains_dense_objects))
diff --git a/code/modules/ghostroles/spawner/atom/matriarchmaintdrone.dm b/code/modules/ghostroles/spawner/atom/matriarchmaintdrone.dm
index e3f6f331b88..d399f6b3b19 100644
--- a/code/modules/ghostroles/spawner/atom/matriarchmaintdrone.dm
+++ b/code/modules/ghostroles/spawner/atom/matriarchmaintdrone.dm
@@ -10,7 +10,7 @@
spawn_mob = /mob/living/silicon/robot/drone/construction/matriarch
/datum/ghostspawner/matriarchmaintdrone/New()
- desc = "Delegate tasks to your lesser maintenance drones. Maintain and improve the systems on the [current_map.station_name]."
+ desc = "Delegate tasks to your lesser maintenance drones. Maintain and improve the systems on the [SSatlas.current_map.station_name]."
..()
/datum/ghostspawner/matriarchmaintdrone/spawn_mob(mob/user)
diff --git a/code/modules/ghostroles/spawner/atom/mining_drone.dm b/code/modules/ghostroles/spawner/atom/mining_drone.dm
index 5871ee99cd8..ad7bd69762a 100644
--- a/code/modules/ghostroles/spawner/atom/mining_drone.dm
+++ b/code/modules/ghostroles/spawner/atom/mining_drone.dm
@@ -22,5 +22,5 @@
var/designation = "[drone_tag]-[rand(100,999)]"
M.set_name("NT-[designation]")
M.designation = designation
- assign_drone_to_matrix(M, current_map.station_short)
+ assign_drone_to_matrix(M, SSatlas.current_map.station_short)
return M
diff --git a/code/modules/ghostroles/spawner/base.dm b/code/modules/ghostroles/spawner/base.dm
index 8367abc89c7..7cd67351218 100644
--- a/code/modules/ghostroles/spawner/base.dm
+++ b/code/modules/ghostroles/spawner/base.dm
@@ -175,12 +175,12 @@
if(desc)
to_chat(user, SPAN_INFO("Role description: ") + desc)
GLOB.universe.OnPlayerLatejoin(user)
- if(current_map.use_overmap)
+ if(SSatlas.current_map.use_overmap)
var/obj/effect/overmap/visitable/sector = GLOB.map_sectors["[user.z]"]
if(sector?.invisible_until_ghostrole_spawn)
sector.x = sector.start_x
sector.y = sector.start_y
- sector.z = current_map.overmap_z
+ sector.z = SSatlas.current_map.overmap_z
sector.invisible_until_ghostrole_spawn = FALSE
return TRUE
diff --git a/code/modules/ghostroles/spawner/human/admin/ccia.dm b/code/modules/ghostroles/spawner/human/admin/ccia.dm
index da604ebdf8d..8b1fbc70ebb 100644
--- a/code/modules/ghostroles/spawner/human/admin/ccia.dm
+++ b/code/modules/ghostroles/spawner/human/admin/ccia.dm
@@ -29,7 +29,7 @@
mob_name_pick_message = "Pick a name."
/datum/ghostspawner/human/admin/corporate/ccia_agent/New()
- desc = "Board the [current_map.station_name], annoy crew with your interviews and get squashed by your own shuttle."
+ desc = "Board the [SSatlas.current_map.station_name], annoy crew with your interviews and get squashed by your own shuttle."
..()
/datum/ghostspawner/human/admin/corporate/ccia_escort
@@ -62,7 +62,7 @@
special_role = "SCC Agent"
/datum/ghostspawner/human/admin/corporate/scc_agent/New()
- desc = "Board the [current_map.station_name], annoy crew with your interviews and get squashed by your own shuttle. But this time you're blue."
+ desc = "Board the [SSatlas.current_map.station_name], annoy crew with your interviews and get squashed by your own shuttle. But this time you're blue."
..()
/datum/ghostspawner/human/admin/corporate/scc_bodyguard
diff --git a/code/modules/ghostroles/spawner/human/responseteams/deathsquad.dm b/code/modules/ghostroles/spawner/human/responseteams/deathsquad.dm
index ad0cfeddf97..3df6dd49e81 100644
--- a/code/modules/ghostroles/spawner/human/responseteams/deathsquad.dm
+++ b/code/modules/ghostroles/spawner/human/responseteams/deathsquad.dm
@@ -12,7 +12,7 @@
/datum/ghostspawner/human/ert/deathsquad/New()
..()
- welcome_message = "The [current_map.station_name] has been compromised. Recover SCC assets by any means necessary. Crew expendable."
+ welcome_message = "The [SSatlas.current_map.station_name] has been compromised. Recover SCC assets by any means necessary. Crew expendable."
/datum/ghostspawner/human/ert/deathsquad/leader
name = "SCC Asset Protection Leader"
diff --git a/code/modules/ghostroles/spawner/human/responseteams/syndicate.dm b/code/modules/ghostroles/spawner/human/responseteams/syndicate.dm
index f6034ec8a08..1b0520efd09 100644
--- a/code/modules/ghostroles/spawner/human/responseteams/syndicate.dm
+++ b/code/modules/ghostroles/spawner/human/responseteams/syndicate.dm
@@ -8,7 +8,7 @@
/datum/ghostspawner/human/ert/commando/New()
..()
- welcome_message = "The order has been given - the [current_map.station_name] and its crew are to be wiped off the star-charts, by any means necessary."
+ welcome_message = "The order has been given - the [SSatlas.current_map.station_name] and its crew are to be wiped off the star-charts, by any means necessary."
/datum/ghostspawner/human/ert/commando/leader
name = "Syndicate Commando Leader"
diff --git a/code/modules/ghostroles/spawner/human/responseteams/unathi/kataphracts.dm b/code/modules/ghostroles/spawner/human/responseteams/unathi/kataphracts.dm
index ada82128343..dcbe41f7b82 100644
--- a/code/modules/ghostroles/spawner/human/responseteams/unathi/kataphracts.dm
+++ b/code/modules/ghostroles/spawner/human/responseteams/unathi/kataphracts.dm
@@ -10,7 +10,7 @@
extra_languages = list(LANGUAGE_UNATHI, LANGUAGE_AZAZIBA)
/datum/ghostspawner/human/ert/kataphract/New()
- welcome_message = "You're part of the local Kataphract guild, a knight-like organization of Unathi who roam the galaxy to do good. You've picked up a distress signal coming from the [current_map.station_name], owned by the SCC. You prefer to use melee weaponry, but will pull out your emergency pistol in a pinch. Remember to roleplay like an Unathi, even if you aren't whitelisted for it! Set auto-hiss in the OOC tab to basic or full."
+ welcome_message = "You're part of the local Kataphract guild, a knight-like organization of Unathi who roam the galaxy to do good. You've picked up a distress signal coming from the [SSatlas.current_map.station_name], owned by the SCC. You prefer to use melee weaponry, but will pull out your emergency pistol in a pinch. Remember to roleplay like an Unathi, even if you aren't whitelisted for it! Set auto-hiss in the OOC tab to basic or full."
..()
/datum/ghostspawner/human/ert/kataphract/klax
@@ -24,7 +24,7 @@
extra_languages = list(LANGUAGE_VAURCA)
/datum/ghostspawner/human/ert/kataphract/klax/New()
- welcome_message = "You're part of the local Kataphract guild, a knight-like organization of Unathi who roam the galaxy to do good. You've picked up a distress signal coming from the [current_map.station_name], owned by the SCC. You prefer to use melee weaponry, but will pull out your emergency pistol in a pinch. Let the Unathi teach you how to become an honourable Knight, follow their lead. Achieve glory for the Hive!"
+ welcome_message = "You're part of the local Kataphract guild, a knight-like organization of Unathi who roam the galaxy to do good. You've picked up a distress signal coming from the [SSatlas.current_map.station_name], owned by the SCC. You prefer to use melee weaponry, but will pull out your emergency pistol in a pinch. Let the Unathi teach you how to become an honourable Knight, follow their lead. Achieve glory for the Hive!"
..()
/datum/ghostspawner/human/ert/kataphract/specialist
name = "Kataphract-Hopeful Specialist"
diff --git a/code/modules/ghostroles/spawner/human/visitor.dm b/code/modules/ghostroles/spawner/human/visitor.dm
index 0073a0e79d8..95b21719d95 100644
--- a/code/modules/ghostroles/spawner/human/visitor.dm
+++ b/code/modules/ghostroles/spawner/human/visitor.dm
@@ -22,10 +22,10 @@
mob_name = null
/datum/ghostspawner/human/visitor/New()
- desc = "You are a random visitor that boarded the [current_map.station_name], visiting for any reason you can think of. You do not have any records, as you are not an employee of [current_map.company_short]."
+ desc = "You are a random visitor that boarded the [SSatlas.current_map.station_name], visiting for any reason you can think of. You do not have any records, as you are not an employee of [SSatlas.current_map.company_short]."
..()
/datum/ghostspawner/human/visitor/select_spawnlocation(var/use = TRUE)
- if(current_map.force_spawnpoint)
+ if(SSatlas.current_map.force_spawnpoint)
return pick(GLOB.force_spawnpoints["Anyone"])
return pick(GLOB.latejoin)
diff --git a/code/modules/ghostroles/spawner/simplemob/maintdrone.dm b/code/modules/ghostroles/spawner/simplemob/maintdrone.dm
index a36e0455fb0..8e178cf9f6f 100644
--- a/code/modules/ghostroles/spawner/simplemob/maintdrone.dm
+++ b/code/modules/ghostroles/spawner/simplemob/maintdrone.dm
@@ -13,8 +13,8 @@
/datum/ghostspawner/simplemob/maintdrone/New()
. = ..()
- if(current_map.station_name)
- desc = "[desc] on the [current_map.station_name]."
+ if(SSatlas.current_map.station_name)
+ desc = "[desc] on the [SSatlas.current_map.station_name]."
else
desc = "[desc]."
diff --git a/code/modules/ghostroles/spawner/simplemob/rat.dm b/code/modules/ghostroles/spawner/simplemob/rat.dm
index 984875fce75..d71f2f94bfc 100644
--- a/code/modules/ghostroles/spawner/simplemob/rat.dm
+++ b/code/modules/ghostroles/spawner/simplemob/rat.dm
@@ -11,13 +11,13 @@
spawn_mob = /mob/living/simple_animal/rat //The mob that should be spawned
/datum/ghostspawner/simplemob/rat/New()
- desc = "Join as a rat on the [current_map.station_name], a common nuisance to the crew."
+ desc = "Join as a rat on the [SSatlas.current_map.station_name], a common nuisance to the crew."
..()
//This proc selects the spawnpoint to use.
/datum/ghostspawner/simplemob/rat/select_spawnlocation()
//find a viable mouse candidate
- var/obj/machinery/atmospherics/unary/vent_pump/spawnpoint = find_mouse_spawnpoint(pick(current_map.station_levels))
+ var/obj/machinery/atmospherics/unary/vent_pump/spawnpoint = find_mouse_spawnpoint(pick(SSatlas.current_map.station_levels))
return get_turf(spawnpoint)
/datum/ghostspawner/simplemob/rat/cant_spawn()
diff --git a/code/modules/hallucinations/types/basic.dm b/code/modules/hallucinations/types/basic.dm
index f27e1daa0b6..8d4cc7b3f86 100644
--- a/code/modules/hallucinations/types/basic.dm
+++ b/code/modules/hallucinations/types/basic.dm
@@ -27,7 +27,7 @@
if(4)
sound_to(holder, 'sound/AI/emergency_shuttle_leaving_dock.ogg')
to_chat(holder, "Emergency Departure
")
- to_chat(holder, SPAN_ALERT("An emergency evacuation shuttle has arrived in the hangar to extract the crew of [current_map.station_name]. It will depart in approximately two minutes. Please do not allow [holder] to board."))
+ to_chat(holder, SPAN_ALERT("An emergency evacuation shuttle has arrived in the hangar to extract the crew of [SSatlas.current_map.station_name]. It will depart in approximately two minutes. Please do not allow [holder] to board."))
if(5)
sound_to(holder, 'sound/AI/vermin.ogg')
diff --git a/code/modules/holodeck/HolodeckControl.dm b/code/modules/holodeck/HolodeckControl.dm
index 439c72d4627..ff2a7d558bb 100644
--- a/code/modules/holodeck/HolodeckControl.dm
+++ b/code/modules/holodeck/HolodeckControl.dm
@@ -54,14 +54,14 @@ GLOBAL_LIST_EMPTY_TYPED(holodeck_controls, /obj/machinery/computer/holodeck_cont
onclose(user, "computer")
return
- if(!current_map.holodeck_supported_programs.len)
+ if(!SSatlas.current_map.holodeck_supported_programs.len)
dat += "Warning: No supported holo-programs loaded.
"
user << browse(dat, "window=computer;size=400x500")
onclose(user, "computer")
return
- for(var/prog in current_map.holodeck_supported_programs)
- dat += "([prog])
"
+ for(var/prog in SSatlas.current_map.holodeck_supported_programs)
+ dat += "([prog])
"
dat += "
"
dat += "(Turn Off)
"
@@ -82,8 +82,8 @@ GLOBAL_LIST_EMPTY_TYPED(holodeck_controls, /obj/machinery/computer/holodeck_cont
dat += "
"
if(safety_disabled)
- for(var/prog in current_map.holodeck_restricted_programs)
- dat += "(Begin [prog])
"
+ for(var/prog in SSatlas.current_map.holodeck_restricted_programs)
+ dat += "(Begin [prog])
"
dat += "Ensure the holodeck is empty before testing.
"
dat += "
"
dat += "Safety Protocols are DISABLED
"
@@ -114,8 +114,8 @@ GLOBAL_LIST_EMPTY_TYPED(holodeck_controls, /obj/machinery/computer/holodeck_cont
if(href_list["program"])
var/prog = href_list["program"]
- if(prog in current_map.holodeck_programs)
- loadProgram(current_map.holodeck_programs[prog])
+ if(prog in SSatlas.current_map.holodeck_programs)
+ loadProgram(SSatlas.current_map.holodeck_programs[prog])
else if(href_list["AIoverride"])
if(!issilicon(usr))
@@ -152,7 +152,7 @@ GLOBAL_LIST_EMPTY_TYPED(holodeck_controls, /obj/machinery/computer/holodeck_cont
req_one_access = list()
update_projections()
to_chat(user, "You vastly increase projector power and override the safety and security protocols.")
- to_chat(user, "Warning. Automatic shutoff and derezing protocols have been corrupted. Please call [current_map.company_name] maintenance and do not use the simulator.")
+ to_chat(user, "Warning. Automatic shutoff and derezing protocols have been corrupted. Please call [SSatlas.current_map.company_name] maintenance and do not use the simulator.")
log_game("[key_name(usr)] emagged the Holodeck Control Computer",ckey=key_name(usr))
src.updateUsrDialog()
return 1
@@ -211,7 +211,7 @@ GLOBAL_LIST_EMPTY_TYPED(holodeck_controls, /obj/machinery/computer/holodeck_cont
if(!checkInteg(linkedholodeck))
damaged = 1
- loadProgram(current_map.holodeck_programs["turnoff"], 0)
+ loadProgram(SSatlas.current_map.holodeck_programs["turnoff"], 0)
active = 0
update_use_power(POWER_USE_IDLE)
for(var/mob/M in range(10,src))
@@ -251,9 +251,9 @@ GLOBAL_LIST_EMPTY_TYPED(holodeck_controls, /obj/machinery/computer/holodeck_cont
//Why is it called toggle if it doesn't toggle?
/obj/machinery/computer/holodeck_control/proc/togglePower(var/toggleOn = 0)
if(toggleOn)
- loadProgram(current_map.holodeck_programs["emptycourt"], 0)
+ loadProgram(SSatlas.current_map.holodeck_programs["emptycourt"], 0)
else
- loadProgram(current_map.holodeck_programs["turnoff"], 0)
+ loadProgram(SSatlas.current_map.holodeck_programs["turnoff"], 0)
if(!linkedholodeck.has_gravity)
linkedholodeck.gravitychange(TRUE)
@@ -359,7 +359,7 @@ GLOBAL_LIST_EMPTY_TYPED(holodeck_controls, /obj/machinery/computer/holodeck_cont
/obj/machinery/computer/holodeck_control/proc/emergencyShutdown()
//Turn it back to the regular non-holographic room
- loadProgram(current_map.holodeck_programs["turnoff"], 0)
+ loadProgram(SSatlas.current_map.holodeck_programs["turnoff"], 0)
if(!linkedholodeck.has_gravity)
linkedholodeck.gravitychange(TRUE)
@@ -377,8 +377,8 @@ GLOBAL_LIST_EMPTY_TYPED(holodeck_controls, /obj/machinery/computer/holodeck_cont
return TRUE
/obj/machinery/computer/holodeck_control/proc/load_random_program()
- var/datum/holodeck_program/prog_to_load = pick(current_map.holodeck_programs)
- loadProgram(current_map.holodeck_programs[prog_to_load])
+ var/datum/holodeck_program/prog_to_load = pick(SSatlas.current_map.holodeck_programs)
+ loadProgram(SSatlas.current_map.holodeck_programs[prog_to_load])
/obj/machinery/computer/holodeck_control/Aurora
density = 0
diff --git a/code/modules/law/incident.dm b/code/modules/law/incident.dm
index 62d0c727e6f..5d2ae9f4c93 100644
--- a/code/modules/law/incident.dm
+++ b/code/modules/law/incident.dm
@@ -258,7 +258,7 @@
"fine" = fine,
"felony" = felony,
"created_by" = created_by,
- "game_id" = game_id
+ "game_id" = GLOB.round_id
)
//Insert a new entry into the db. Upate if a entry with the same chard_id and UID already exists
var/DBQuery/infraction_insert_query = GLOB.dbcon.NewQuery({"INSERT INTO ss13_character_incidents
diff --git a/code/modules/library/lib_machines.dm b/code/modules/library/lib_machines.dm
index 55486dbad33..d63e830c15b 100644
--- a/code/modules/library/lib_machines.dm
+++ b/code/modules/library/lib_machines.dm
@@ -136,9 +136,9 @@
var/dat
// Public Related Code
if(!is_public)
- dat = "[current_map.station_name] Library Management\n"
+ dat = "[SSatlas.current_map.station_name] Library Management\n"
else
- dat = "[current_map.station_name] Library\n"
+ dat = "[SSatlas.current_map.station_name] Library\n"
switch(screenstate)
if(0)
// Main Menu
diff --git a/code/modules/maps/map_template.dm b/code/modules/maps/map_template.dm
index 3249db7669c..74bc344f900 100644
--- a/code/modules/maps/map_template.dm
+++ b/code/modules/maps/map_template.dm
@@ -67,10 +67,10 @@
for (var/z_index = bounds[MAP_MINZ]; z_index <= bounds[MAP_MAXZ]; z_index++)
if (accessibility_weight)
- current_map.accessible_z_levels[num2text(z_index)] = accessibility_weight
+ SSatlas.current_map.accessible_z_levels[num2text(z_index)] = accessibility_weight
if (base_turf_for_zs)
- current_map.base_turf_by_z[num2text(z_index)] = base_turf_for_zs
- current_map.player_levels |= z_index
+ SSatlas.current_map.base_turf_by_z[num2text(z_index)] = base_turf_for_zs
+ SSatlas.current_map.player_levels |= z_index
smooth_zlevel(world.maxz)
resort_all_areas()
diff --git a/code/modules/mining/machine_processing.dm b/code/modules/mining/machine_processing.dm
index a732c342200..01464db4974 100644
--- a/code/modules/mining/machine_processing.dm
+++ b/code/modules/mining/machine_processing.dm
@@ -188,7 +188,7 @@
dat += "Operations Department
"
dat += "Form 0600
Mining Yield Declaration
"
- dat += "Facility: [current_map.station_name]
"
+ dat += "Facility: [SSatlas.current_map.station_name]
"
dat += "Date: [date_string]
"
dat += "Index: [idx]
"
diff --git a/code/modules/mining/mine_turfs.dm b/code/modules/mining/mine_turfs.dm
index 083d66da948..6e22c28f87b 100644
--- a/code/modules/mining/mine_turfs.dm
+++ b/code/modules/mining/mine_turfs.dm
@@ -90,7 +90,7 @@ var/list/mineral_can_smooth_with = list(
if(!baseturf)
// Hard-coding this for performance reasons.
- baseturf = A.base_turf || current_map.base_turf_by_z["[z]"] || /turf/space
+ baseturf = A.base_turf || SSatlas.current_map.base_turf_by_z["[z]"] || /turf/space
return INITIALIZE_HINT_NORMAL
diff --git a/code/modules/mining/minebot.dm b/code/modules/mining/minebot.dm
index 911edacdc19..e3ec7ca8cb7 100644
--- a/code/modules/mining/minebot.dm
+++ b/code/modules/mining/minebot.dm
@@ -124,7 +124,7 @@
if(is_type_in_list(get_area(T), allowed_areas))
return FALSE
if(!self_destructing)
- to_chat(src, SPAN_DANGER("WARNING: Removal from [current_map.company_name] property detected. Anti-Theft mode activated."))
+ to_chat(src, SPAN_DANGER("WARNING: Removal from [SSatlas.current_map.company_name] property detected. Anti-Theft mode activated."))
start_self_destruct(TRUE)
return TRUE
diff --git a/code/modules/mob/abstract/new_player/login.dm b/code/modules/mob/abstract/new_player/login.dm
index 1ac89c1e8d9..81727ed2686 100644
--- a/code/modules/mob/abstract/new_player/login.dm
+++ b/code/modules/mob/abstract/new_player/login.dm
@@ -6,7 +6,7 @@
update_Login_details() //handles setting lastKnownIP and computer_id for use by the ban systems as well as checking for multikeying
- to_chat(src, "")
+ to_chat(src, "")
if(!mind)
mind = new /datum/mind(key)
diff --git a/code/modules/mob/abstract/new_player/menu.dm b/code/modules/mob/abstract/new_player/menu.dm
index 35a4b9ebc70..d26c90929e3 100644
--- a/code/modules/mob/abstract/new_player/menu.dm
+++ b/code/modules/mob/abstract/new_player/menu.dm
@@ -77,27 +77,27 @@
/obj/screen/new_player/title/Initialize()
if(SSatlas.current_sector.sector_lobby_art)
- current_map.lobby_icon = pick(SSatlas.current_sector.sector_lobby_art)
- else if(!current_map.lobby_icon)
- current_map.lobby_icon = pick(current_map.lobby_icons)
+ SSatlas.current_map.lobby_icon = pick(SSatlas.current_sector.sector_lobby_art)
+ else if(!SSatlas.current_map.lobby_icon)
+ SSatlas.current_map.lobby_icon = pick(SSatlas.current_map.lobby_icons)
- if(!length(current_map.lobby_screens))
- var/list/known_icon_states = icon_states(current_map.lobby_icon)
+ if(!length(SSatlas.current_map.lobby_screens))
+ var/list/known_icon_states = icon_states(SSatlas.current_map.lobby_icon)
for(var/screen in known_icon_states)
- if(!(screen in current_map.lobby_screens))
- current_map.lobby_screens += screen
- icon = current_map.lobby_icon
+ if(!(screen in SSatlas.current_map.lobby_screens))
+ SSatlas.current_map.lobby_screens += screen
+ icon = SSatlas.current_map.lobby_icon
- if(length(current_map.lobby_screens))
- if(current_map.lobby_transitions && isnum(current_map.lobby_transitions))
- icon_state = current_map.lobby_screens[lobby_index]
+ if(length(SSatlas.current_map.lobby_screens))
+ if(SSatlas.current_map.lobby_transitions && isnum(SSatlas.current_map.lobby_transitions))
+ icon_state = SSatlas.current_map.lobby_screens[lobby_index]
if(!MC_RUNNING())
- spawn(current_map.lobby_transitions)
+ spawn(SSatlas.current_map.lobby_transitions)
Update()
else
- refresh_timer_id = addtimer(CALLBACK(src, PROC_REF(Update)), current_map.lobby_transitions, TIMER_UNIQUE | TIMER_CLIENT_TIME | TIMER_OVERRIDE | TIMER_STOPPABLE)
+ refresh_timer_id = addtimer(CALLBACK(src, PROC_REF(Update)), SSatlas.current_map.lobby_transitions, TIMER_UNIQUE | TIMER_CLIENT_TIME | TIMER_OVERRIDE | TIMER_STOPPABLE)
else
- icon_state = pick(current_map.lobby_screens)
+ icon_state = pick(SSatlas.current_map.lobby_screens)
else //This should basically never happen.
crash_with("No lobby screens found!")
@@ -110,20 +110,20 @@
if(QDELING(src))
return
- if(!current_map.lobby_transitions && SSatlas.current_sector.sector_lobby_transitions)
+ if(!SSatlas.current_map.lobby_transitions && SSatlas.current_sector.sector_lobby_transitions)
return
if(!istype(hud) || !isnewplayer(hud.mymob))
return
lobby_index += 1
- if (lobby_index > length(current_map.lobby_screens))
+ if (lobby_index > length(SSatlas.current_map.lobby_screens))
lobby_index = 1
animate(src, alpha = 0, time = 1 SECOND)
- animate(alpha = 255, icon_state = current_map.lobby_screens[lobby_index], time = 1 SECOND)
+ animate(alpha = 255, icon_state = SSatlas.current_map.lobby_screens[lobby_index], time = 1 SECOND)
if(!MC_RUNNING())
- spawn(current_map.lobby_transitions)
+ spawn(SSatlas.current_map.lobby_transitions)
Update()
else
- refresh_timer_id = addtimer(CALLBACK(src, PROC_REF(Update)), current_map.lobby_transitions, TIMER_UNIQUE | TIMER_CLIENT_TIME | TIMER_OVERRIDE | TIMER_STOPPABLE)
+ refresh_timer_id = addtimer(CALLBACK(src, PROC_REF(Update)), SSatlas.current_map.lobby_transitions, TIMER_UNIQUE | TIMER_CLIENT_TIME | TIMER_OVERRIDE | TIMER_STOPPABLE)
/obj/screen/new_player/selection
var/click_sound = 'sound/effects/menu_click.ogg'
diff --git a/code/modules/mob/abstract/new_player/new_player.dm b/code/modules/mob/abstract/new_player/new_player.dm
index dedd04daa0b..134502266d8 100644
--- a/code/modules/mob/abstract/new_player/new_player.dm
+++ b/code/modules/mob/abstract/new_player/new_player.dm
@@ -268,9 +268,9 @@ INITIALIZE_IMMEDIATE(/mob/abstract/new_player)
if(!IsJobAvailable(rank))
to_chat(usr, "[rank] is not available. Please try another.")
return 0
- if(!(spawning_at in current_map.allowed_spawns))
- to_chat(usr, SPAN_NOTICE("Spawn location [spawning_at] invalid for [current_map]. Defaulting to [current_map.default_spawn]."))
- spawning_at = current_map.default_spawn
+ if(!(spawning_at in SSatlas.current_map.allowed_spawns))
+ to_chat(usr, SPAN_NOTICE("Spawn location [spawning_at] invalid for [SSatlas.current_map]. Defaulting to [SSatlas.current_map.default_spawn]."))
+ spawning_at = SSatlas.current_map.default_spawn
spawning = 1
close_spawn_windows()
@@ -332,7 +332,7 @@ INITIALIZE_IMMEDIATE(/mob/abstract/new_player)
if(character.mind.role_alt_title)
rank = character.mind.role_alt_title
// can't use their name here, since cyborg namepicking is done post-spawn, so we'll just say "A new Cyborg has arrived"/"A new Android has arrived"/etc.
- GLOB.global_announcer.autosay("A new[rank ? " [rank]" : " visitor" ] [join_message ? join_message : "has arrived on the [current_map.station_type]"].", "Arrivals Announcer")
+ GLOB.global_announcer.autosay("A new[rank ? " [rank]" : " visitor" ] [join_message ? join_message : "has arrived on the [SSatlas.current_map.station_type]"].", "Arrivals Announcer")
/mob/abstract/new_player/proc/LateChoices()
if(!istype(late_choices_ui))
diff --git a/code/modules/mob/abstract/observer/observer.dm b/code/modules/mob/abstract/observer/observer.dm
index 2dc9f16ab65..1db71850315 100644
--- a/code/modules/mob/abstract/observer/observer.dm
+++ b/code/modules/mob/abstract/observer/observer.dm
@@ -82,7 +82,7 @@
if(!T)
if(length(GLOB.latejoin))
T = pick(GLOB.latejoin) //Safety in case we cannot find the body's position
- else if(current_map.force_spawnpoint && length(GLOB.force_spawnpoints["Anyone"]))
+ else if(SSatlas.current_map.force_spawnpoint && length(GLOB.force_spawnpoints["Anyone"]))
T = pick(GLOB.force_spawnpoints["Anyone"])
else
T = locate(1, 1, 1)
@@ -171,7 +171,7 @@ Works together with spawning an observer, noted above.
return FALSE
//Check if the z level is in the restricted list
- if (!(check in current_map.restricted_levels))
+ if (!(check in SSatlas.current_map.restricted_levels))
return FALSE
return TRUE
diff --git a/code/modules/mob/living/silicon/ai/ai.dm b/code/modules/mob/living/silicon/ai/ai.dm
index 080cc0d99c4..fc459a8022f 100644
--- a/code/modules/mob/living/silicon/ai/ai.dm
+++ b/code/modules/mob/living/silicon/ai/ai.dm
@@ -475,12 +475,12 @@ var/list/ai_verbs_default = list(
if(emergency_message_cooldown)
to_chat(usr, "Arrays recycling. Please stand by.")
return
- var/input = sanitize(input(usr, "Please choose a message to transmit to [current_map.boss_short] via quantum entanglement. Please be aware that this process is very expensive, and abuse will lead to... termination. Transmission does not guarantee a response. There is a 30 second delay before you may send another message, be clear, full and concise.", "To abort, send an empty message.", ""))
+ var/input = sanitize(input(usr, "Please choose a message to transmit to [SSatlas.current_map.boss_short] via quantum entanglement. Please be aware that this process is very expensive, and abuse will lead to... termination. Transmission does not guarantee a response. There is a 30 second delay before you may send another message, be clear, full and concise.", "To abort, send an empty message.", ""))
if(!input)
return
Centcomm_announce(input, usr)
to_chat(usr, "Message transmitted.")
- log_say("[key_name(usr)] has made an AI [current_map.boss_short] announcement: [input]",ckey=key_name(usr))
+ log_say("[key_name(usr)] has made an AI [SSatlas.current_map.boss_short] announcement: [input]",ckey=key_name(usr))
emergency_message_cooldown = 1
spawn(300)
emergency_message_cooldown = 0
diff --git a/code/modules/mob/living/silicon/ai/malf.dm b/code/modules/mob/living/silicon/ai/malf.dm
index b99e010a6c1..4e8064ddacc 100644
--- a/code/modules/mob/living/silicon/ai/malf.dm
+++ b/code/modules/mob/living/silicon/ai/malf.dm
@@ -63,7 +63,7 @@
// Off-Station APCs should not count towards CPU generation.
for(var/obj/machinery/power/apc/A in hacked_apcs)
- if(A.z in current_map.station_levels)
+ if(A.z in SSatlas.current_map.station_levels)
cpu_gain += 0.05
cpu_storage += 100
diff --git a/code/modules/mob/living/silicon/robot/drone/drone.dm b/code/modules/mob/living/silicon/robot/drone/drone.dm
index 2ba50823037..fcff977b337 100644
--- a/code/modules/mob/living/silicon/robot/drone/drone.dm
+++ b/code/modules/mob/living/silicon/robot/drone/drone.dm
@@ -198,7 +198,7 @@
return FALSE
if(!self_destructing)
- to_chat(src, SPAN_DANGER("WARNING: Removal from [current_map.company_name] property detected. Anti-Theft mode activated."))
+ to_chat(src, SPAN_DANGER("WARNING: Removal from [SSatlas.current_map.company_name] property detected. Anti-Theft mode activated."))
start_self_destruct(TRUE)
return TRUE
@@ -216,7 +216,7 @@
/mob/living/silicon/robot/drone/construction/matriarch/Initialize()
. = ..()
check_add_to_late_firers()
- matrix_tag = current_map.station_short
+ matrix_tag = SSatlas.current_map.station_short
/mob/living/silicon/robot/drone/construction/matriarch/shut_down()
return
@@ -285,7 +285,7 @@
module = new module_type(src, src)
recalculate_synth_capacities()
- flavor_text = replacetext(desc_flavor, "%MAPNAME%", current_map.company_name)
+ flavor_text = replacetext(desc_flavor, "%MAPNAME%", SSatlas.current_map.company_name)
playsound(get_turf(src), 'sound/machines/twobeep.ogg', 50, 0)
//Redefining some robot procs...
@@ -451,7 +451,7 @@
var/area/A = get_area(T)
if((!T || !(A in GLOB.the_station_areas)) && src.stat != DEAD)
if(!self_destructing)
- to_chat(src, SPAN_WARNING("WARNING: Removal from [current_map.company_name] property detected. Anti-Theft mode activated."))
+ to_chat(src, SPAN_WARNING("WARNING: Removal from [SSatlas.current_map.company_name] property detected. Anti-Theft mode activated."))
start_self_destruct(TRUE)
return TRUE
diff --git a/code/modules/mob/living/silicon/robot/drone/drone_manufacturer.dm b/code/modules/mob/living/silicon/robot/drone/drone_manufacturer.dm
index 0ecd92d0d98..e5a65c5e6fb 100644
--- a/code/modules/mob/living/silicon/robot/drone/drone_manufacturer.dm
+++ b/code/modules/mob/living/silicon/robot/drone/drone_manufacturer.dm
@@ -31,7 +31,7 @@
/obj/machinery/drone_fabricator/Initialize()
. = ..()
check_add_to_late_firers()
- fabricator_tag = current_map.station_short
+ fabricator_tag = SSatlas.current_map.station_short
/obj/machinery/drone_fabricator/derelict
name = "construction drone fabricator"
diff --git a/code/modules/mob/living/silicon/robot/life.dm b/code/modules/mob/living/silicon/robot/life.dm
index 46d001d5acb..4dff3ab58b6 100644
--- a/code/modules/mob/living/silicon/robot/life.dm
+++ b/code/modules/mob/living/silicon/robot/life.dm
@@ -310,7 +310,7 @@
/mob/living/silicon/robot/proc/process_level_restrictions()
//Abort if they should not get blown
- if(lock_charge || scrambled_codes || emagged || current_map.allow_borgs_to_leave)
+ if(lock_charge || scrambled_codes || emagged || SSatlas.current_map.allow_borgs_to_leave)
return FALSE
//Check if they are on a player level -> abort
var/turf/T = get_turf(src)
diff --git a/code/modules/mob/living/silicon/robot/robot.dm b/code/modules/mob/living/silicon/robot/robot.dm
index 8bcea8a87fe..29913435672 100644
--- a/code/modules/mob/living/silicon/robot/robot.dm
+++ b/code/modules/mob/living/silicon/robot/robot.dm
@@ -1013,7 +1013,7 @@
return
self_destructing = TRUE
if(anti_theft)
- to_chat(src, SPAN_WARNING("Initiating wipe of all databases containing information related to [current_map.company_name]!"))
+ to_chat(src, SPAN_WARNING("Initiating wipe of all databases containing information related to [SSatlas.current_map.company_name]!"))
else
say("WARNING! Self-destruct initiated. Unit [src] will self destruct in five seconds.")
@@ -1021,7 +1021,7 @@
/mob/living/silicon/robot/proc/self_destruct_warning(var/warning_level)
if(!process_level_restrictions()) // Robot has returned to a turf where it is safe
- to_chat(src, SPAN_NOTICE("Unit [src] has returned to [current_map.company_name] property, self-destruct aborted!"))
+ to_chat(src, SPAN_NOTICE("Unit [src] has returned to [SSatlas.current_map.company_name] property, self-destruct aborted!"))
say("Unit [src] self-destruct aborted.")
self_destructing = FALSE
return
diff --git a/code/modules/mob/living/simple_animal/hostile/retaliate/retaliate.dm b/code/modules/mob/living/simple_animal/hostile/retaliate/retaliate.dm
index e8eda7d3d34..6ea37140d09 100644
--- a/code/modules/mob/living/simple_animal/hostile/retaliate/retaliate.dm
+++ b/code/modules/mob/living/simple_animal/hostile/retaliate/retaliate.dm
@@ -29,7 +29,7 @@
set category = "Object"
set src in view()
- if(!current_map.use_overmap)
+ if(!SSatlas.current_map.use_overmap)
return
if(use_check_and_message(usr))
diff --git a/code/modules/modular_computers/file_system/programs/antagonist/hacked_camera.dm b/code/modules/modular_computers/file_system/programs/antagonist/hacked_camera.dm
index 12d6ffafd17..6505d347c75 100644
--- a/code/modules/modular_computers/file_system/programs/antagonist/hacked_camera.dm
+++ b/code/modules/modular_computers/file_system/programs/antagonist/hacked_camera.dm
@@ -15,7 +15,7 @@
return
// The program is active and connected to one of the station's networks. Has a very small chance to trigger IDS alarm every tick.
- if(current_network && (current_network in current_map.station_networks) && prob(0.1))
+ if(current_network && (current_network in SSatlas.current_map.station_networks) && prob(0.1))
if(GLOB.ntnet_global.intrusion_detection_enabled)
GLOB.ntnet_global.add_log("IDS WARNING - Unauthorised access detected to camera network [current_network] by device with NID [computer.network_card.get_network_tag()]")
GLOB.ntnet_global.intrusion_detection_alarm = TRUE
diff --git a/code/modules/modular_computers/file_system/programs/command/account_database.dm b/code/modules/modular_computers/file_system/programs/command/account_database.dm
index 09e559d38d9..dcba429e05a 100644
--- a/code/modules/modular_computers/file_system/programs/command/account_database.dm
+++ b/code/modules/modular_computers/file_system/programs/command/account_database.dm
@@ -18,7 +18,7 @@
/datum/computer_file/program/account_db/New(obj/item/modular_computer/comp, var/is_centcomm_db = FALSE)
..()
- if(current_map)
+ if(SSatlas.current_map)
machine_id = "[station_name()] Acc. DB #[SSeconomy.num_financial_terminals++]"
else
machine_id = "NT-Net Relay Back-up Software DB" // created during map generation inside the ntnet relay, not used by players
diff --git a/code/modules/modular_computers/file_system/programs/command/command_and_communications.dm b/code/modules/modular_computers/file_system/programs/command/command_and_communications.dm
index e05fe8cbab5..1ac78d58d87 100644
--- a/code/modules/modular_computers/file_system/programs/command/command_and_communications.dm
+++ b/code/modules/modular_computers/file_system/programs/command/command_and_communications.dm
@@ -48,7 +48,7 @@
data["can_call_shuttle"] = can_call_shuttle()
data["isAI"] = issilicon(usr)
data["authenticated"] = is_authenticated(user)
- data["boss_short"] = current_map.boss_short
+ data["boss_short"] = SSatlas.current_map.boss_short
data["current_security_level"] = security_level
data["current_security_level_title"] = num2seclevel(security_level)
data["current_maint_all_access"] = maint_all_access
@@ -155,12 +155,12 @@
if(!is_relay_online())//Contact Centcom has a check, Syndie doesn't to allow for Traitor funs.
to_chat(usr, SPAN_WARNING("No Emergency Bluespace Relay detected. Unable to transmit message."))
return
- var/input = sanitize(input("Please choose a message to transmit to [current_map.boss_short] via quantum entanglement. Please be aware that this process is very expensive, and abuse will lead to... termination. Transmission does not guarantee a response. There is a 30 second delay before you may send another message, be clear, full and concise.", "To abort, send an empty message.", "") as null|text)
+ var/input = sanitize(input("Please choose a message to transmit to [SSatlas.current_map.boss_short] via quantum entanglement. Please be aware that this process is very expensive, and abuse will lead to... termination. Transmission does not guarantee a response. There is a 30 second delay before you may send another message, be clear, full and concise.", "To abort, send an empty message.", "") as null|text)
if(!input || computer.use_check_and_message(usr))
return
Centcomm_announce(input, usr)
to_chat(usr, SPAN_NOTICE("Message successfully transmitted."))
- log_say("[key_name(usr)] has sent a message to [current_map.boss_short]: [input]", ckey = key_name(usr))
+ log_say("[key_name(usr)] has sent a message to [SSatlas.current_map.boss_short]: [input]", ckey = key_name(usr))
centcomm_message_cooldown = TRUE
addtimer(CALLBACK(src, PROC_REF(set_centcomm_message_cooldown), FALSE), 300) // thirty second cooldown
if("evac")
@@ -296,12 +296,12 @@ Command action procs
if(!(ROUND_IS_STARTED) || !evacuation_controller)
return FALSE
- if(current_map.shuttle_call_restarts && current_map.shuttle_call_restart_timer)
- deltimer(current_map.shuttle_call_restart_timer)
- current_map.shuttle_call_restart_timer = null
+ if(SSatlas.current_map.shuttle_call_restarts && SSatlas.current_map.shuttle_call_restart_timer)
+ deltimer(SSatlas.current_map.shuttle_call_restart_timer)
+ SSatlas.current_map.shuttle_call_restart_timer = null
log_game("[key_name(user)] has stopped the 'shuttle' round restart.", key_name(user))
message_admins("[key_name_admin(user)] has stopped the 'shuttle' round restart.", 1)
- to_world(FONT_LARGE(SPAN_VOTE(current_map.shuttle_recall_message)))
+ to_world(FONT_LARGE(SPAN_VOTE(SSatlas.current_map.shuttle_recall_message)))
return
if(SSticker.mode.name == "Meteor")
@@ -352,11 +352,11 @@ Command action procs
if(!(ROUND_IS_STARTED) || !evacuation_controller)
return
- if(current_map.shuttle_call_restarts)
- current_map.shuttle_call_restart_timer = addtimer(CALLBACK(GLOBAL_PROC, GLOBAL_PROC_REF(reboot_world)), 10 MINUTES, TIMER_UNIQUE|TIMER_STOPPABLE)
+ if(SSatlas.current_map.shuttle_call_restarts)
+ SSatlas.current_map.shuttle_call_restart_timer = addtimer(CALLBACK(GLOBAL_PROC, GLOBAL_PROC_REF(reboot_world)), 10 MINUTES, TIMER_UNIQUE|TIMER_STOPPABLE)
log_game("[user? key_name(user) : "Autotransfer"] has called the 'shuttle' round restart.")
message_admins("[user? key_name_admin(user) : "Autotransfer"] has called the 'shuttle' round restart.", 1)
- to_world(FONT_LARGE(SPAN_VOTE(current_map.shuttle_called_message)))
+ to_world(FONT_LARGE(SPAN_VOTE(SSatlas.current_map.shuttle_called_message)))
return
. = evacuation_controller.call_evacuation(null, _evac_type = TRANSFER_CREW, autotransfer = TRUE)
diff --git a/code/modules/modular_computers/file_system/programs/generic/map.dm b/code/modules/modular_computers/file_system/programs/generic/map.dm
index 1f301858fec..6985ed9ef23 100644
--- a/code/modules/modular_computers/file_system/programs/generic/map.dm
+++ b/code/modules/modular_computers/file_system/programs/generic/map.dm
@@ -23,13 +23,13 @@
. = data
var/z_level = z_override ? z_override : user.z
- if(z_level in current_map.station_levels)
+ if(z_level in SSatlas.current_map.station_levels)
data["map_image"] = SSholomap.minimaps_area_colored_base64[z_level]
data["user_x"] = user.x
data["user_y"] = user.y
data["user_z"] = user.z
- data["station_levels"] = current_map.station_levels
+ data["station_levels"] = SSatlas.current_map.station_levels
data["z_override"] = z_override
data["dept_colors_map"] = list(
diff --git a/code/modules/modular_computers/file_system/programs/medical/suit_sensors.dm b/code/modules/modular_computers/file_system/programs/medical/suit_sensors.dm
index b922848613a..a0393052244 100644
--- a/code/modules/modular_computers/file_system/programs/medical/suit_sensors.dm
+++ b/code/modules/modular_computers/file_system/programs/medical/suit_sensors.dm
@@ -26,7 +26,7 @@
data["isAI"] = isAI(user)
data["crewmembers"] = list()
if(SSradio.telecomms_ping(computer))
- for(var/z_level in current_map.map_levels)
+ for(var/z_level in SSatlas.current_map.map_levels)
data["crewmembers"] += crew_repository.health_data(z_level)
data["security_level"] = seclevel2num(get_security_level())
diff --git a/code/modules/modular_computers/file_system/programs/security/camera.dm b/code/modules/modular_computers/file_system/programs/security/camera.dm
index bf134b2549c..b06eb43383c 100644
--- a/code/modules/modular_computers/file_system/programs/security/camera.dm
+++ b/code/modules/modular_computers/file_system/programs/security/camera.dm
@@ -3,7 +3,7 @@
if(!network)
return FALSE
- . = current_map.get_network_access(network)
+ . = SSatlas.current_map.get_network_access(network)
if (.)
return
@@ -50,7 +50,7 @@
data["current_network"] = current_network
var/list/all_networks = list()
- for(var/network in current_map.station_networks)
+ for(var/network in SSatlas.current_map.station_networks)
all_networks += list(
list(
"tag" = network,
diff --git a/code/modules/nano/nanoui.dm b/code/modules/nano/nanoui.dm
index 233361a614f..9289843e82f 100644
--- a/code/modules/nano/nanoui.dm
+++ b/code/modules/nano/nanoui.dm
@@ -194,7 +194,7 @@ nanoui is used to open and update nano browser uis
"showMap" = show_map,
"mapName" = "Aurora",
"mapZLevel" = map_z_level,
- "mapZLevels" = current_map.map_levels,
+ "mapZLevels" = SSatlas.current_map.map_levels,
"user" = list("name" = user.name)
)
return config_data
@@ -501,7 +501,7 @@ nanoui is used to open and update nano browser uis
if(href_list["mapZLevel"])
var/map_z = (text2num(href_list["mapZLevel"]))
- if(map_z in current_map.map_levels)
+ if(map_z in SSatlas.current_map.map_levels)
set_map_z_level(map_z)
map_update = 1
else
diff --git a/code/modules/organs/organ.dm b/code/modules/organs/organ.dm
index 2ac23deab3f..08192ae7af3 100644
--- a/code/modules/organs/organ.dm
+++ b/code/modules/organs/organ.dm
@@ -116,8 +116,9 @@ INITIALIZE_IMMEDIATE(/obj/item/organ)
/obj/item/organ/proc/set_dna(var/datum/dna/new_dna)
if(new_dna)
dna = new_dna.Clone()
- blood_DNA.Cut()
- blood_DNA[dna.unique_enzymes] = dna.b_type
+ if(blood_DNA)
+ blood_DNA.Cut()
+ blood_DNA[dna.unique_enzymes] = dna.b_type
/obj/item/organ/proc/die()
if(status & ORGAN_ROBOT)
diff --git a/code/modules/overmap/_defines.dm b/code/modules/overmap/_defines.dm
index b41dfcecaa1..68deea23e53 100644
--- a/code/modules/overmap/_defines.dm
+++ b/code/modules/overmap/_defines.dm
@@ -27,11 +27,11 @@ GLOBAL_LIST_EMPTY(map_sectors)
name = "[x]-[y]"
var/list/numbers = list()
- if(x == 1 || x == current_map.overmap_size)
+ if(x == 1 || x == SSatlas.current_map.overmap_size)
numbers += list("[round(y/10)]","[round(y%10)]")
- if(y == 1 || y == current_map.overmap_size)
+ if(y == 1 || y == SSatlas.current_map.overmap_size)
numbers += "-"
- if(y == 1 || y == current_map.overmap_size)
+ if(y == 1 || y == SSatlas.current_map.overmap_size)
numbers += list("[round(x/10)]","[round(x%10)]")
for(var/i = 1 to numbers.len)
@@ -41,12 +41,12 @@ GLOBAL_LIST_EMPTY(map_sectors)
if(y == 1)
I.pixel_y = 3
I.pixel_x = 5*i + 4
- if(y == current_map.overmap_size)
+ if(y == SSatlas.current_map.overmap_size)
I.pixel_y = world.icon_size - 9
I.pixel_x = 5*i + 4
if(x == 1)
I.pixel_x = 5*i - 2
- if(x == current_map.overmap_size)
+ if(x == SSatlas.current_map.overmap_size)
I.pixel_x = 5*i + 2
overlays += I
diff --git a/code/modules/overmap/exoplanets/decor/_turfs.dm b/code/modules/overmap/exoplanets/decor/_turfs.dm
index 27a890bb581..dbf5adf1224 100644
--- a/code/modules/overmap/exoplanets/decor/_turfs.dm
+++ b/code/modules/overmap/exoplanets/decor/_turfs.dm
@@ -14,7 +14,7 @@
var/has_edge_icon = TRUE
/turf/simulated/floor/exoplanet/New()
- if(current_map.use_overmap)
+ if(SSatlas.current_map.use_overmap)
var/obj/effect/overmap/visitable/sector/exoplanet/E = GLOB.map_sectors["[z]"]
if(istype(E))
if(E.atmosphere)
@@ -169,7 +169,7 @@
/turf/simulated/floor/exoplanet/grass/Initialize()
. = ..()
- if(current_map.use_overmap)
+ if(SSatlas.current_map.use_overmap)
var/obj/effect/overmap/visitable/sector/exoplanet/E = GLOB.map_sectors["[z]"]
if(istype(E) && E.grass_color)
color = E.grass_color
diff --git a/code/modules/overmap/exoplanets/decor/turfs/grass.dm b/code/modules/overmap/exoplanets/decor/turfs/grass.dm
index 5fa430e8308..af7f35c7046 100644
--- a/code/modules/overmap/exoplanets/decor/turfs/grass.dm
+++ b/code/modules/overmap/exoplanets/decor/turfs/grass.dm
@@ -8,7 +8,7 @@
/turf/simulated/floor/exoplanet/grass/Initialize()
. = ..()
- if(current_map.use_overmap)
+ if(SSatlas.current_map.use_overmap)
var/obj/effect/overmap/visitable/sector/exoplanet/E = GLOB.map_sectors["[z]"]
if(color && istype(E) && E.grass_color)
color = E.grass_color
diff --git a/code/modules/overmap/exoplanets/exoplanet.dm b/code/modules/overmap/exoplanets/exoplanet.dm
index a3ed591daab..6e0bfa83b1c 100644
--- a/code/modules/overmap/exoplanets/exoplanet.dm
+++ b/code/modules/overmap/exoplanets/exoplanet.dm
@@ -94,7 +94,7 @@
icon_state = "globe[rand(1,3)]"
/obj/effect/overmap/visitable/sector/exoplanet/New(nloc, max_x, max_y)
- if(!current_map.use_overmap)
+ if(!SSatlas.current_map.use_overmap)
return
maxx = max_x ? max_x : world.maxx
diff --git a/code/modules/overmap/overmap_object.dm b/code/modules/overmap/overmap_object.dm
index a3779bd6331..5633d9c03f9 100644
--- a/code/modules/overmap/overmap_object.dm
+++ b/code/modules/overmap/overmap_object.dm
@@ -77,7 +77,7 @@
var/nx = x
var/ny = y
var/low_edge = 1
- var/high_edge = current_map.overmap_size - 1
+ var/high_edge = SSatlas.current_map.overmap_size - 1
var/heading = get_heading()
@@ -98,7 +98,7 @@
/obj/effect/overmap/Initialize()
. = ..()
- if(!current_map.use_overmap)
+ if(!SSatlas.current_map.use_overmap)
return INITIALIZE_HINT_QDEL
if(known)
diff --git a/code/modules/overmap/sectors.dm b/code/modules/overmap/sectors.dm
index ee5fab0cd6a..d40b48168e3 100644
--- a/code/modules/overmap/sectors.dm
+++ b/code/modules/overmap/sectors.dm
@@ -70,14 +70,14 @@ var/global/area/overmap/map_overmap // Global object used to locate the overmap
find_z_levels() // This populates map_z and assigns z levels to the ship.
register_z_levels() // This makes external calls to update global z level information.
- if(!current_map.overmap_z)
+ if(!SSatlas.current_map.overmap_z)
build_overmap()
initial_generic_waypoints = flatten_list(initial_generic_waypoints)
tracked_dock_tags = flatten_list(tracked_dock_tags)
var/map_low = OVERMAP_EDGE
- var/map_high = current_map.overmap_size - OVERMAP_EDGE
+ var/map_high = SSatlas.current_map.overmap_size - OVERMAP_EDGE
var/turf/home
if (place_near_main)
var/obj/effect/overmap/visitable/main = GLOB.map_sectors["1"] ? GLOB.map_sectors["1"] : GLOB.map_sectors[GLOB.map_sectors[1]]
@@ -90,7 +90,7 @@ var/global/area/overmap/map_overmap // Global object used to locate the overmap
else
start_x = start_x || rand(map_low, map_high)
start_y = start_y || rand(map_low, map_high)
- home = locate(start_x, start_y, current_map.overmap_z)
+ home = locate(start_x, start_y, SSatlas.current_map.overmap_z)
if(!invisible_until_ghostrole_spawn)
forceMove(home)
@@ -143,13 +143,13 @@ var/global/area/overmap/map_overmap // Global object used to locate the overmap
for(var/zlevel in map_z)
GLOB.map_sectors["[zlevel]"] = src
- current_map.player_levels |= map_z
+ SSatlas.current_map.player_levels |= map_z
if(!in_space)
- current_map.sealed_levels |= map_z
+ SSatlas.current_map.sealed_levels |= map_z
if(base)
- current_map.station_levels |= map_z
- current_map.contact_levels |= map_z
- current_map.map_levels |= map_z
+ SSatlas.current_map.station_levels |= map_z
+ SSatlas.current_map.contact_levels |= map_z
+ SSatlas.current_map.map_levels |= map_z
//Helper for init.
/obj/effect/overmap/visitable/proc/check_ownership(obj/object)
@@ -236,26 +236,26 @@ var/global/area/overmap/map_overmap // Global object used to locate the overmap
return
/proc/build_overmap()
- if(!current_map.use_overmap)
+ if(!SSatlas.current_map.use_overmap)
return 1
log_module_sectors("Building overmap...")
world.maxz++
- current_map.overmap_z = world.maxz
+ SSatlas.current_map.overmap_z = world.maxz
SEND_GLOBAL_SIGNAL(COMSIG_GLOB_NEW_Z, world.maxz)
- log_module_sectors("Putting overmap on [current_map.overmap_z]")
+ log_module_sectors("Putting overmap on [SSatlas.current_map.overmap_z]")
var/area/overmap/A = new
global.map_overmap = A
- for (var/square in block(locate(1,1,current_map.overmap_z), locate(current_map.overmap_size,current_map.overmap_size,current_map.overmap_z)))
+ for (var/square in block(locate(1,1,SSatlas.current_map.overmap_z), locate(SSatlas.current_map.overmap_size,SSatlas.current_map.overmap_size,SSatlas.current_map.overmap_z)))
var/turf/T = square
- if(T.x == current_map.overmap_size || T.y == current_map.overmap_size)
+ if(T.x == SSatlas.current_map.overmap_size || T.y == SSatlas.current_map.overmap_size)
T = T.ChangeTurf(/turf/unsimulated/map/edge)
else
T = T.ChangeTurf(/turf/unsimulated/map)
ChangeArea(T, A)
- current_map.sealed_levels |= current_map.overmap_z
+ SSatlas.current_map.sealed_levels |= SSatlas.current_map.overmap_z
log_module_sectors("Overmap build complete.")
return 1
diff --git a/code/modules/overmap/ship_weaponry/_targeting_console.dm b/code/modules/overmap/ship_weaponry/_targeting_console.dm
index bb1095dab50..939b621700b 100644
--- a/code/modules/overmap/ship_weaponry/_targeting_console.dm
+++ b/code/modules/overmap/ship_weaponry/_targeting_console.dm
@@ -29,7 +29,7 @@
return INITIALIZE_HINT_LATELOAD
/obj/machinery/computer/ship/targeting/LateInitialize()
- if(current_map.use_overmap && !linked)
+ if(SSatlas.current_map.use_overmap && !linked)
var/my_sector = GLOB.map_sectors["[z]"]
if(istype(my_sector, /obj/effect/overmap/visitable))
attempt_hook_up(my_sector)
diff --git a/code/modules/overmap/ship_weaponry/projectiles/_overmap_projectiles.dm b/code/modules/overmap/ship_weaponry/projectiles/_overmap_projectiles.dm
index 88ec5672aa5..309bc36d82d 100644
--- a/code/modules/overmap/ship_weaponry/projectiles/_overmap_projectiles.dm
+++ b/code/modules/overmap/ship_weaponry/projectiles/_overmap_projectiles.dm
@@ -20,7 +20,7 @@
. = ..()
x = sx
y = sy
- z = current_map.overmap_z
+ z = SSatlas.current_map.overmap_z
addtimer(CALLBACK(src, PROC_REF(move_to)), 1)
/obj/effect/overmap/projectile/Bump(var/atom/A)
@@ -32,7 +32,7 @@
var/nx = x
var/ny = y
var/low_edge = 1
- var/high_edge = current_map.overmap_size - 1
+ var/high_edge = SSatlas.current_map.overmap_size - 1
if((dir & WEST) && x == low_edge)
nx = high_edge
diff --git a/code/modules/overmap/ship_weaponry/weaponry/leviathan.dm b/code/modules/overmap/ship_weaponry/weaponry/leviathan.dm
index 9368412b9d7..82a2b0f5977 100644
--- a/code/modules/overmap/ship_weaponry/weaponry/leviathan.dm
+++ b/code/modules/overmap/ship_weaponry/weaponry/leviathan.dm
@@ -289,7 +289,7 @@
return INITIALIZE_HINT_LATELOAD
/obj/machinery/leviathan_safeguard/LateInitialize()
- if(current_map.use_overmap && !linked)
+ if(SSatlas.current_map.use_overmap && !linked)
var/my_sector = GLOB.map_sectors["[z]"]
if (istype(my_sector, /obj/effect/overmap/visitable))
attempt_hook_up(my_sector)
@@ -361,7 +361,7 @@
return INITIALIZE_HINT_LATELOAD
/obj/machinery/leviathan_button/LateInitialize()
- if(current_map.use_overmap && !linked)
+ if(SSatlas.current_map.use_overmap && !linked)
var/my_sector = GLOB.map_sectors["[z]"]
if (istype(my_sector, /obj/effect/overmap/visitable))
attempt_hook_up(my_sector)
diff --git a/code/modules/overmap/ships/computers/helm.dm b/code/modules/overmap/ships/computers/helm.dm
index a44ee0fa475..8490741b2f8 100644
--- a/code/modules/overmap/ships/computers/helm.dm
+++ b/code/modules/overmap/ships/computers/helm.dm
@@ -81,7 +81,7 @@
/obj/machinery/computer/ship/helm/process()
..()
if (autopilot && dx && dy)
- var/turf/T = locate(dx,dy,current_map.overmap_z)
+ var/turf/T = locate(dx,dy,SSatlas.current_map.overmap_z)
if(connected.loc == T)
if(connected.is_still())
autopilot = 0
@@ -251,7 +251,7 @@
var/mob/living/carbon/human/H = usr
var/dir_to_move = turn(connected.dir, ndir == WEST ? 90 : -90)
var/turf/new_turf = get_step(connected, dir_to_move)
- if(new_turf.x > current_map.overmap_size || new_turf.y > current_map.overmap_size)
+ if(new_turf.x > SSatlas.current_map.overmap_size || new_turf.y > SSatlas.current_map.overmap_size)
to_chat(H, SPAN_WARNING("Automated piloting safeties prevent you from going into deep space."))
return
if(do_after(H, 1 SECOND) && connected.can_combat_roll())
diff --git a/code/modules/overmap/ships/computers/ship.dm b/code/modules/overmap/ships/computers/ship.dm
index 28ae325e490..81f282d973a 100644
--- a/code/modules/overmap/ships/computers/ship.dm
+++ b/code/modules/overmap/ships/computers/ship.dm
@@ -151,7 +151,7 @@ somewhere on that shuttle. Subtypes of these can be then used to perform ship ov
/obj/machinery/computer/ship/Initialize()
. = ..()
- if(current_map.use_overmap && !linked)
+ if(SSatlas.current_map.use_overmap && !linked)
var/my_sector = GLOB.map_sectors["[z]"]
if(istype(my_sector, linked_type))
attempt_hook_up(my_sector)
diff --git a/code/modules/overmap/ships/identification.dm b/code/modules/overmap/ships/identification.dm
index 0545e6338f4..48d5a8c57c3 100644
--- a/code/modules/overmap/ships/identification.dm
+++ b/code/modules/overmap/ships/identification.dm
@@ -17,7 +17,7 @@
return INITIALIZE_HINT_LATELOAD
/obj/machinery/iff_beacon/LateInitialize()
- if(current_map.use_overmap && !linked)
+ if(SSatlas.current_map.use_overmap && !linked)
var/my_sector = GLOB.map_sectors["[z]"]
if (istype(my_sector, /obj/effect/overmap/visitable))
attempt_hook_up(my_sector)
diff --git a/code/modules/overmap/spacetravel.dm b/code/modules/overmap/spacetravel.dm
index 00f6b205b36..cfdc152a918 100644
--- a/code/modules/overmap/spacetravel.dm
+++ b/code/modules/overmap/spacetravel.dm
@@ -9,7 +9,7 @@ var/list/cached_space = list()
known = 0
/obj/effect/overmap/visitable/sector/temporary/New(var/nx, var/ny, var/nz)
- loc = locate(nx, ny, current_map.overmap_z)
+ loc = locate(nx, ny, SSatlas.current_map.overmap_z)
x = nx
y = ny
map_z += nz
@@ -30,7 +30,7 @@ var/list/cached_space = list()
return 1
/proc/get_deepspace(x,y)
- var/obj/effect/overmap/visitable/sector/temporary/res = locate(x,y,current_map.overmap_z)
+ var/obj/effect/overmap/visitable/sector/temporary/res = locate(x, y, SSatlas.current_map.overmap_z)
if(istype(res))
return res
else if(cached_space.len)
@@ -40,7 +40,7 @@ var/list/cached_space = list()
res.y = y
return res
else
- return new /obj/effect/overmap/visitable/sector/temporary(x, y, current_map.get_empty_zlevel())
+ return new /obj/effect/overmap/visitable/sector/temporary(x, y, SSatlas.current_map.get_empty_zlevel())
/atom/movable/proc/lost_in_space()
for(var/atom/movable/AM in contents)
@@ -89,7 +89,7 @@ var/list/cached_space = list()
testing("[A] spacemoving from [M] ([M.x], [M.y]).")
- var/turf/map = locate(M.x,M.y,current_map.overmap_z)
+ var/turf/map = locate(M.x,M.y,SSatlas.current_map.overmap_z)
var/obj/effect/overmap/visitable/TM
for(var/obj/effect/overmap/visitable/O in map)
if(O != M && O.in_space && prob(50))
diff --git a/code/modules/paperwork/faxmachine.dm b/code/modules/paperwork/faxmachine.dm
index 3e14216bf84..d16be2a598d 100644
--- a/code/modules/paperwork/faxmachine.dm
+++ b/code/modules/paperwork/faxmachine.dm
@@ -38,7 +38,7 @@ var/list/admin_departments
allfaxes += src
if( !(("[department]" in alldepartments) || ("[department]" in admin_departments)) )
alldepartments |= department
- destination = current_map.boss_name
+ destination = SSatlas.current_map.boss_name
/obj/machinery/photocopier/faxmachine/Destroy()
allfaxes -= src
@@ -49,7 +49,7 @@ var/list/admin_departments
/obj/machinery/photocopier/faxmachine/ui_data(mob/user)
var/list/data = list()
data["destination"] = destination
- data["bossname"] = current_map.boss_name
+ data["bossname"] = SSatlas.current_map.boss_name
data["auth"] = is_authenticated()
data["cooldown_end"] = sendtime + sendcooldown
data["world_time"] = world.time
@@ -284,8 +284,8 @@ var/list/admin_departments
arrived_faxes += rcvdcopy
//message badmins that a fax has arrived
- if (destination == current_map.boss_name)
- message_admins(sender, "[uppertext(current_map.boss_short)] FAX", rcvdcopy, "CentcommFaxReply", "#006100")
+ if (destination == SSatlas.current_map.boss_name)
+ message_admins(sender, "[uppertext(SSatlas.current_map.boss_short)] FAX", rcvdcopy, "CentcommFaxReply", "#006100")
else if (destination == "External Routing")
message_admins(sender, "EXTERNAL ROUTING FAX", rcvdcopy, "CentcommFaxReply", "#1F66A0")
diff --git a/code/modules/power/gravitygenerator.dm b/code/modules/power/gravitygenerator.dm
index 525f5164778..997012cb23a 100644
--- a/code/modules/power/gravitygenerator.dm
+++ b/code/modules/power/gravitygenerator.dm
@@ -454,7 +454,7 @@
return INITIALIZE_HINT_LATELOAD
/obj/machinery/gravity_generator/main/LateInitialize()
- if(current_map.use_overmap && !linked)
+ if(SSatlas.current_map.use_overmap && !linked)
var/my_sector = GLOB.map_sectors["[z]"]
if (istype(my_sector, /obj/effect/overmap/visitable))
attempt_hook_up(my_sector)
diff --git a/code/modules/security levels/keycard authentication.dm b/code/modules/security levels/keycard authentication.dm
index 572a1a1066c..2062fba04c9 100644
--- a/code/modules/security levels/keycard authentication.dm
+++ b/code/modules/security levels/keycard authentication.dm
@@ -26,7 +26,7 @@
return INITIALIZE_HINT_LATELOAD
/obj/machinery/keycard_auth/LateInitialize()
- if(current_map.use_overmap && !linked)
+ if(SSatlas.current_map.use_overmap && !linked)
var/my_sector = GLOB.map_sectors["[z]"]
if (istype(my_sector, /obj/effect/overmap/visitable))
attempt_hook_up(my_sector)
diff --git a/code/modules/shuttles/shuttle_autoreturn.dm b/code/modules/shuttles/shuttle_autoreturn.dm
index 291e8ea9b54..ba290660653 100644
--- a/code/modules/shuttles/shuttle_autoreturn.dm
+++ b/code/modules/shuttles/shuttle_autoreturn.dm
@@ -12,7 +12,7 @@
for(var/area/A in shuttle_area)
for(var/mob/M in A)
if(ishuman(M))
- to_chat(M, SPAN_NOTICE("You have arrived at the [current_map.station_name]! The shuttle will return in [auto_return_time] seconds. Enjoy your stay!"))
+ to_chat(M, SPAN_NOTICE("You have arrived at the [SSatlas.current_map.station_name]! The shuttle will return in [auto_return_time] seconds. Enjoy your stay!"))
/datum/shuttle/autodock/ferry/autoreturn/proc/do_return()
launch(src)
diff --git a/code/modules/shuttles/shuttle_console_multi.dm b/code/modules/shuttles/shuttle_console_multi.dm
index cd2f31df2e7..3a6217c5a7b 100644
--- a/code/modules/shuttles/shuttle_console_multi.dm
+++ b/code/modules/shuttles/shuttle_console_multi.dm
@@ -48,6 +48,6 @@
else if(our_shuttle.next_location == our_shuttle.home_waypoint)
if(our_shuttle.return_warning_cooldown < world.time)
our_shuttle.return_warning_cooldown = world.time + 60 SECONDS
- tgui_alert(user, "If you return to base, you won't be able to return to [current_map.station_short]. Launch again if you're sure about this.", "Shuttle Control", list("Acknowledged."))
+ tgui_alert(user, "If you return to base, you won't be able to return to [SSatlas.current_map.station_short]. Launch again if you're sure about this.", "Shuttle Control", list("Acknowledged."))
return FALSE
return ..()
diff --git a/code/modules/shuttles/shuttle_emergency.dm b/code/modules/shuttles/shuttle_emergency.dm
index 09b6e8d7bdc..bd1273ffb52 100644
--- a/code/modules/shuttles/shuttle_emergency.dm
+++ b/code/modules/shuttles/shuttle_emergency.dm
@@ -205,9 +205,9 @@
if (shuttle.in_use)
shuttle_status = "Busy."
else if (!shuttle.location)
- shuttle_status = "Standing-by at [current_map.station_name]."
+ shuttle_status = "Standing-by at [SSatlas.current_map.station_name]."
else
- shuttle_status = "Standing-by at [current_map.dock_name]."
+ shuttle_status = "Standing-by at [SSatlas.current_map.dock_name]."
if(WAIT_LAUNCH, FORCE_LAUNCH)
shuttle_status = "Shuttle has received command and will depart shortly."
if(WAIT_ARRIVE)
diff --git a/code/modules/shuttles/shuttle_specops.dm b/code/modules/shuttles/shuttle_specops.dm
index df6e44e9a91..0d1a429d1f1 100644
--- a/code/modules/shuttles/shuttle_specops.dm
+++ b/code/modules/shuttles/shuttle_specops.dm
@@ -34,7 +34,7 @@
var/obj/machinery/computer/C = user
if(world.time <= reset_time)
- C.visible_message("[current_map.boss_name] will not allow the Special Operations shuttle to launch yet.")
+ C.visible_message("[SSatlas.current_map.boss_name] will not allow the Special Operations shuttle to launch yet.")
if (((world.time - reset_time)/10) > 60)
C.visible_message("[-((world.time - reset_time)/10)/60] minutes remain!")
else
@@ -65,12 +65,12 @@
if (!location) //just arrived home
for(var/turf/T in get_area_turfs(shuttle_area))
var/mob/M = locate(/mob) in T
- to_chat(M, "You have arrived at [current_map.boss_name]. Operation has ended!")
+ to_chat(M, "You have arrived at [SSatlas.current_map.boss_name]. Operation has ended!")
else //just left for the station
launch_mauraders()
for(var/turf/T in get_area_turfs(shuttle_area))
var/mob/M = locate(/mob) in T
- to_chat(M, "You have arrived at [current_map.station_name]. Commence operation!")
+ to_chat(M, "You have arrived at [SSatlas.current_map.station_name]. Commence operation!")
var/obj/machinery/light/small/readylight/light = locate() in T
if(light) light.set_state(1)
diff --git a/code/modules/shuttles/shuttles_multi.dm b/code/modules/shuttles/shuttles_multi.dm
index 994583a8cbc..b6386549e1e 100644
--- a/code/modules/shuttles/shuttles_multi.dm
+++ b/code/modules/shuttles/shuttles_multi.dm
@@ -68,9 +68,9 @@
/datum/shuttle/autodock/multi/antag/proc/announce_departure()
if(cloaked || isnull(departure_message))
return
- command_announcement.Announce(departure_message, announcer || "[current_map.boss_name]")
+ command_announcement.Announce(departure_message, announcer || "[SSatlas.current_map.boss_name]")
/datum/shuttle/autodock/multi/antag/proc/announce_arrival()
if(cloaked || isnull(arrival_message))
return
- command_announcement.Announce(arrival_message, announcer || "[current_map.boss_name]")
+ command_announcement.Announce(arrival_message, announcer || "[SSatlas.current_map.boss_name]")
diff --git a/code/modules/supermatter/supermatter.dm b/code/modules/supermatter/supermatter.dm
index 4a23e35cfd8..1a1caad1241 100644
--- a/code/modules/supermatter/supermatter.dm
+++ b/code/modules/supermatter/supermatter.dm
@@ -194,8 +194,8 @@
/obj/machinery/power/supermatter/get_transit_zlevel()
//don't send it back to the station -- most of the time
if(prob(99))
- var/list/candidates = current_map.accessible_z_levels.Copy()
- for(var/zlevel in current_map.station_levels)
+ var/list/candidates = SSatlas.current_map.accessible_z_levels.Copy()
+ for(var/zlevel in SSatlas.current_map.station_levels)
candidates.Remove("[zlevel]")
candidates.Remove("[src.z]")
diff --git a/code/modules/telesci/telesci_computer.dm b/code/modules/telesci/telesci_computer.dm
index fb1ab71be68..33bce45b054 100644
--- a/code/modules/telesci/telesci_computer.dm
+++ b/code/modules/telesci/telesci_computer.dm
@@ -252,7 +252,7 @@
return
if(isNotStationLevel(z_co))
telefail()
- temp_msg = "ERROR! Sector is invalid! Valid sectors are [english_list(current_map.station_levels)]."
+ temp_msg = "ERROR! Sector is invalid! Valid sectors are [english_list(SSatlas.current_map.station_levels)]."
return
if(teles_left > 0)
doteleport(user)
diff --git a/code/modules/udp/ship_udp.dm b/code/modules/udp/ship_udp.dm
index 7e3b995dc81..765e38c1897 100644
--- a/code/modules/udp/ship_udp.dm
+++ b/code/modules/udp/ship_udp.dm
@@ -65,7 +65,7 @@
log_data["long_message"] = html_encode(long_message)
log_data["level"] = level
log_data["_category"] = category
- log_data["_game_id"] = game_id
+ log_data["_game_id"] = GLOB.round_id
log_data.Add(additional_data)
var/gelf_log = json_encode(log_data)
diff --git a/code/modules/world_api/commands/cciaa.dm b/code/modules/world_api/commands/cciaa.dm
index ae14b60a408..623ba7b27b5 100644
--- a/code/modules/world_api/commands/cciaa.dm
+++ b/code/modules/world_api/commands/cciaa.dm
@@ -238,7 +238,7 @@
/datum/topic_command/send_fax/proc/send_fax(var/obj/machinery/photocopier/faxmachine/F, title, body, senderkey, stamptext)
// Create the reply message
var/obj/item/paper/P = new /obj/item/paper( null ) //hopefully the null loc won't cause trouble for us
- P.name = "[current_map.boss_name] - [title]"
+ P.name = "[SSatlas.current_map.boss_name] - [title]"
P.info = body
P.update_icon()
diff --git a/code/modules/world_api/commands/server_query.dm b/code/modules/world_api/commands/server_query.dm
index bd11700b797..0691c8dffdd 100644
--- a/code/modules/world_api/commands/server_query.dm
+++ b/code/modules/world_api/commands/server_query.dm
@@ -14,7 +14,7 @@
s["ai"] = GLOB.config.allow_ai
s["stationtime"] = worldtime2text()
s["roundduration"] = get_round_duration_formatted()
- s["gameid"] = game_id
+ s["gameid"] = GLOB.round_id
s["game_state"] = SSticker ? SSticker.current_state : 0
s["transferring"] = evacuation_controller?.is_evacuating()
diff --git a/code/unit_tests/map_tests.dm b/code/unit_tests/map_tests.dm
index bb31be031d0..58357d6e1e1 100644
--- a/code/unit_tests/map_tests.dm
+++ b/code/unit_tests/map_tests.dm
@@ -25,15 +25,15 @@
var/fail_message = ""
- if (!current_map)
+ if (!SSatlas.current_map)
return
// This is formatted strangely because it fails the indentation test if it's formatted properly.
// ¯\_(ツ)_/¯
- var/list/exempt_areas = typecacheof(current_map.ut_environ_exempt_areas)
- var/list/exempt_from_atmos = typecacheof(current_map.ut_atmos_exempt_areas)
- var/list/exempt_from_apc = typecacheof(current_map.ut_apc_exempt_areas)
- var/list/exempt_from_fire = typecacheof(current_map.ut_fire_exempt_areas)
+ var/list/exempt_areas = typecacheof(SSatlas.current_map.ut_environ_exempt_areas)
+ var/list/exempt_from_atmos = typecacheof(SSatlas.current_map.ut_atmos_exempt_areas)
+ var/list/exempt_from_apc = typecacheof(SSatlas.current_map.ut_apc_exempt_areas)
+ var/list/exempt_from_fire = typecacheof(SSatlas.current_map.ut_fire_exempt_areas)
for(var/area/A in typecache_filter_list_reverse(GLOB.all_areas, exempt_areas))
if(isStationLevel(A.z))
diff --git a/code/unit_tests/ss_test.dm b/code/unit_tests/ss_test.dm
index fb90a162d20..90440b8e010 100644
--- a/code/unit_tests/ss_test.dm
+++ b/code/unit_tests/ss_test.dm
@@ -126,7 +126,7 @@ SUBSYSTEM_DEF(unit_tests)
//Start the Round.
//
- for(var/thing in subtypesof(/datum/unit_test) - typecacheof(current_map.excluded_test_types))
+ for(var/thing in subtypesof(/datum/unit_test) - typecacheof(SSatlas.current_map.excluded_test_types))
var/datum/unit_test/D = new thing
if(findtext(D.name, "template"))
@@ -163,7 +163,7 @@ SUBSYSTEM_DEF(unit_tests)
var/datum/unit_test/test = curr[curr.len]
curr.len--
- if (test.map_path && current_map && current_map.path != test.map_path)
+ if (test.map_path && SSatlas.current_map && SSatlas.current_map.path != test.map_path)
test.pass("[ascii_red]Check Disabled: This test is not allowed to run on this map.", __FILE__, __LINE__)
if (MC_TICK_CHECK)
return
diff --git a/code/unit_tests/zas_tests.dm b/code/unit_tests/zas_tests.dm
index 78bdebebc18..d5d9840ae2c 100644
--- a/code/unit_tests/zas_tests.dm
+++ b/code/unit_tests/zas_tests.dm
@@ -148,7 +148,7 @@
TEST_FAIL("The shuttle controller is not setup at time of test.")
return 1
if(!SSshuttle.shuttles.len)
- if(length(current_map.map_shuttles))
+ if(length(SSatlas.current_map.map_shuttles))
TEST_FAIL("This map should have shuttles, but it doesn't!")
return 1
else
diff --git a/html/changelogs/fluffyghost-updatestatpanel.yml b/html/changelogs/fluffyghost-updatestatpanel.yml
new file mode 100644
index 00000000000..a374ddef12e
--- /dev/null
+++ b/html/changelogs/fluffyghost-updatestatpanel.yml
@@ -0,0 +1,48 @@
+################################
+# Example Changelog File
+#
+# Note: This file, and files beginning with ".", and files that don't end in ".yml" will not be read. If you change this file, you will look really dumb.
+#
+# Your changelog will be merged with a master changelog. (New stuff added only, and only on the date entry for the day it was merged.)
+# When it is, any changes listed below will disappear.
+#
+# Valid Prefixes:
+# bugfix
+# wip (For works in progress)
+# tweak
+# soundadd
+# sounddel
+# rscadd (general adding of nice things)
+# rscdel (general deleting of nice things)
+# imageadd
+# imagedel
+# maptweak
+# spellcheck (typo fixes)
+# experiment
+# balance
+# admin
+# backend
+# security
+# refactor
+#################################
+
+# Your name.
+author: FluffyGhost
+
+# Optional: Remove this file after generating master changelog. Useful for PR changelogs that won't get used again.
+delete-after: True
+
+# Any changes you've made. See valid prefix list above.
+# INDENT WITH TWO SPACES. NOT TABS. SPACES.
+# SCREW THIS UP AND IT WON'T WORK.
+# Also, all entries are changed into a single [] after a master changelog generation. Just remove the brackets when you add new entries.
+# Please surround your changes in double quotes ("), as certain characters otherwise screws up compiling. The quotes will not show up in the changelog.
+changes:
+ - backend: "Updated statpanel."
+ - rscadd: "Added client pings info with average and current ping."
+ - refactor: "Refactored game_id to be called round_id and made it a GLOB variable."
+ - bugfix: "Adjusted some statpanel javascript customizations to not error out with the spell tabs used by the RIG suits (hardsuits)."
+ - refactor: "Refactored some variable names in the who verbs."
+ - rscadd: "Added some verbs for the client to server ping calculation and relevant vars to store the info."
+ - rscadd: "Added ability admins and devs to see the client to server average pings."
+ - refactor: "Refactored current map to be inside the atlas subsystem instead of a global variable."
diff --git a/html/statbrowser.js b/html/statbrowser.js
index b911d3f0a7e..b30900d5532 100644
--- a/html/statbrowser.js
+++ b/html/statbrowser.js
@@ -143,6 +143,11 @@ function remove_verb(v) {
function check_verbs() {
for (var v = verb_tabs.length - 1; v >= 0; v--) {
+ //Aurora snowflake check because somehow we manage to break even ports
+ if(!verb_tabs[v]){
+ v--;
+ continue;
+ }
verbs_cat_check(verb_tabs[v]);
}
}
@@ -180,15 +185,21 @@ function verbs_cat_check(cat) {
break; // we only need one
}
}
- var spells_in_cat = 0;
- for(var v = 0; v < spells.length; v++) {
- var part = verbs[0];
- spellcat = part[0];
- if(spellcat == tabCat){
- spells_in_cat = 1;
- break;
+ //More aurora snowflake code to handle spell tabs
+ var spells_in_cat = 0;
+ var spellcat = "";
+ for(var v = (spells.length - 1); v >= 0; v--) {
+ var spell = spells[v];
+ spellcat = spell[0];
+ if(spellcat != tabCat || spellcat.trim() == ""){
+ continue;
+ }
+ else{
+ spells_in_cat = 1;
+ break;
+ }
}
- }
+
if (verbs_in_cat != 1 && spells_in_cat != 1) {
removeStatusTab(tabCat);
if (current_tab == tabCat)
@@ -266,6 +277,8 @@ function tab_change(tab) {
draw_verbs(tab);
} else if (tab == "Debug Stat Panel") {
draw_debug();
+ } else if (tab == "SDQL2") {
+ draw_sdql2();
} else if (tab == turfname) {
draw_listedturf();
} else {
@@ -395,7 +408,15 @@ function draw_mc() {
}
document.getElementById("statcontent").appendChild(table);
}
-
+function remove_sdql2() {
+ if (sdql2) {
+ sdql2 = [];
+ removePermanentTab("SDQL2");
+ if (current_tab == "SDQL2")
+ tab_change("Status");
+ }
+ checkStatusTab();
+}
function iconError(e) {
if(current_tab != turfname) {
return;
@@ -837,7 +858,7 @@ Byond.subscribeTo('init_verbs', function (payload) {
});
Byond.subscribeTo('update_stat', function (payload) {
- status_tab_parts = [];
+ status_tab_parts = [payload.ping_str];
var parsed = payload.global_data;
for (var i = 0; i < parsed.length; i++) if (parsed[i] != null) status_tab_parts.push(parsed[i]);
@@ -908,6 +929,7 @@ Byond.subscribeTo('create_listedturf', function (TN) {
Byond.subscribeTo('remove_admin_tabs', function () {
remove_mc();
+ remove_sdql2();
});
Byond.subscribeTo('update_listedturf', function (TC) {
@@ -935,9 +957,20 @@ Byond.subscribeTo('add_admin_tabs', function () {
addPermanentTab("MC");
});
-
+Byond.subscribeTo('update_sdql2', function (S) {
+ sdql2 = S;
+ if (sdql2.length > 0 && !verb_tabs.includes("SDQL2")) {
+ verb_tabs.push("SDQL2");
+ addPermanentTab("SDQL2");
+ }
+ if (current_tab == "SDQL2") {
+ draw_sdql2();
+ }
+});
Byond.subscribeTo('remove_listedturf', remove_listedturf);
+Byond.subscribeTo('remove_sdql2', remove_sdql2);
+
Byond.subscribeTo('remove_mc', remove_mc);
Byond.subscribeTo('add_verb_list', add_verb_list);
diff --git a/maps/_common/mapsystem/map.dm b/maps/_common/mapsystem/map.dm
index 692a5823f7d..1d020980739 100644
--- a/maps/_common/mapsystem/map.dm
+++ b/maps/_common/mapsystem/map.dm
@@ -138,7 +138,7 @@
// By default transition randomly to another zlevel
/datum/map/proc/get_transit_zlevel(var/current_z_level)
- var/list/candidates = current_map.accessible_z_levels.Copy()
+ var/list/candidates = SSatlas.current_map.accessible_z_levels.Copy()
candidates.Remove(num2text(current_z_level))
if(!candidates.len)