From ac0d2619599fc5d40c9dbec7934672148b4f7901 Mon Sep 17 00:00:00 2001 From: Blue Wildrose Date: Fri, 26 Mar 2021 20:03:19 -0700 Subject: [PATCH 1/2] can't repair unless absolutely broken no more --- code/modules/clothing/under/_under.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/clothing/under/_under.dm b/code/modules/clothing/under/_under.dm index a26d8fe791..1b8aaa0085 100644 --- a/code/modules/clothing/under/_under.dm +++ b/code/modules/clothing/under/_under.dm @@ -34,7 +34,7 @@ . += accessory_overlay /obj/item/clothing/under/attackby(obj/item/I, mob/user, params) - if((has_sensor == BROKEN_SENSORS) && istype(I, /obj/item/stack/cable_coil)) + if((has_sensor < HAS_SENSORS) && (has_sensor != NO_SENSORS) && istype(I, /obj/item/stack/cable_coil)) if(damaged_clothes == CLOTHING_SHREDDED) to_chat(user,"[src] is too damaged to have its suit sensors repaired! Repair it first.") return 0 From f6b3ef0893da54bb8b1f5fbcc81bc94bafb8a660 Mon Sep 17 00:00:00 2001 From: Blue Wildrose Date: Fri, 26 Mar 2021 20:11:26 -0700 Subject: [PATCH 2/2] probably a better way of setting this up --- code/modules/clothing/under/_under.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/clothing/under/_under.dm b/code/modules/clothing/under/_under.dm index 1b8aaa0085..59af632d2a 100644 --- a/code/modules/clothing/under/_under.dm +++ b/code/modules/clothing/under/_under.dm @@ -34,7 +34,7 @@ . += accessory_overlay /obj/item/clothing/under/attackby(obj/item/I, mob/user, params) - if((has_sensor < HAS_SENSORS) && (has_sensor != NO_SENSORS) && istype(I, /obj/item/stack/cable_coil)) + if((sensordamage || (has_sensor < HAS_SENSORS && has_sensor != NO_SENSORS)) && istype(I, /obj/item/stack/cable_coil)) if(damaged_clothes == CLOTHING_SHREDDED) to_chat(user,"[src] is too damaged to have its suit sensors repaired! Repair it first.") return 0