Skip to content

Commit

Permalink
[MIRROR] fixes the strip menu being able to change locked sensors (#2004
Browse files Browse the repository at this point in the history
)

* 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 <[email protected]>
  • Loading branch information
2 people authored and StealsThePRs committed Apr 16, 2024
1 parent e6d4484 commit 001f651
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/modules/mob/living/carbon/human/human_stripping.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 001f651

Please sign in to comment.