mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2026-07-16 10:42:50 +01:00
Updates Part Ten
This commit is contained in:
@@ -63,6 +63,9 @@
|
||||
|
||||
// Handles damage checks
|
||||
/obj/item/weapon/computer_hardware/proc/check_functionality()
|
||||
// Turned off
|
||||
if(!enabled)
|
||||
return 0
|
||||
// Too damaged to work at all.
|
||||
if(damage > damage_failure)
|
||||
return 0
|
||||
|
||||
@@ -4,9 +4,10 @@
|
||||
critical = 0
|
||||
enabled = 1
|
||||
icon_state = "teslalink"
|
||||
hardware_size = 2 // Can't be installed into tablets
|
||||
hardware_size = 1
|
||||
origin_tech = list(TECH_DATA = 2, TECH_POWER = 3, TECH_ENGINEERING = 2)
|
||||
var/obj/machinery/modular_computer/holder
|
||||
var/passive_charging_rate = 250 // W
|
||||
|
||||
/obj/item/weapon/computer_hardware/tesla_link/New(var/obj/L)
|
||||
if(istype(L, /obj/machinery/modular_computer))
|
||||
@@ -15,6 +16,6 @@
|
||||
..(L)
|
||||
|
||||
/obj/item/weapon/computer_hardware/tesla_link/Destroy()
|
||||
if(holder && (holder.tesla_link == src))
|
||||
holder.tesla_link = null
|
||||
if(holder2 && (holder2.tesla_link == src))
|
||||
holder2.tesla_link = null
|
||||
..()
|
||||
Reference in New Issue
Block a user