From 9dba932c1ac75f06f61a3ecb6ec00be61669c9ef Mon Sep 17 00:00:00 2001 From: san7890 Date: Mon, 27 Mar 2023 11:48:20 -0600 Subject: [PATCH] Debug ID Cards Can Now Use Vending Machines (#74278) ## About The Pull Request ![image](https://user-images.githubusercontent.com/34697715/227799119-abbcf947-10ef-416d-a353-239b0544f56d.png) This always pissed me off, and has been pissing me off for the last year or so. I decided to sit down and figure out how to stop this from occurring, and got it. ## Why It's Good For The Game When I'm debugging several types of stuff regarding payment in my pre-fabbed debug suit, I really don't want to fucking have to spawn yet another ID card with an actual job on it and transfer money to that just so I can use a vending machine, I WANT TO JUST USE THE VENDING MACHINE!!! TIME IS PRECIOUS!!! It does still draw from the station budget, but that's fine because this is a debug card that is meant to be dangerous to hand out. It's a debugger's tool. If you're concerned on people somehow getting it from an admin and beign able to buy smokes from vending machines, they were still able to withdraw money by alt-clicking on it before this change. ## Changelog Nothing that really concerns players. --- code/game/objects/items/cards_ids.dm | 1 + code/modules/jobs/job_types/event/admin.dm | 2 ++ tgstation.dme | 1 + 3 files changed, 4 insertions(+) create mode 100644 code/modules/jobs/job_types/event/admin.dm diff --git a/code/game/objects/items/cards_ids.dm b/code/game/objects/items/cards_ids.dm index 4024d9190d1..bcf56217ace 100644 --- a/code/game/objects/items/cards_ids.dm +++ b/code/game/objects/items/cards_ids.dm @@ -1174,6 +1174,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 /obj/item/card/id/advanced/prisoner name = "prisoner ID card" diff --git a/code/modules/jobs/job_types/event/admin.dm b/code/modules/jobs/job_types/event/admin.dm new file mode 100644 index 00000000000..963164f26be --- /dev/null +++ b/code/modules/jobs/job_types/event/admin.dm @@ -0,0 +1,2 @@ +/datum/job/admin + title = "Debugger" diff --git a/tgstation.dme b/tgstation.dme index 59e7fe2bd25..756cf6b8bc7 100644 --- a/tgstation.dme +++ b/tgstation.dme @@ -3558,6 +3558,7 @@ #include "code\modules\jobs\job_types\antagonists\wizard_apprentice.dm" #include "code\modules\jobs\job_types\antagonists\xenomorph.dm" #include "code\modules\jobs\job_types\ert\ert_generic.dm" +#include "code\modules\jobs\job_types\event\admin.dm" #include "code\modules\jobs\job_types\event\fugitive.dm" #include "code\modules\jobs\job_types\event\santa.dm" #include "code\modules\jobs\job_types\spawner\ancient_crew.dm"