From b0c6d945ff7afab238b50facd7864174656dffea Mon Sep 17 00:00:00 2001 From: Fikou Date: Fri, 1 May 2020 11:28:13 +0200 Subject: [PATCH] you can no longer privately pay for stuff with departmental budgets (#50754) * you can no longer privately pay for stuff with departmental budgets * ok kobby --- code/game/objects/items/cards_ids.dm | 3 +++ code/modules/cargo/console.dm | 3 +++ 2 files changed, 6 insertions(+) diff --git a/code/game/objects/items/cards_ids.dm b/code/game/objects/items/cards_ids.dm index 2b2dd3151624d..c6a98f69acea8 100644 --- a/code/game/objects/items/cards_ids.dm +++ b/code/game/objects/items/cards_ids.dm @@ -723,3 +723,6 @@ update_label() department_ID = ACCOUNT_CAR department_name = ACCOUNT_CAR_NAME icon_state = "car_budget" //saving up for a new tesla + +/obj/item/card/id/departmental_budget/AltClick(mob/living/user) + registered_account.bank_card_talk("Withdrawing is not compatible with this card design.", TRUE) //prevents the vault bank machine being useless and putting money from the budget to your card to go over personal crates diff --git a/code/modules/cargo/console.dm b/code/modules/cargo/console.dm index c07abe8f104e9..c7e6b504bf7d8 100644 --- a/code/modules/cargo/console.dm +++ b/code/modules/cargo/console.dm @@ -196,6 +196,9 @@ if(!istype(id_card)) say("No ID card detected.") return + if(istype(id_card, /obj/item/card/id/departmental_budget)) + say("The [src] rejects [id_card].") + return account = id_card.registered_account if(!istype(account)) say("Invalid bank account.")