From b780983464423e1b63b87e6ffbad3f2f80be6de0 Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Wed, 29 Mar 2023 23:21:07 +0200 Subject: [PATCH] [MIRROR] Debug ID Cards Can Now Use Vending Machines [MDB IGNORE] (#20113) * 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. * Debug ID Cards Can Now Use Vending Machines --------- Co-authored-by: san7890 --- 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 76f207b0134..e88f9a079b3 100644 --- a/code/game/objects/items/cards_ids.dm +++ b/code/game/objects/items/cards_ids.dm @@ -1179,6 +1179,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 679f3d34eda..488addc69a0 100644 --- a/tgstation.dme +++ b/tgstation.dme @@ -3637,6 +3637,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"