diff --git a/code/game/objects/structures/false_walls.dm b/code/game/objects/structures/false_walls.dm index 039c9dbbc25..fbd1fe7d21d 100644 --- a/code/game/objects/structures/false_walls.dm +++ b/code/game/objects/structures/false_walls.dm @@ -19,6 +19,9 @@ if(T && istype(T,/turf/simulated) && T.zone) var/datum/gas_mixture/environment = T.return_air() cp = environment.return_pressure() + else + if(istype(T,/turf/simulated)) + continue if(cpmaxp)maxp=cp return abs(minp-maxp) @@ -46,6 +49,25 @@ return pdiff return 0 +/client/verb/pdiff() + set name = "Get PDiff" + set category = "Debug" + + if(!mob || !holder) + return + var/turf/T = mob.loc + + if (!( istype(T, /turf) )) + return + + var/pdiff = getOPressureDifferential(T) + var/fwpcheck=performFalseWallPressureCheck(T) + var/wpcheck=performWallPressureCheck(T) + + src << "Pressure Differential (cardinals): [pdiff]" + src << "FWPCheck: [fwpcheck]" + src << "WPCheck: [wpcheck]" + /obj/structure/falsewall name = "wall" desc = "A huge chunk of metal used to seperate rooms." diff --git a/code/modules/admin/verbs/debug.dm b/code/modules/admin/verbs/debug.dm index 5c85172e075..f98da60e45c 100644 --- a/code/modules/admin/verbs/debug.dm +++ b/code/modules/admin/verbs/debug.dm @@ -146,6 +146,7 @@ But you can call procs that are of type /mob/living/carbon/human/proc/ for that t+= "Oxygen : [env.oxygen]\n" t+= "Plasma : [env.toxins]\n" t+= "CO2: [env.carbon_dioxide]\n" + t+= "Pressure: [env.return_pressure()]\n" usr.show_message(t, 1) feedback_add_details("admin_verb","ASL") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!