mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-23 16:42:13 +00:00
- Modular computers now support multitasking. - New hardware type added. Basic CPUs may be obtained when purchasing a laptop or tablet, Photonic CPUs can be printed at research at imprinter. This hardware piece determines how many programs can be on background. - Programs can now have an icon that is rendered in main UI's header (along with the power icons, etc.) when the program is on background. As an example, these icons have been added to NTNRC client (Dark icon when no messages have been received, blinking when new message is waiting), Alarm monitor (Blinking red when an alarm is active, green otherwise) and downloader program (Animated arrow when downloading, stationary when finished.) - Adds missing crew monitor icon to tablets. Fixes #11937
85 lines
3.4 KiB
Plaintext
85 lines
3.4 KiB
Plaintext
/obj/machinery/modular_computer/console/preset/
|
|
// Can be changed to give devices specific hardware
|
|
var/_has_id_slot = 0
|
|
var/_has_printer = 0
|
|
var/_has_battery = 0
|
|
|
|
/obj/machinery/modular_computer/console/preset/New()
|
|
. = ..()
|
|
if(!cpu)
|
|
return
|
|
cpu.processor_unit = new/obj/item/weapon/computer_hardware/processor_unit(cpu)
|
|
if(_has_id_slot)
|
|
cpu.card_slot = new/obj/item/weapon/computer_hardware/card_slot(cpu)
|
|
if(_has_printer)
|
|
cpu.nano_printer = new/obj/item/weapon/computer_hardware/nano_printer(cpu)
|
|
if(_has_battery)
|
|
cpu.battery_module = new/obj/item/weapon/computer_hardware/battery_module/super(cpu)
|
|
install_programs()
|
|
|
|
// Override in child types to install preset-specific programs.
|
|
/obj/machinery/modular_computer/console/preset/proc/install_programs()
|
|
return
|
|
|
|
// ===== ENGINEERING CONSOLE =====
|
|
/obj/machinery/modular_computer/console/preset/engineering
|
|
console_department = "Engineering"
|
|
desc = "A stationary computer. This one comes preloaded with engineering programs."
|
|
|
|
/obj/machinery/modular_computer/console/preset/engineering/install_programs()
|
|
cpu.hard_drive.store_file(new/datum/computer_file/program/power_monitor())
|
|
cpu.hard_drive.store_file(new/datum/computer_file/program/alarm_monitor())
|
|
cpu.hard_drive.store_file(new/datum/computer_file/program/atmos_control())
|
|
cpu.hard_drive.store_file(new/datum/computer_file/program/rcon_console())
|
|
|
|
|
|
// ===== MEDICAL CONSOLE =====
|
|
/obj/machinery/modular_computer/console/preset/medical
|
|
console_department = "Medbay"
|
|
desc = "A stationary computer. This one comes preloaded with medical programs."
|
|
|
|
/obj/machinery/modular_computer/console/preset/medical/install_programs()
|
|
cpu.hard_drive.store_file(new/datum/computer_file/program/suit_sensors())
|
|
|
|
|
|
// ===== RESEARCH CONSOLE =====
|
|
/obj/machinery/modular_computer/console/preset/research
|
|
console_department = "Medbay"
|
|
desc = "A stationary computer. This one comes preloaded with research programs."
|
|
|
|
/obj/machinery/modular_computer/console/preset/research/install_programs()
|
|
cpu.hard_drive.store_file(new/datum/computer_file/program/ntnetmonitor())
|
|
cpu.hard_drive.store_file(new/datum/computer_file/program/nttransfer())
|
|
cpu.hard_drive.store_file(new/datum/computer_file/program/chatclient())
|
|
|
|
|
|
// ===== COMMAND CONSOLE =====
|
|
/obj/machinery/modular_computer/console/preset/command
|
|
console_department = "Command"
|
|
desc = "A stationary computer. This one comes preloaded with command programs."
|
|
_has_id_slot = 1
|
|
|
|
/obj/machinery/modular_computer/console/preset/command/install_programs()
|
|
cpu.hard_drive.store_file(new/datum/computer_file/program/chatclient())
|
|
cpu.hard_drive.store_file(new/datum/computer_file/program/card_mod())
|
|
|
|
|
|
// ===== SECURITY CONSOLE =====
|
|
/obj/machinery/modular_computer/console/preset/security
|
|
console_department = "Security"
|
|
desc = "A stationary computer. This one comes preloaded with security programs."
|
|
|
|
/obj/machinery/modular_computer/console/preset/security/install_programs()
|
|
return // No security programs exist, yet, but the preset is ready so it may be mapped in.
|
|
|
|
|
|
// ===== CIVILIAN CONSOLE =====
|
|
/obj/machinery/modular_computer/console/preset/civilian
|
|
console_department = "Civilian"
|
|
desc = "A stationary computer. This one comes preloaded with generic programs."
|
|
|
|
/obj/machinery/modular_computer/console/preset/civilian/install_programs()
|
|
cpu.hard_drive.store_file(new/datum/computer_file/program/chatclient())
|
|
cpu.hard_drive.store_file(new/datum/computer_file/program/nttransfer())
|
|
|