mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-26 10:02:28 +00:00
20 lines
672 B
Plaintext
20 lines
672 B
Plaintext
/obj/item/weapon/computer_hardware/tesla_link
|
|
name = "tesla link"
|
|
desc = "An advanced tesla link that wirelessly recharges connected device from nearby area power controller."
|
|
critical = 0
|
|
enabled = 1
|
|
icon_state = "teslalink"
|
|
hardware_size = 2 // Can't be installed into tablets
|
|
origin_tech = list(TECH_DATA = 2, TECH_POWER = 3, TECH_ENGINEERING = 2)
|
|
var/obj/machinery/modular_computer/holder
|
|
|
|
/obj/item/weapon/computer_hardware/tesla_link/New(var/obj/L)
|
|
if(istype(L, /obj/machinery/modular_computer))
|
|
holder = L
|
|
return
|
|
..(L)
|
|
|
|
/obj/item/weapon/computer_hardware/tesla_link/Destroy()
|
|
if(holder && (holder.tesla_link == src))
|
|
holder.tesla_link = null
|
|
..() |