Cyborgs and AIs now don't get a bank account assigned. (#23176)

* God this was a PITA to find

* Variable on job
This commit is contained in:
DGamerL
2023-11-12 21:03:50 +01:00
committed by GitHub
parent 0e18a8e11d
commit edee326c49
3 changed files with 6 additions and 0 deletions

View File

@@ -594,6 +594,8 @@ SUBSYSTEM_DEF(jobs)
//fuck
/datum/controller/subsystem/jobs/proc/CreateMoneyAccount(mob/living/H, rank, datum/job/job)
if(!job.has_bank_account)
return
var/starting_balance = job?.department_account_access ? COMMAND_MEMBER_STARTING_BALANCE : CREW_MEMBER_STARTING_BALANCE
var/datum/money_account/account = GLOB.station_money_database.create_account(H.real_name, starting_balance, ACCOUNT_SECURITY_ID, "NAS Trurl Accounting", TRUE)