[MIRROR] Fixes clothing fixing one more time (#255)

* Fixes clothing fixing one more time (#52789)

* this better be the last time i s2g

* sensor

* remove return

* cap it

* Fixes clothing fixing one more time

Co-authored-by: Ryll Ryll <3589655+Ryll-Ryll@users.noreply.github.com>
This commit is contained in:
SkyratBot
2020-08-10 17:32:30 +01:00
committed by GitHub
co-authored by Ryll Ryll
parent d78d050999
commit d597551def
2 changed files with 5 additions and 3 deletions
+2 -2
View File
@@ -358,8 +358,8 @@
to_chat(M, "<span class='warning'>[src] start[p_s()] to fall apart!</span>")
//This mostly exists so subtypes can call appriopriate update icon calls on the wearer.
/obj/item/clothing/proc/update_clothes_damaged_state()
return
/obj/item/clothing/proc/update_clothes_damaged_state(damaged_state = CLOTHING_DAMAGED)
damaged_clothes = damaged_state
/obj/item/clothing/update_overlays()
. = ..()
+3 -1
View File
@@ -47,8 +47,10 @@
if(ismob(loc))
var/mob/M = loc
M.update_inv_w_uniform()
if(has_sensor > NO_SENSORS)
if(damaged_state == CLOTHING_SHREDDED && has_sensor > NO_SENSORS)
has_sensor = BROKEN_SENSORS
else if(damaged_state == CLOTHING_PRISTINE && has_sensor == BROKEN_SENSORS)
has_sensor = HAS_SENSORS
/obj/item/clothing/under/Initialize()
. = ..()