Attack chain migration: structures. (#30365)

* Attack chain migration: structures.

* whoops

* wth
This commit is contained in:
warriorstar-orion
2025-09-14 19:21:36 +00:00
committed by GitHub
parent cd7b4e7292
commit 3208049a8a
87 changed files with 1396 additions and 404 deletions
+2 -1
View File
@@ -83,7 +83,8 @@ By design, d1 is the smallest direction and d2 is the highest
// - Cable coil : merge cables
// - Multitool : get the power currently passing through the cable
//
/obj/structure/cable/attackby__legacy__attackchain(obj/item/W, mob/user)
/obj/structure/cable/item_interaction(mob/living/user, obj/item/W, list/modifiers)
. = ITEM_INTERACT_COMPLETE
var/turf/T = get_turf(src)
if(T.transparent_floor || T.intact)
to_chat(user, "<span class='danger'>You can't interact with something that's under the floor!</span>")
@@ -163,7 +163,7 @@ So, hopefully this is helpful if any more icons are to be added/changed/wonderin
return 1
return 0
/obj/structure/particle_accelerator/attackby__legacy__attackchain(obj/item/W, mob/user, params)
/obj/structure/particle_accelerator/item_interaction(mob/living/user, obj/item/W, list/modifiers)
if(!iscoil(W))
return ..()
if(construction_state == ACCELERATOR_WRENCHED)
@@ -174,6 +174,7 @@ So, hopefully this is helpful if any more icons are to be added/changed/wonderin
"You add some wires.")
construction_state = ACCELERATOR_WIRED
update_icon()
return ITEM_INTERACT_COMPLETE
/obj/structure/particle_accelerator/screwdriver_act(mob/user, obj/item/I)
if(construction_state != ACCELERATOR_WIRED && construction_state != ACCELERATOR_READY)