mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-27 23:27:34 +01:00
Cannot use departmental budget cards as source of credit withdraw (#76113)
Currently you can put cargo's budget card into your PDA, go into NT Pay and send over the budget to any pay token you want including yours. This just adds a check to ensure you aren't using that kind of card as withdrawal source.
This commit is contained in:
@@ -14,7 +14,7 @@ SUBSYSTEM_DEF(economy)
|
||||
ACCOUNT_SRV = ACCOUNT_SRV_NAME,
|
||||
ACCOUNT_CAR = ACCOUNT_CAR_NAME,
|
||||
ACCOUNT_SEC = ACCOUNT_SEC_NAME)
|
||||
var/list/generated_accounts = list()
|
||||
var/list/departmental_accounts = list()
|
||||
/**
|
||||
* Enables extra money charges for things that normally would be free, such as sleepers/cryo/beepsky.
|
||||
* Take care when enabling, as players will NOT respond well if the economy is set up for low cash flows.
|
||||
@@ -82,7 +82,7 @@ SUBSYSTEM_DEF(economy)
|
||||
return SS_INIT_SUCCESS
|
||||
|
||||
/datum/controller/subsystem/economy/Recover()
|
||||
generated_accounts = SSeconomy.generated_accounts
|
||||
departmental_accounts = SSeconomy.departmental_accounts
|
||||
bank_accounts_by_id = SSeconomy.bank_accounts_by_id
|
||||
dep_cards = SSeconomy.dep_cards
|
||||
|
||||
@@ -144,7 +144,7 @@ SUBSYSTEM_DEF(economy)
|
||||
* Handy proc for obtaining a department's bank account, given the department ID, AKA the define assigned for what department they're under.
|
||||
*/
|
||||
/datum/controller/subsystem/economy/proc/get_dep_account(dep_id)
|
||||
for(var/datum/bank_account/department/D in generated_accounts)
|
||||
for(var/datum/bank_account/department/D in departmental_accounts)
|
||||
if(D.department_id == dep_id)
|
||||
return D
|
||||
|
||||
|
||||
Reference in New Issue
Block a user