Files
Bubberstation/code/game/objects/items/paiwire.dm
SkyratBot 32bc9a96b6 [MIRROR] General pAI code improvements [MDB IGNORE] (#10683)
* General pAI code improvements

* Feex

Co-authored-by: John Willard <53777086+JohnFulpWillard@users.noreply.github.com>
Co-authored-by: GoldenAlpharex <58045821+GoldenAlpharex@users.noreply.github.com>
2022-01-16 17:40:00 +00:00

19 lines
663 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/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_notice("[user] inserts [src] into a data port on [M]."), span_notice("You insert [src] into a data port on [M]."), span_hear("You hear the satisfying click of a wire jack fastening into place."))
machine = M