diff --git a/GainStation13/code/obj/structure/airlock.dm b/GainStation13/code/obj/structure/airlock.dm index 7e5417c5..54ec3e29 100644 --- a/GainStation13/code/obj/structure/airlock.dm +++ b/GainStation13/code/obj/structure/airlock.dm @@ -1,10 +1,10 @@ -/obj/machinery/door/airlock +/obj/machinery/door var/fatness_to_check = 0 var/check_fatness = FALSE - var/check_below = FALSE + var/check_fatness_below = FALSE -/obj/machinery/door/airlock/proc/change_fatness_to_check(mob/user) +/obj/machinery/door/proc/change_fatness_to_check(mob/user) var/fatness_type = input(usr, "What level of fatness do you wish to alert above/under at?", src, "None") as null|anything in list( diff --git a/code/game/machinery/doors/door.dm b/code/game/machinery/doors/door.dm index 9485a1ce..08e8d0aa 100644 --- a/code/game/machinery/doors/door.dm +++ b/code/game/machinery/doors/door.dm @@ -178,9 +178,9 @@ //GS13 EDIT var/mob/living/carbon/human/bump_mob = M if(check_fatness && istype(bump_mob)) - if(check_below && (bump_mob.fatness >= fatness_to_check)) + if(check_fatness_below && (bump_mob.fatness >= fatness_to_check)) return FALSE - if(!check_below && (bump_mob.fatness < fatness_to_check)) + if(!check_fatness_below && (bump_mob.fatness < fatness_to_check)) return FALSE return ..() diff --git a/tgstation.dme b/tgstation.dme index c782b0e1..857ac0ea 100644 --- a/tgstation.dme +++ b/tgstation.dme @@ -3129,6 +3129,7 @@ #include "GainStation13\code\obj\items\holy.dm" #include "GainStation13\code\obj\items\minor_items.dm" #include "GainStation13\code\obj\items\sensors\weight_infared.dm" +#include "GainStation13\code\obj\structure\airlock.dm" #include "GainStation13\code\obj\structure\calorite_doors.dm" #include "GainStation13\code\obj\structure\candylight.dm" #include "GainStation13\code\obj\structure\fountain.dm"