mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-21 15:42:35 +00:00
- Adds codersprites for tablet programs that are currently required. - Adds computer icons to some programs that missed them. - Temporarily removes separate keyboard icon states for consoles. They may be reimplemented in the future in a bit better way. - Rebalanced sizes of programs a bit - File manager is no longer downloadable, as it is part of each hard drive's ROM. - Fixed runtime error when vending a laptop - Adjusted some code segments as per Techhead's suggestions on github - Adds changelog.
23 lines
847 B
Plaintext
23 lines
847 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
|
|
..() |