From e634cd97b3111a82e595665e222e11a41edf154d Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Tue, 5 Dec 2023 01:24:59 +0100 Subject: [PATCH] [MIRROR] Express Console Code Improvement [MDB IGNORE] (#25426) * Express Console Code Improvement (#80081) ## About The Pull Request Account ID for Express Console was hardcoded, idk why. Now, it uses "cargo_account" var, to select department's account, as it is in default cargo console. ## Why It's Good For The Game You can use VV to change charging account for Express Console and other shenanigans. * Express Console Code Improvement --------- Co-authored-by: ReezeBL Co-authored-by: SomeRandomOwl <2568378+SomeRandomOwl@users.noreply.github.com> --- code/modules/cargo/expressconsole.dm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/modules/cargo/expressconsole.dm b/code/modules/cargo/expressconsole.dm index 149aaf6af86..6babda045e0 100644 --- a/code/modules/cargo/expressconsole.dm +++ b/code/modules/cargo/expressconsole.dm @@ -91,7 +91,7 @@ /obj/machinery/computer/cargo/express/ui_data(mob/user) var/canBeacon = beacon && (isturf(beacon.loc) || ismob(beacon.loc))//is the beacon in a valid location? var/list/data = list() - var/datum/bank_account/D = SSeconomy.get_dep_account(ACCOUNT_CAR) + var/datum/bank_account/D = SSeconomy.get_dep_account(cargo_account) if(D) data["points"] = D.account_balance data["locked"] = locked//swipe an ID to unlock @@ -138,7 +138,7 @@ if (beacon) beacon.update_status(SP_READY) //turns on the beacon's ready light if("printBeacon") - var/datum/bank_account/D = SSeconomy.get_dep_account(ACCOUNT_CAR) + var/datum/bank_account/D = SSeconomy.get_dep_account(cargo_account) if(D) if(D.adjust_money(-BEACON_COST)) cooldown = 10//a ~ten second cooldown for printing beacons to prevent spam @@ -171,7 +171,7 @@ var/list/empty_turfs var/datum/supply_order/SO = new(pack, name, rank, ckey, reason) var/points_to_check - var/datum/bank_account/D = SSeconomy.get_dep_account(ACCOUNT_CAR) + var/datum/bank_account/D = SSeconomy.get_dep_account(cargo_account) if(D) points_to_check = D.account_balance if(!(obj_flags & EMAGGED))