mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-23 04:51:32 +01:00
Tech Support Things (#10050)
This commit is contained in:
@@ -382,4 +382,4 @@
|
||||
if(istype(user))
|
||||
to_chat(user, message)
|
||||
return
|
||||
visible_message(message, range = message_range)
|
||||
audible_message(message, hearing_distance = message_range)
|
||||
|
||||
@@ -146,7 +146,7 @@
|
||||
return
|
||||
enrolled = 0
|
||||
hard_drive.reset_drive()
|
||||
visible_message("[icon2html(src, viewers(get_turf(src)))] <b>[src]</b> pings, <span class='notice'>\"Enrollment status reset! Have a NanoTrasen day.\"</span>")
|
||||
audible_message("[icon2html(src, viewers(get_turf(src)))] <b>[src]</b> pings, <span class='notice'>\"Enrollment status reset! Have a NanoTrasen day.\"</span>")
|
||||
if(istype(W, /obj/item/card/id)) // ID Card, try to insert it.
|
||||
var/obj/item/card/id/I = W
|
||||
if(!card_slot)
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
// We are still here, that means there is no program loaded. Load the BIOS/ROM/OS/whatever you want to call it.
|
||||
// This screen simply lists available programs and user may select them.
|
||||
if(!hard_drive || !hard_drive.stored_files || !hard_drive.stored_files.len)
|
||||
visible_message(SPAN_WARNING("\The [src] beeps three times, its screen displaying, \"DISK ERROR!\"."))
|
||||
audible_message(SPAN_WARNING("\The [src] beeps three times, its screen displaying, \"DISK ERROR!\"."))
|
||||
return // No HDD, No HDD files list or no stored files. Something is very broken.
|
||||
|
||||
if(!ui)
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
icon_state = "hdd_normal"
|
||||
hardware_size = 1
|
||||
origin_tech = list(TECH_DATA = 1, TECH_ENGINEERING = 1)
|
||||
var/has_installed = FALSE // whether we've been installed in a computer yet
|
||||
var/max_capacity = 128
|
||||
var/used_capacity = 0
|
||||
var/read_only = FALSE // If the HDD is read only
|
||||
@@ -74,8 +73,9 @@
|
||||
if(!stored_files)
|
||||
return FALSE
|
||||
// This file is already stored. Don't store it again.
|
||||
if(F in stored_files)
|
||||
return FALSE
|
||||
for(var/datum/computer_file/program/P in stored_files)
|
||||
if(F.type == P.type)
|
||||
return FALSE
|
||||
|
||||
F.hard_drive = src
|
||||
stored_files.Add(F)
|
||||
@@ -84,11 +84,10 @@
|
||||
|
||||
// Use this proc to add file to the drive. Returns 1 on success and 0 on failure. Contains necessary sanity checks.
|
||||
/obj/item/computer_hardware/hard_drive/proc/install_default_programs()
|
||||
if(parent_computer && !has_installed)
|
||||
if(parent_computer)
|
||||
store_file(new /datum/computer_file/program/computerconfig(parent_computer)) // Computer configuration utility, allows hardware control and displays more info than status bar
|
||||
store_file(new /datum/computer_file/program/clientmanager(parent_computer)) // Client Manager to Enroll the Device
|
||||
store_file(new /datum/computer_file/program/pai_access_lock(parent_computer)) // pAI access control, to stop pesky pAI from messing with computers
|
||||
has_installed = TRUE
|
||||
|
||||
// Use this proc to remove file from the drive. Returns 1 on success and 0 on failure. Contains necessary sanity checks.
|
||||
/obj/item/computer_hardware/hard_drive/proc/remove_file(var/datum/computer_file/F)
|
||||
|
||||
Reference in New Issue
Block a user