Migrates /obj/item/stack to the new attack chain (#31709)

* e

* stuff not in the stack folder

* A

* Update gift_wrappaper.dm

* golg

* dancing around SHOULD_NOT_SLEEP and storage still being legacy

* Update asteroid_floors.dm

* Update medical_packs.dm

* Update medical_packs.dm
This commit is contained in:
CRUNCH
2026-04-02 03:32:15 +01:00
committed by GitHub
parent 07b4ab0b4c
commit d030b8afb8
20 changed files with 559 additions and 434 deletions
@@ -47,18 +47,24 @@ GLOBAL_LIST_INIT(marker_beacon_colors, list(
/obj/item/stack/marker_beacon/update_icon_state()
icon_state = "[base_icon_state][lowertext(picked_color)]"
/obj/item/stack/marker_beacon/attack_self__legacy__attackchain(mob/user)
/obj/item/stack/marker_beacon/activate_self(mob/user)
if(..())
return ITEM_INTERACT_COMPLETE
if(!isturf(user.loc))
to_chat(user, SPAN_WARNING("You need more space to place a [singular_name] here."))
return
return ITEM_INTERACT_COMPLETE
if(locate(/obj/structure/marker_beacon) in user.loc)
to_chat(user, SPAN_WARNING("There is already a [singular_name] here."))
return
return ITEM_INTERACT_COMPLETE
if(use(1))
to_chat(user, SPAN_NOTICE("You activate and anchor [amount ? "a":"the"] [singular_name] in place."))
playsound(user, 'sound/machines/click.ogg', 50, 1)
var/obj/structure/marker_beacon/M = new(user.loc, picked_color)
transfer_fingerprints_to(M)
return ITEM_INTERACT_COMPLETE
/obj/item/stack/marker_beacon/AltClick(mob/living/user)
if(!istype(user) || ui_status(user, GLOB.physical_state) != UI_INTERACTIVE)