From 001f651b64adc9e1764b1d16a020447c7054df7c Mon Sep 17 00:00:00 2001 From: NovaBot <154629622+NovaBot13@users.noreply.github.com> Date: Mon, 15 Apr 2024 20:06:15 -0400 Subject: [PATCH] [MIRROR] fixes the strip menu being able to change locked sensors (#2004) * fixes the strip menu being able to change locked sensors (#82662) ## About The Pull Request the strip menu sensor change doesn't check for sensors being locked (eg prisoner jumpsuit) so you can just have someone turn them off which isn't intentional i dont think * fixes the strip menu being able to change locked sensors --------- Co-authored-by: TheRyeGuyWhoWillNowDie <70169560+TheRyeGuyWhoWillNowDie@users.noreply.github.com> --- code/modules/mob/living/carbon/human/human_stripping.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/modules/mob/living/carbon/human/human_stripping.dm b/code/modules/mob/living/carbon/human/human_stripping.dm index 9250c90c8ff..3f603fd6d7b 100644 --- a/code/modules/mob/living/carbon/human/human_stripping.dm +++ b/code/modules/mob/living/carbon/human/human_stripping.dm @@ -51,7 +51,7 @@ GLOBAL_LIST_INIT(strippable_human_items, create_strippable_list(list( return null var/list/actions = list() - if(jumpsuit.has_sensor) + if(jumpsuit.has_sensor == HAS_SENSORS) actions += "adjust_sensor" if(jumpsuit.can_adjust) actions += "adjust_jumpsuit" @@ -88,7 +88,7 @@ GLOBAL_LIST_INIT(strippable_human_items, create_strippable_list(list( mob_source.update_body() /datum/strippable_item/mob_item_slot/jumpsuit/proc/do_adjust_sensor(atom/source, mob/user, obj/item/clothing/under/jumpsuit) - if(!jumpsuit.has_sensor) + if(jumpsuit.has_sensor != HAS_SENSORS) return var/static/list/sensor_mode_text_to_num = list(