More clothing use the clothing_traits var. Accessories can use it as well now. (#96455)

## About The Pull Request
While working on some other PR, something caught my eyes. Some clothing
still use the old method of `equipped()` and `dropped()` overrides for
adding traits to the wearer when we already have a clothing_traits
variable to streamline this behavior. This should make short work of
that.

This also improves the accessories code a tiny bit by giving two of the
procs apter names and implements the clothing_traits var onto
accessories as well.

## Why It's Good For The Game
Better, shorter code.

## Changelog
N/A, if something breaks and goes undetected, then we need more unit
tests.
This commit is contained in:
Ghom
2026-06-13 14:47:30 -07:00
committed by GitHub
parent fe9e43082a
commit eeaa123cd5
8 changed files with 22 additions and 44 deletions
@@ -78,7 +78,7 @@
var/obj/item/clothing/under/misc/syndicate_souvenir/souvenir = new(loc)
humie.equip_to_slot_if_possible(souvenir, ITEM_SLOT_ICLOTHING, indirect_action = TRUE)
var/obj/item/clothing/accessory/anti_sec_pin/pin = new(loc)
pin.attach(souvenir)
pin.try_attach(souvenir)
if(isnull(humie.w_uniform))
//FUCKING SLAVES, GET YOUR CLOTHES BACK ON!