mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-31 03:52:31 +00:00
* Refactors most spans into span procs * AA * a * AAAAAAAAAAAAAAAAAAAAAA * Update species.dm Co-authored-by: Watermelon914 <37270891+Watermelon914@users.noreply.github.com> Co-authored-by: Gandalf <jzo123@hotmail.com>
19 lines
671 B
Plaintext
19 lines
671 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_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
|