when players arrive, they are assigned a new account with random starting funds and the info for it is stored in their memory + ID card. id computer can now modify the account number associated with id cards

Signed-off-by: Cael_Aislinn <cael_aislinn@yahoo.com.au>
This commit is contained in:
Cael_Aislinn
2013-02-23 19:38:50 +10:00
parent cfa317a664
commit 68abeda762
6 changed files with 57 additions and 3 deletions

View File

@@ -370,6 +370,21 @@
new_character.key = key //Manually transfer the key to log them in
//give them an account in the station database
if(centcomm_account_db)
var/datum/money_account/M = centcomm_account_db.add_account(new_character.name, pre_existing = 1)
if(mind)
var/remembered_info = "<b>Your account pin is:</b> [M.remote_access_pin]<br>"
remembered_info += "<b>Your account number is:</b> [M.account_number]<br>"
remembered_info += "<b>Your account funds are:</b> [M.money]<br>"
if(M.transaction_log.len)
var/datum/transaction/T = M.transaction_log[1]
remembered_info += "<b>Your account was created on:</b> [T.time], [T.date] <b>at</b> [T.source_terminal]<br>"
mind.store_memory(remembered_info)
mind.initial_account = M
return new_character
proc/ViewManifest()