[MIRROR] Removes tablet hard drives entirely (HDD & SSD) [MDB IGNORE] (#17164)

* Removes tablet hard drives entirely (HDD & SSD)

* map updates

* changes

* contractor uplink theme

* uplink improvements

* tab

Co-authored-by: John Willard <53777086+JohnFulpWillard@users.noreply.github.com>
Co-authored-by: tastyfish <crazychris32@gmail.com>
This commit is contained in:
SkyratBot
2022-10-26 20:09:16 +02:00
committed by GitHub
parent 9b4fb5848a
commit 097e913e4b
80 changed files with 1080 additions and 1390 deletions

View File

@@ -11,8 +11,6 @@
var/uid
///Static ID to ensure all IDs are unique.
var/static/file_uid = 0
///The hard drive that has this computer file stored.
var/obj/item/computer_hardware/hard_drive/holder
///The modular computer hosting the file.
var/obj/item/modular_computer/computer
@@ -21,15 +19,9 @@
uid = file_uid++
/datum/computer_file/Destroy(force)
if(!holder)
return ..()
holder.remove_file(src)
// holder.holder is the computer that has drive installed. If we are Destroy()ing program that's currently running kill it.
if(computer && computer.active_program == src)
computer.kill_program(forced = TRUE)
holder = null
computer = null
if(computer)
computer.remove_file(src)
computer = null
return ..()
// Returns independent copy of this file.