mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 20:16:55 +01:00
Kills off (hopefully) the last hardcoded zlevel ID (#13669)
* Kills off (hopefully) the last hardcoded zlevel ID * Also removes duplicate blackboxes
This commit is contained in:
@@ -228,7 +228,15 @@ GLOBAL_DATUM(blackbox, /obj/machinery/blackbox_recorder)
|
||||
GLOB.blackbox = src
|
||||
|
||||
/obj/machinery/blackbox_recorder/Destroy()
|
||||
var/turf/T = locate(1,1,2)
|
||||
// If the blackbox on station is destroyed, it is moved to the admin level
|
||||
// It is very clear that the person who made this doesnt know what a datum is
|
||||
// and thinks that an object which is vital for backend logging of when rounds end and begin
|
||||
// should not only be destroyable, but also an on-station. Whoever designed this needs to be educated
|
||||
// Thank you for coming to my ted talk, -aa
|
||||
|
||||
// Hardcoded Zlevel numbers are bad, so we use the level name to grab the admin Z level
|
||||
var/admin_zlevel = level_name_to_num(CENTCOMM)
|
||||
var/turf/T = locate(1, 1, admin_zlevel)
|
||||
if(T)
|
||||
GLOB.blackbox = null
|
||||
var/obj/machinery/blackbox_recorder/BR = new/obj/machinery/blackbox_recorder(T)
|
||||
|
||||
Reference in New Issue
Block a user