Migrate PAI data cable to the new attack chain. (#32213)

* Migrate PAI data cable to the new attack chain.

* Include paradise.dme.

* Apply suggestions from CRUNCH review

Co-authored-by: CRUNCH <143041327+CRUNCH-Borg@users.noreply.github.com>
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-07-17 06:20:36 +00:00
committed by GitHub
co-authored by CRUNCH
parent 3410d6dd2d
commit 3a9d3522b0
4 changed files with 28 additions and 20 deletions
-11
View File
@@ -1,11 +0,0 @@
/obj/item/pai_cable/proc/plugin(obj/machinery/M as obj, mob/user as mob)
if(isairlock(M) || istype(M, /obj/machinery/camera))
user.visible_message("[user] inserts [src] into a data port on [M].", "You insert [src] into a data port on [M].", "You hear the satisfying click of a wire jack fastening into place.")
user.drop_item()
src.loc = M
src.machine = M
else
user.visible_message("[user] dumbly fumbles to find a place on [M] to plug in [src].", "There aren't any ports on [M] that match the jack belonging to [src].")
/obj/item/pai_cable/attack__legacy__attackchain(obj/machinery/M as obj, mob/user as mob)
src.plugin(M, user)
@@ -12,7 +12,6 @@
Kidan Globe
Lightning
Newton Cradle
PAI cable
Red Phone
Popsicle Sticks
*/
@@ -229,13 +228,6 @@
icon_state = "newton"
desc = "A device bored paper pushers use to remind themselves that time did not stop yet. Contains gravity."
/obj/item/pai_cable
name = "data cable"
desc = "A flexible coated cable with a universal jack on one end."
icon = 'icons/obj/power.dmi'
icon_state = "wire1"
var/obj/machinery/machine
/obj/item/phone
name = "red phone"
desc = "Should anything ever go wrong..."
@@ -427,3 +427,31 @@
data["burn"] = held.getFireLoss()
return data
/obj/item/pai_cable
name = "data cable"
desc = "A flexible coated cable with a universal jack on one end."
icon = 'icons/obj/power.dmi'
icon_state = "wire1"
var/obj/machinery/machine
new_attack_chain = TRUE
/obj/item/pai_cable/proc/plugin(obj/machinery/target, mob/user)
if(!(isairlock(target) || istype(target, /obj/machinery/camera)))
user.visible_message(
SPAN_WARNING("[user] dumbly fumbles to find a place on [target] to plug in [src]."),
SPAN_WARNING("There aren't any ports on [target] that match the jack belonging to [src].")
)
return
user.visible_message(
SPAN_WARNING("[user] inserts [src] into a data port on [target]!"),
SPAN_NOTICE("You insert [src] into a data port on [target]."),
SPAN_HEAR("You hear the satisfying click of a wire jack fastening into place.")
)
user.drop_item()
src.loc = target
src.machine = target
/obj/item/pai_cable/interact_with_atom(obj/machinery/target, mob/living/user, list/modifiers)
src.plugin(target, user)
return ITEM_INTERACT_COMPLETE
-1
View File
@@ -1332,7 +1332,6 @@
#include "code\game\objects\items\latexballoon.dm"
#include "code\game\objects\items\lighters.dm"
#include "code\game\objects\items\paint_bucket.dm"
#include "code\game\objects\items\paiwire.dm"
#include "code\game\objects\items\picket_signs.dm"
#include "code\game\objects\items\random_items.dm"
#include "code\game\objects\items\RCD.dm"