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.
This commit is contained in:
san7890
2022-09-13 14:29:39 +12:00
committed by GitHub
parent c11b3dad75
commit 61d49cb11a
+3 -3
View File
@@ -324,7 +324,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
@@ -368,7 +368,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)
@@ -376,7 +376,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"