mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-22 04:22:39 +01:00
Modular Computer Cleanup (#8790)
- rscadd: "Incompatible applications are no longer downloaded via the presets." - tweak: "Reduced/Adapted the size of various applications." - tweak: "The investigations / generic wristbounds are now enrolled aswell." - tweak: "Selecting a unenrolled device in the loadout no longer gives you the advanced version of it." - tweak: "Adapts the modular computer news browser to work with our news system"
This commit is contained in:
@@ -63,6 +63,8 @@
|
||||
if(enrolled)
|
||||
var/programs = get_preset_programs(_app_preset_type)
|
||||
for(var/datum/computer_file/program/prog in programs)
|
||||
if(!prog.is_supported_by_hardware(hardware_flag, FALSE))
|
||||
return
|
||||
hard_drive.store_file(prog)
|
||||
|
||||
/obj/item/modular_computer/Initialize()
|
||||
|
||||
@@ -123,7 +123,7 @@
|
||||
if(!hard_drive)
|
||||
to_chat(user, SPAN_WARNING("You cannot reset a device that has no hard drive."))
|
||||
return
|
||||
enrolled = FALSE
|
||||
enrolled = 0
|
||||
hard_drive.reset_drive()
|
||||
visible_message("\icon[src.icon] <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.
|
||||
@@ -212,4 +212,4 @@
|
||||
|
||||
/obj/item/modular_computer/GetID()
|
||||
if(card_slot.stored_card)
|
||||
return card_slot.stored_card
|
||||
return card_slot.stored_card
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
var/apc_powered = FALSE // Set automatically. Whether the computer used APC power last tick.
|
||||
var/base_active_power_usage = 50 // Power usage when the computer is open (screen is active) and can be interacted with. Remember hardware can use power too.
|
||||
var/base_idle_power_usage = 5 // Power usage when the computer is idle and screen is off (currently only applies to laptops)
|
||||
var/enrolled = FALSE // Weather the computer is enrolled in the company device management or not. 0 - unconfigured 1 - enrolled (work device) 2 - unenrolled (private device)
|
||||
var/enrolled = 0 // Weather the computer is enrolled in the company device management or not. 0 - unconfigured 1 - enrolled (work device) 2 - unenrolled (private device)
|
||||
var/_app_preset_type // Used for specifying the software preset of the console
|
||||
var/ambience_last_played // Last time sound was played
|
||||
|
||||
@@ -65,4 +65,4 @@
|
||||
|
||||
var/listener/listener //Listener needed for things
|
||||
|
||||
charge_failure_message = " does not have a battery installed."
|
||||
charge_failure_message = " does not have a battery installed."
|
||||
|
||||
Reference in New Issue
Block a user