Files
Bubberstation/code/game/objects/items/paiwire.dm
ShizCalev 52afb7d200 Cleans up paicard and aicard code (#52575)
* Cleans up paicard and aicard code

* fix

* more fixes
2020-08-01 05:45:33 -04:00

19 lines
716 B
Plaintext

/obj/item/pai_cable
desc = "A flexible coated cable with a universal jack on one end."
name = "data cable"
icon = 'icons/obj/power.dmi'
icon_state = "wire1"
item_flags = NOBLUDGEON
var/obj/machinery/machine //what machine we're currently hacking.
/obj/item/pai_cable/machine/Destroy()
machine = null
return ..()
/obj/item/pai_cable/proc/plugin(obj/machinery/M, mob/living/user)
if(!user.transferItemToLoc(src, M))
return
user.visible_message("<span class='notice'>[user] inserts [src] into a data port on [M].</span>", "<span class='notice'>You insert [src] into a data port on [M].</span>", "<span class='hear'>You hear the satisfying click of a wire jack fastening into place.</span>")
machine = M