Unbreaking computers (#3779)

Made programs that can't run in current hardware to not show up in download list
 Adjusted some program computer compatibility flags
 Reworded laptop vendor buttons to be more consistent and more accurate on what you get
 Added description to tablets
This is balance and bug-fix PR, so it should bypass development.
This commit is contained in:
Karolis
2017-11-03 11:45:21 +02:00
committed by Erki
parent fc9640e27d
commit 04256797d2
13 changed files with 23 additions and 12 deletions
@@ -189,6 +189,7 @@
var/list/all_entries[0]
var/datum/computer_file/program/ntnetdownload/prog = program
var/list/data = list()
data["hackedavailable"] = 0
for(var/datum/computer_file/program/P in ntnet_global.available_station_software)
var/installed = 0
for(var/datum/computer_file/program/Q in program.holder.stored_files)
@@ -200,6 +201,9 @@
// Only those programs our user can run will show in the list
if(!P.can_download(user) && P.requires_access_to_download)
continue
if(!P.is_supported_by_hardware(program.computer.hardware_flag))
continue
all_entries.Add(list(list(
"filename" = P.filename,
@@ -207,7 +211,6 @@
"fileinfo" = P.extended_desc,
"size" = P.size
)))
data["hackedavailable"] = 0
if(prog.computer_emagged) // If we are running on emagged computer we have access to some "bonus" software
var/list/hacked_programs[0]