Modular computer programs preset support unit test (#20069)

Added some modular computer program preset tests.
Fixed some modular computer program preset that had duplicate programs.
Refactored how the computer program presets generate the list of
programs to install.
Turned some comments into DMDocs, some cleanup around.
Tests disabled reasons are now enclosed in the group correctly.
This commit is contained in:
Fluffy
2024-11-14 14:15:19 +00:00
committed by GitHub
parent 477e7fa570
commit 2ac1681fd8
12 changed files with 519 additions and 412 deletions
@@ -16,15 +16,13 @@
var/machine_id = ""
var/centcomm_db = FALSE
/datum/computer_file/program/account_db/New(obj/item/modular_computer/comp, var/is_centcomm_db = FALSE)
/datum/computer_file/program/account_db/New(obj/item/modular_computer/comp)
..()
if(SSatlas.current_map)
machine_id = "[station_name()] Acc. DB #[SSeconomy.num_financial_terminals++]"
else
machine_id = "NT-Net Relay Back-up Software DB" // created during map generation inside the ntnet relay, not used by players
centcomm_db = is_centcomm_db
/datum/computer_file/program/account_db/proc/get_held_card()
var/obj/item/card/id/held_card
if(computer.card_slot?.stored_card)
@@ -261,4 +259,14 @@
var/obj/item/paper/P = computer.nano_printer.print_text("", pname, "#deebff")
P.set_content_unsafe(pname, text)
/*#############
SUBTYPES
#############*/
/datum/computer_file/program/account_db/centcomm
filename = "accdb_centcomm"
filedesc = "Account Database - CentComm"
centcomm_db = TRUE
#undef FUND_CAP