mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-19 03:55:11 +01:00
[MIRROR] Makes departmental budget accounts visible on command IDs, makes departmental budget mechanic more obvious in general [MDB IGNORE] (#13714)
* Makes departmental budget accounts visible on command IDs, makes departmental budget mechanic more obvious in general (#67035) * Head ID reports dep budget * Adds Dep. Budget shorthand name to ID examine where applicable * Cleaner & more readable ingame and codewise * Modifies Cargo requests console js to allow title modification, IRN modifies titles where applicable * Better way of doing things * QM gets Cargo's budget on ID Co-authored-by: John Willard <53777086+JohnFulpWillard@ users.noreply.github.com> * pain peko Co-authored-by: John Willard <53777086+JohnFulpWillard@ users.noreply.github.com> Co-authored-by: John Willard <53777086+JohnFulpWillard@ users.noreply.github.com> * Makes departmental budget accounts visible on command IDs, makes departmental budget mechanic more obvious in general Co-authored-by: nickup9 <nicholas.shpetner9@gmail.com> Co-authored-by: John Willard <53777086+JohnFulpWillard@ users.noreply.github.com>
This commit is contained in:
@@ -68,6 +68,7 @@
|
||||
. = ..()
|
||||
var/list/data = get_header_data()
|
||||
data["location"] = SSshuttle.supply.getStatusText()
|
||||
data["department"] = "Cargo"
|
||||
var/datum/bank_account/buyer = SSeconomy.get_dep_account(cargo_account)
|
||||
var/obj/item/computer_hardware/card_slot/card_slot = computer.all_components[MC_CARD]
|
||||
var/obj/item/card/id/id_card = card_slot?.GetID()
|
||||
@@ -79,6 +80,9 @@
|
||||
else
|
||||
requestonly = TRUE
|
||||
can_approve_requests = FALSE
|
||||
if(ACCESS_HEADS in id_card.access)
|
||||
// If buyer is a departmental budget, replaces "Cargo" with that budget - we're not using the cargo budget here
|
||||
data["department"] = addtext(buyer.account_holder, " Requisitions")
|
||||
else
|
||||
requestonly = TRUE
|
||||
if(buyer)
|
||||
|
||||
Reference in New Issue
Block a user