Merchant Account (#11220)

This commit is contained in:
Geeves
2021-02-21 08:04:13 +02:00
committed by GitHub
parent 8ab3fb2616
commit 3126db3acd
8 changed files with 57 additions and 17 deletions

View File

@@ -325,6 +325,19 @@
)
return _prg_list
/datum/modular_computer_app_presets/command/account/centcomm/return_install_programs(obj/item/modular_computer/comp)
var/list/_prg_list = list(
new /datum/computer_file/program/ntnetdownload(comp),
new /datum/computer_file/program/filemanager(comp),
new /datum/computer_file/program/newsbrowser(comp),
new /datum/computer_file/program/manifest(comp),
new /datum/computer_file/program/civilian/cargoorder(comp),
new /datum/computer_file/program/civilian/cargocontrol(comp),
new /datum/computer_file/program/records/employment(comp),
new /datum/computer_file/program/account_db(comp, TRUE)
)
return _prg_list
/datum/modular_computer_app_presets/security
name = "security"
display_name = "Security"

View File

@@ -12,14 +12,17 @@
color = LIGHT_COLOR_BLUE
var/machine_id = ""
var/centcomm_db = FALSE
/datum/computer_file/program/account_db/New()
/datum/computer_file/program/account_db/New(obj/item/modular_computer/comp, var/is_centcomm_db = FALSE)
..()
if(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)
@@ -84,7 +87,8 @@
data["accounts"] = list()
if(get_access_level())
for(var/M in SSeconomy.all_money_accounts)
var/list/SSeconomy_accounts = centcomm_db ? SSeconomy.all_money_accounts : SSeconomy.get_public_accounts()
for(var/M in SSeconomy_accounts)
var/datum/money_account/D = SSeconomy.get_account(M)
var/account_number = "[M]"
data["accounts"][account_number] = list()
@@ -234,7 +238,8 @@
<tbody>
"}
for(var/M in SSeconomy.all_money_accounts)
var/list/SSeconomy_accounts = centcomm_db ? SSeconomy.all_money_accounts : SSeconomy.get_public_accounts()
for(var/M in SSeconomy_accounts)
var/datum/money_account/D = SSeconomy.get_account(M)
text += {"
<tr>