mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-21 03:59:59 +01:00
[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:
@@ -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()
|
||||
. = ..()
|
||||
|
||||
@@ -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()
|
||||
. = ..()
|
||||
|
||||
Reference in New Issue
Block a user