[MIRROR] Examine Blocks Out The Debug Z-Levels Verb [MDB IGNORE] (#16190)

* Examine Blocks Out The Debug Z-Levels Verb (#69845)

Hey there,

It's mostly on the tin. It really looked kinda ugly spitting out the information + the drawing right into chat, so let's wrap it in a nice examine_block to keep it looking good. I added some line breaks because I thought it also aided the formatting.

* Examine Blocks Out The Debug Z-Levels Verb

Co-authored-by: san7890 <the@san7890.com>
This commit is contained in:
SkyratBot
2022-09-14 20:37:50 -07:00
committed by GitHub
co-authored by san7890
parent 1122af24de
commit 01f1249810
+3 -3
View File
@@ -358,7 +358,7 @@ GLOBAL_VAR_INIT(say_disabled, FALSE)
var/list/z_list = SSmapping.z_list
var/list/messages = list()
messages += "<b>World</b>: [world.maxx] x [world.maxy] x [world.maxz]<br>"
messages += "<b>World</b>: [world.maxx] x [world.maxy] x [world.maxz]<br><br>"
var/list/linked_levels = list()
var/min_x = INFINITY
@@ -402,7 +402,7 @@ GLOBAL_VAR_INIT(say_disabled, FALSE)
for(var/datum/space_level/S in linked_levels)
grid[S.xi - min_x + 1][S.yi - min_y + 1] = S.z_value
messages += "<table border='1'>"
messages += "<br><table border='1'>"
for(var/y in max_y to min_y step -1)
var/list/part = list()
for(var/x in min_x to max_x)
@@ -410,7 +410,7 @@ GLOBAL_VAR_INIT(say_disabled, FALSE)
messages += "<tr><td>[part.Join("</td><td>")]</td></tr>"
messages += "</table>"
to_chat(src, messages.Join(""), confidential = TRUE)
to_chat(src, examine_block(messages.Join("")), confidential = TRUE)
/client/proc/station_food_debug()
set name = "Count Station Food"