Migrates /obj/item/clothing to the New Attack Chain (#31421)

* the beginning of my torment

* This was a very small piece of torment

* God agghhghhhh the suffering

* pain and suffering and destruction

* Update bot_construction.dm

* Update heretic_necks.dm

* Update heretic_armor.dm

* Apply suggestions from code review

Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com>
Signed-off-by: CRUNCH <143041327+CRUNCH-Borg@users.noreply.github.com>

* Apply suggestion from @DGamerL

Signed-off-by: DGamerL <108773801+DGamerL@users.noreply.github.com>

---------

Signed-off-by: CRUNCH <143041327+CRUNCH-Borg@users.noreply.github.com>
Signed-off-by: DGamerL <108773801+DGamerL@users.noreply.github.com>
Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com>
This commit is contained in:
CRUNCH
2026-02-09 19:36:38 +00:00
committed by GitHub
co-authored by DGamerL
parent 2a7c121485
commit bec388228b
42 changed files with 672 additions and 419 deletions
@@ -36,8 +36,11 @@
if(obj_integrity < 90)
Die()
/obj/item/clothing/mask/facehugger/attackby__legacy__attackchain(obj/item/O, mob/user, params)
return O.attack_obj__legacy__attackchain(src, user, params)
/obj/item/clothing/mask/facehugger/item_interaction(mob/living/user, obj/item/used, list/modifiers)
if(!attack_obj(src, user, modifiers))
return used.attack_obj__legacy__attackchain(src, user, modifiers)
return ITEM_INTERACT_COMPLETE
/obj/item/clothing/mask/facehugger/attack_hand(mob/user)
if((stat != DEAD && !sterile) && !isalien(user))
@@ -45,10 +48,12 @@
return
..()
/obj/item/clothing/mask/facehugger/attack__legacy__attackchain(mob/living/M, mob/user)
..()
/obj/item/clothing/mask/facehugger/interact_with_atom(atom/target, mob/living/user, list/modifiers)
if(!ishuman(target))
return ..()
user.drop_item_to_ground(src)
Attach(M)
Attach(target)
/obj/item/clothing/mask/facehugger/examine(mob/user)
. = ..()
@@ -347,7 +347,7 @@
I.in_storage = TRUE
if(ITEM_SLOT_ACCESSORY)
var/obj/item/clothing/under/uniform = src.w_uniform
uniform.attackby__legacy__attackchain(I, src)
uniform.item_interaction(src, I)
else
to_chat(src, SPAN_WARNING("You are trying to equip this item to an unsupported inventory slot. Report this to a coder!"))
@@ -432,22 +432,21 @@
var/build_step = 0
var/robot_arm = /obj/item/robot_parts/l_arm
/obj/item/clothing/head/helmet/attackby__legacy__attackchain(obj/item/assembly/signaler/S, mob/user, params)
..()
if(!issignaler(S))
..()
return
/obj/item/clothing/head/helmet/item_interaction(mob/living/user, obj/item/used, list/modifiers)
if(!issignaler(used))
return ..()
var/obj/item/assembly/signaler/S
if(S.secured)
to_chat(user, SPAN_NOTICE("[S] is secured."))
return
qdel(S)
to_chat(user, SPAN_WARNING("[S] is secured!"))
return ITEM_INTERACT_COMPLETE
qdel(used)
var/obj/item/secbot_assembly/A = new /obj/item/secbot_assembly
user.put_in_hands(A)
to_chat(user, SPAN_NOTICE("You add the signaler to the helmet."))
to_chat(user, SPAN_NOTICE("You add [used] to the helmet."))
user.unequip(src, force = TRUE)
qdel(src)
return ITEM_INTERACT_COMPLETE
/obj/item/secbot_assembly/attackby__legacy__attackchain(obj/item/I, mob/user, params)
..()