mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 12:07:27 +01:00
Attack chain migration: structures. (#30365)
* Attack chain migration: structures. * whoops * wth
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user