Files
Polaris/code/modules/modular_computers/hardware/hardware.dm
Unknown cce3116c3a Ports Modular Computers from Baystation
This is just the initial parts. Additional work will probably be necessary.
2019-04-02 21:06:37 -04:00

23 lines
848 B
Plaintext

/obj/item/weapon/computer_hardware/
name = "Hardware"
desc = "Unknown Hardware"
icon = 'icons/obj/modular_components.dmi'
var/obj/item/modular_computer/holder2 = null
var/power_usage = 0 // If the hardware uses extra power, change this.
var/enabled = 1 // If the hardware is turned off set this to 0.
var/critical = 1 // Prevent disabling for important component, like the HDD.
var/hardware_size = 1 // Limits which devices can contain this component. 1: Tablets/Laptops/Consoles, 2: Laptops/Consoles, 3: Consoles only
/obj/item/weapon/computer_hardware/New(var/obj/L)
if(istype(L, /obj/machinery/modular_computer))
var/obj/machinery/modular_computer/C = L
if(C.cpu)
holder2 = C.cpu
return
if(istype(L, /obj/item/modular_computer))
holder2 = L
return
/obj/item/weapon/computer_hardware/Destroy()
holder2 = null
..()