mirror of
https://github.com/KabKebab/GS13.git
synced 2026-07-11 07:59:08 +01:00
more door
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -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 ..()
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user