Fixes head protector modules doing...nothing (#84346)

## About The Pull Request

The head protector module actually applies the trait appropriately.

## Why It's Good For The Game

Apparently head protection started at the hands.

## Changelog
🆑
fix: Headprotector modules and constructor modules work properly once
more.
/🆑
This commit is contained in:
necromanceranne
2024-06-27 13:52:28 +10:00
committed by GitHub
parent 9613477243
commit 044e2cebce
@@ -218,10 +218,10 @@
incompatible_modules = list(/obj/item/mod/module/armor_booster, /obj/item/mod/module/infiltrator)
required_slots = list(ITEM_SLOT_HEAD)
/obj/item/mod/module/constructor/on_suit_activation()
/obj/item/mod/module/headprotector/on_suit_activation()
ADD_TRAIT(mod.wearer, TRAIT_HEAD_INJURY_BLOCKED, MOD_TRAIT)
/obj/item/mod/module/constructor/on_suit_deactivation(deleting = FALSE)
/obj/item/mod/module/headprotector/on_suit_deactivation(deleting = FALSE)
REMOVE_TRAIT(mod.wearer, TRAIT_HEAD_INJURY_BLOCKED, MOD_TRAIT)
///Mister - Sprays water over an area.