Migrate telepad beacon to the new attack chain. (#32242)

* Migrate telepad and beacon to the new attack chain.

* Remove duplicate var.

Signed-off-by: Alan <alfalfascout@users.noreply.github.com>

* Apply suggestion from CRUNCH review.

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

---------

Signed-off-by: Alan <alfalfascout@users.noreply.github.com>
Co-authored-by: CRUNCH <143041327+CRUNCH-Borg@users.noreply.github.com>
This commit is contained in:
Alan
2026-08-01 06:08:56 +00:00
committed by GitHub
co-authored by CRUNCH
parent 7491215fd7
commit 059d7cd959
+9 -8
View File
@@ -89,7 +89,6 @@
new /obj/item/stack/sheet/glass(loc)
..()
///TELEPAD CALLER///
/obj/item/telepad_beacon
name = "telepad beacon"
@@ -99,11 +98,13 @@
inhand_icon_state = "signaler"
origin_tech = "bluespace=3"
materials = list(MAT_METAL = 2000, MAT_GLASS = 1750, MAT_SILVER = 500)
new_attack_chain = TRUE
/obj/item/telepad_beacon/attack_self__legacy__attackchain(mob/user as mob)
if(user)
to_chat(user, "<span class = 'caution'> Locked In</span>")
new /obj/machinery/telepad_cargo(user.loc)
playsound(src, 'sound/effects/pop.ogg', 100, TRUE, 1)
qdel(src)
return
/obj/item/telepad_beacon/activate_self(mob/user)
if(!user)
return ..()
to_chat(user, SPAN_CAUTION("Locked In."))
new /obj/machinery/telepad_cargo(user.loc)
playsound(src, 'sound/effects/pop.ogg', 100, TRUE, 1)
qdel(src)
return ITEM_INTERACT_COMPLETE