Skip to content

Commit

Permalink
Update clothing_accessories.dm
Browse files Browse the repository at this point in the history
  • Loading branch information
AndroBetel committed May 31, 2024
1 parent d03bb8f commit 3d0eab5
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions code/modules/clothing/clothing_accessories.dm
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,14 @@

A.on_removed(user, src)
LAZYREMOVE(accessories, A)
var/list/removables = list()
for(var/obj/item/clothing/accessory/accessory in accessories)
if(accessory.removable)
removables += accessory

if(!LAZYLEN(removables))
verbs -= /obj/item/clothing/proc/removetie_verb

update_clothing_icon()

/obj/item/clothing/proc/removetie_verb()
Expand Down Expand Up @@ -154,9 +162,6 @@
to_chat(user, SPAN_WARNING("You're too far away!"))
return

if(!LAZYLEN(removables))
verbs -= /obj/item/clothing/proc/removetie_verb

return accessory

/obj/item/clothing/emp_act(severity)
Expand Down

0 comments on commit 3d0eab5

Please sign in to comment.