mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-21 23:52:12 +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.
45 lines
2.0 KiB
Plaintext
45 lines
2.0 KiB
Plaintext
/obj/machinery/modular_computer/console/
|
|
name = "console"
|
|
desc = "A stationary computer."
|
|
|
|
icon = 'icons/obj/modular_console.dmi'
|
|
icon_state = "console"
|
|
icon_state_unpowered = "console"
|
|
screen_icon_state_menu = "menu"
|
|
hardware_flag = PROGRAM_CONSOLE
|
|
var/console_department = "" // Used in New() to set network tag according to our area.
|
|
anchored = 1
|
|
density = 1
|
|
base_idle_power_usage = 100
|
|
base_active_power_usage = 500
|
|
max_hardware_size = 3
|
|
steel_sheet_cost = 20
|
|
|
|
/obj/machinery/modular_computer/console/buildable/New()
|
|
..()
|
|
// User-built consoles start as empty frames.
|
|
qdel(tesla_link)
|
|
qdel(cpu.network_card)
|
|
qdel(cpu.hard_drive)
|
|
|
|
/obj/machinery/modular_computer/console/New()
|
|
..()
|
|
cpu.battery_module = null
|
|
cpu.network_card = new/obj/item/weapon/computer_hardware/network_card/wired(src)
|
|
tesla_link = new/obj/item/weapon/computer_hardware/tesla_link(src)
|
|
tesla_link.enabled = 1
|
|
tesla_link.critical = 1 // Consoles don't usually come with cells, and this prevents people from disabling their only power source, as they wouldn't be able to enable it again.
|
|
cpu.hard_drive = new/obj/item/weapon/computer_hardware/hard_drive/super(src) // Consoles generally have better HDDs due to lower space limitations
|
|
var/area/A = get_area(src)
|
|
// Attempts to set this console's tag according to our area. Since some areas have stuff like "XX - YY" in their names we try to remove that too.
|
|
if(A && console_department)
|
|
cpu.network_card.identification_string = replacetext(replacetext(replacetext("[A.name] [console_department] Console", " ", "_"), "-", ""), "__", "_") // Replace spaces with "_"
|
|
else if(A)
|
|
cpu.network_card.identification_string = replacetext(replacetext(replacetext("[A.name] Console", " ", "_"), "-", ""), "__", "_")
|
|
else if(console_department)
|
|
cpu.network_card.identification_string = replacetext(replacetext(replacetext("[console_department] Console", " ", "_"), "-", ""), "__", "_")
|
|
else
|
|
cpu.network_card.identification_string = "Unknown Console"
|
|
if(cpu)
|
|
cpu.screen_on = 1
|
|
update_icon() |