mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 10:21:11 +00:00
62 lines
1.7 KiB
Plaintext
62 lines
1.7 KiB
Plaintext
|
|
client/verb/Zone_Info(turf/T as null|turf)
|
|
set category = "Debug"
|
|
if(T)
|
|
if(T.zone)
|
|
T.zone.DebugDisplay(mob)
|
|
else
|
|
mob << "No zone here."
|
|
else
|
|
for(T in world)
|
|
T.overlays -= 'debug_space.dmi'
|
|
T.overlays -= 'debug_group.dmi'
|
|
T.overlays -= 'debug_connect.dmi'
|
|
|
|
zone/proc
|
|
DebugDisplay(mob/M)
|
|
if(!dbg_output)
|
|
dbg_output = 1 //Don't want to be spammed when someone investigates a zone...
|
|
for(var/turf/T in contents)
|
|
T.overlays += 'debug_group.dmi'
|
|
|
|
for(var/turf/space/S in space_tiles)
|
|
S.overlays += 'debug_space.dmi'
|
|
|
|
M << "<u>Zone Air Contents</u>"
|
|
M << "Oxygen: [air.oxygen]"
|
|
M << "Nitrogen: [air.nitrogen]"
|
|
M << "Plasma: [air.toxins]"
|
|
M << "Carbon Dioxide: [air.carbon_dioxide]"
|
|
M << "Temperature: [air.temperature]"
|
|
M << "Heat Energy: [air.temperature * air.heat_capacity()]"
|
|
M << "Pressure: [air.return_pressure()]"
|
|
M << ""
|
|
M << "Space Tiles: [length(space_tiles)]"
|
|
M << "Movable Objects: [length(movable_objects)]"
|
|
M << "<u>Connections: [length(connections)]</u>"
|
|
|
|
for(var/connection/C in connections)
|
|
M << "[C.A] --> [C.B] [(C.indirect?"Indirect":"Direct")]"
|
|
C.A.overlays += 'debug_connect.dmi'
|
|
C.B.overlays += 'debug_connect.dmi'
|
|
spawn(50)
|
|
C.A.overlays -= 'debug_connect.dmi'
|
|
C.B.overlays -= 'debug_connect.dmi'
|
|
for(var/C in connections)
|
|
if(!istype(C,/connection))
|
|
M << "[C] (Not Connection!)"
|
|
|
|
else
|
|
dbg_output = 0
|
|
|
|
for(var/turf/T in contents)
|
|
T.overlays -= 'debug_group.dmi'
|
|
|
|
for(var/turf/space/S in space_tiles)
|
|
S.overlays -= 'debug_space.dmi'
|
|
for(var/zone/Z in zones)
|
|
if(Z.air == air && Z != src)
|
|
var/turf/zloc = pick(Z.contents)
|
|
M << "\red Illegal air datum shared by: [zloc.loc.name]"
|
|
|