Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

Commit

Permalink
you can no longer privately pay for stuff with departmental budgets (t…
Browse files Browse the repository at this point in the history
…gstation#50754)

* you can no longer privately pay for stuff with departmental budgets

* ok kobby
  • Loading branch information
Fikou authored May 1, 2020
1 parent 9aef894 commit b0c6d94
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions code/game/objects/items/cards_ids.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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("<span class='warning'>Withdrawing is not compatible with this card design.</span>", TRUE) //prevents the vault bank machine being useless and putting money from the budget to your card to go over personal crates
3 changes: 3 additions & 0 deletions code/modules/cargo/console.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
Expand Down

0 comments on commit b0c6d94

Please sign in to comment.