Some ITEM_SLOT bitflags fixes. (#92441)

## About The Pull Request

This PR fixes wrong usage of bitflags in a few places, where instead of
bitfields lists were used.

## Why It's Good For The Game

It will help prevent problems that can be a thing in the future,
improving consistency of the codebase.
This commit is contained in:
SSensum13
2025-08-19 22:30:33 -04:00
committed by nevimer
parent d9cf82b14d
commit 99d95aae62
12 changed files with 22 additions and 20 deletions
+1 -1
View File
@@ -1057,7 +1057,7 @@
/obj/item/mod/module/hearing_protection/on_part_activation()
var/obj/item/clothing/head_cover = mod.get_part_from_slot(ITEM_SLOT_HEAD) || mod.get_part_from_slot(ITEM_SLOT_MASK) || mod.get_part_from_slot(ITEM_SLOT_EYES)
if(istype(head_cover))
head_cover.AddComponent(/datum/component/wearertargeting/earprotection, list(ITEM_SLOT_HEAD))
head_cover.AddComponent(/datum/component/wearertargeting/earprotection)
var/datum/component/wearertargeting/earprotection/protection = head_cover.GetComponent(/datum/component/wearertargeting/earprotection)
protection.on_equip(src, mod.wearer, ITEM_SLOT_HEAD)