trapdoor remote attackby to item_interaction (#91935)

## About The Pull Request
title
removed to_chats because the balloon alerts are more fitting here and
you don't need to look back at your chat for any information on these
## Changelog
🆑
refactor: refactored trapdoor remote interaction code
/🆑
This commit is contained in:
grungussuss
2025-07-06 21:07:51 +02:00
committed by GitHub
parent a314180521
commit ddf4553787
+8 -8
View File
@@ -334,16 +334,16 @@
internals.forceMove(get_turf(src))
internals = null
/obj/item/trapdoor_remote/attackby(obj/item/assembly/trapdoor/assembly, mob/living/user, list/modifiers, list/attack_modifiers)
. = ..()
if(. || !istype(assembly))
return
/obj/item/trapdoor_remote/item_interaction(mob/living/user, obj/item/assembly/trapdoor/assembly, list/modifiers)
if(!istype(assembly))
return NONE
if(internals)
to_chat(user, span_warning("[src] already has internals!"))
return
to_chat(user, span_notice("You add [assembly] to [src]."))
balloon_alert(user, "doesn't fit!")
return ITEM_INTERACT_BLOCKING
balloon_alert(user, "added")
internals = assembly
assembly.forceMove(src)
user.transferItemToLoc(assembly, src)
return ITEM_INTERACT_SUCCESS
/obj/item/trapdoor_remote/attack_self(mob/user, modifiers)
. = ..()