From 61d49cb11aee8acdacda6d7707d3edf1cd0a5a0b Mon Sep 17 00:00:00 2001 From: san7890 Date: Mon, 12 Sep 2022 20:29:39 -0600 Subject: [PATCH] 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. --- code/modules/admin/verbs/mapping.dm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/modules/admin/verbs/mapping.dm b/code/modules/admin/verbs/mapping.dm index 19135792da1..987bf01ce4e 100644 --- a/code/modules/admin/verbs/mapping.dm +++ b/code/modules/admin/verbs/mapping.dm @@ -324,7 +324,7 @@ GLOBAL_VAR_INIT(say_disabled, FALSE) var/list/z_list = SSmapping.z_list var/list/messages = list() - messages += "World: [world.maxx] x [world.maxy] x [world.maxz]
" + messages += "World: [world.maxx] x [world.maxy] x [world.maxz]

" 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 += "" + messages += "
" 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 += "" messages += "
[part.Join("")]
" - 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"