/
githubmirror
/
vgstation13
Обзор
Документация
Войти
/
githubmirror
/
vgstation13
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
Bleeding-Edge
code/modules/ZAS/Diagnostic.dm
73 строки
2 KB
ShiftyRail
Moves around a bunch of stuff in the codebase. Add a file explaining the general structure of the codebase. (#37568)
19 май 2025, 16:41
Не верифицирован
19 май 2025, 16:41
1e1de9e
Код
Авторство
О чём код?
/client/proc/Zone_Info(turf/T as null|turf) set category = "Debug" if(T) if(istype(T,/turf/simulated) && T:zone) T:zone:dbg_data(src) else to_chat(mob, "No zone here.") var/datum/gas_mixture/mix = T.return_air() to_chat(mob, "[mix.return_pressure()] kPa [mix.temperature]C") to_chat(mob, "O2: [mix[GAS_OXYGEN]] N2: [mix[GAS_NITROGEN]] CO2: [mix[GAS_CARBON]] TX: [mix[GAS_PLASMA]]") else if(zone_debug_images) for(var/zone in zone_debug_images) images -= zone_debug_images[zone] zone_debug_images = null /client/var/list/zone_debug_images /client/proc/Test_ZAS_Connection(var/turf/simulated/T as turf) set category = "Debug" if(!istype(T)) return var/direction_list = list(\ "North" = NORTH,\ "South" = SOUTH,\ "East" = EAST,\ "West" = WEST,\ "N/A" = null) var/direction = input("What direction do you wish to test?","Set direction") as null|anything in direction_list if(!direction) return if(direction == "N/A") if(!(T.c_airblock(T) & AIR_BLOCKED)) to_chat(mob, "The turf can pass air! :D") else to_chat(mob, "No air passage :x") return var/turf/simulated/other_turf = get_step(T, direction_list[direction]) if(!istype(other_turf)) return var/t_block = T.c_airblock(other_turf) var/o_block = other_turf.c_airblock(T) if(o_block & AIR_BLOCKED) if(t_block & AIR_BLOCKED) to_chat(mob, "Neither turf can connect. :(") else to_chat(mob, "The initial turf only can connect. :\\") else if(t_block & AIR_BLOCKED) to_chat(mob, "The other turf can connect, but not the initial turf. :/") else to_chat(mob, "Both turfs can connect! :)") to_chat(mob, "Additionally, \...") if(o_block & ZONE_BLOCKED) if(t_block & ZONE_BLOCKED) to_chat(mob, "neither turf can merge.") else to_chat(mob, "the other turf cannot merge.") else if(t_block & ZONE_BLOCKED) to_chat(mob, "the initial turf cannot merge.") else to_chat(mob, "both turfs can merge.")