Department accounts are created now and credentials given to heads.

This commit is contained in:
cib
2013-02-27 01:55:18 +01:00
parent 3e4205ffad
commit 26b4deb33f
4 changed files with 333 additions and 1 deletions
+11
View File
@@ -340,6 +340,17 @@ var/global/datum/controller/occupations/job_master
H.mind.initial_account = M
// If they're head, give them the account info for their department
if(H.mind && job.head_position)
var/remembered_info = ""
var/datum/money_account/department_account = department_accounts[job.department]
remembered_info += "<b>Your department's account number is:</b> #[department_account.account_number]<br>"
remembered_info += "<b>Your department's account pin is:</b> [department_account.remote_access_pin]<br>"
remembered_info += "<b>Your department's account funds are:</b> $[department_account.money]<br>"
H.mind.store_memory(remembered_info)
spawn(0)
H << "\blue<b>Your account number is: [M.account_number], your account pin is: [M.remote_access_pin]</b>"