/client/proc map_debug_panel() set category = "Debug" var/area_txt = "APC LOCATION REPORT
" var/list/ghistogram = new var/list/ughistogram = new var/p for(var/datum/air_group/g in air_master.air_groups) if (g.group_processing) for(var/turf/simulated/member in g.members) p = round(max(-1, member.air.return_pressure()), 10)/10 + 1 if (p > ghistogram.len) ghistogram.len = p ghistogram[p]++ else for(var/turf/simulated/member in g.members) p = round(max(-1, member.air.return_pressure()), 10)/10 + 1 if (p > ughistogram.len) ughistogram.len = p ughistogram[p]++ html += "Group processing tiles pressure histogram data:\n" for(var/i=1,i<=ghistogram.len,i++) html += "[10*(i-1)]\t\t[ghistogram[i]]\n" html += "Non-group processing tiles pressure histogram data:\n" for(var/i=1,i<=ughistogram.len,i++) html += "[10*(i-1)]\t\t[ughistogram[i]]\n" return html air_status(turf/target as turf) set category = "Debug" set name = "Air Status" if(!isturf(target)) return var/datum/gas_mixture/GM = target.return_air() var/burning = 0 if(istype(target, /turf/simulated)) var/turf/simulated/T = target if(T.active_hotspot) burning = 1 boutput(usr, "@[target.x],[target.y] ([GM.group_multiplier]): O:[GM.oxygen] T:[GM.toxins] N:[GM.nitrogen] C:[GM.carbon_dioxide] w [GM.temperature] Kelvin, [GM.return_pressure()] kPa [(burning)?("BURNING"):(null)]") if(GM.trace_gases) for(var/datum/gas/trace_gas in GM.trace_gases) boutput(usr, "[trace_gas.type]: [trace_gas.moles]") fix_next_move() set category = "Debug" set name = "Press this if everybody freezes up" var/largest_click_time = 0 var/mob/largest_click_mob = null if (disable_next_click) boutput(usr, "next_click is disabled and therefore so is this command!") return for(var/mob/M in mobs) if(!M.client) continue if(M.next_click >= largest_click_time) largest_click_mob = M if(M.next_click > world.time) largest_click_time = M.next_click - world.time else largest_click_time = 0 logTheThing("admin", M, null, "lastDblClick = [M.next_click] world.time = [world.time]") logTheThing("diary", M, null, "lastDblClick = [M.next_click] world.time = [world.time]", "admin") M.next_click = 0 message_admins("[key_name(largest_click_mob, 1)] had the largest click delay with [largest_click_time] frames / [largest_click_time/10] seconds!") message_admins("world.time = [world.time]") return