[MIRROR] Fixes station trait jobs and bank accounts ignoring the concept of jobs being singletons (#26720)

* Fixes station trait jobs and bank accounts ignoring the concept of jobs being singletons (#81756)

## About The Pull Request

Jobs are singletons don't make new ones!!

Also this tweaks job station traits slightly so that traits in the
future support multiple slots without breaking

* Fixes station trait jobs and bank accounts ignoring the concept of jobs being singletons

---------

Co-authored-by: MrMelbert <51863163+MrMelbert@users.noreply.github.com>
This commit is contained in:
SkyratBot
2024-03-05 17:31:32 -05:00
committed by GitHub
co-authored by MrMelbert
parent 6cb52ccd22
commit e21ee685d1
3 changed files with 11 additions and 17 deletions
+2 -3
View File
@@ -125,9 +125,8 @@
/obj/item/card/id/Initialize(mapload)
. = ..()
var/datum/bank_account/blank_bank_account = new /datum/bank_account("Unassigned", player_account = FALSE)
var/datum/bank_account/blank_bank_account = new("Unassigned", SSjob.GetJobType(/datum/job/unassigned), player_account = FALSE)
registered_account = blank_bank_account
blank_bank_account.account_job = new /datum/job/unassigned
registered_account.replaceable = TRUE
// Applying the trim updates the label and icon, so don't do this twice.
@@ -1234,7 +1233,7 @@
/obj/item/card/id/advanced/debug/Initialize(mapload)
. = ..()
registered_account = SSeconomy.get_dep_account(ACCOUNT_CAR)
registered_account.account_job = new /datum/job/admin // so we can actually use this account without being filtered as a "departmental" card
registered_account.account_job = SSjob.GetJobType(/datum/job/admin) // so we can actually use this account without being filtered as a "departmental" card
/obj/item/card/id/advanced/prisoner
name = "prisoner ID card"