mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-12 19:22:56 +00:00
Co-authored-by: Changelogs <action@github.com> Co-authored-by: Heroman3003 <31296024+Heroman3003@users.noreply.github.com> Co-authored-by: Guti <32563288+TheCaramelion@users.noreply.github.com> Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com> Co-authored-by: Kashargul <KashL@t-online.de>
14 lines
490 B
Plaintext
14 lines
490 B
Plaintext
/obj/item/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 = 1
|
|
origin_tech = list(TECH_DATA = 2, TECH_POWER = 3, TECH_ENGINEERING = 2)
|
|
var/passive_charging_rate = 250 // W
|
|
|
|
/obj/item/computer_hardware/tesla_link/Destroy()
|
|
if(holder2 && (holder2.tesla_link == src))
|
|
holder2.tesla_link = null
|
|
return ..() |