[MIRROR] Adds the Accounting Console to the game (HOP Job Content) [MDB IGNORE] (#13119)

* Adds the Accounting Console to the game (HOP Job Content)

* Update economy.dm

Co-authored-by: ArcaneMusic <41715314+ArcaneMusic@users.noreply.github.com>
Co-authored-by: Zonespace <41448081+Zonespace27@users.noreply.github.com>
This commit is contained in:
SkyratBot
2022-04-26 15:27:04 +01:00
committed by GitHub
co-authored by ArcaneMusic Zonespace
parent 5df50bf3c7
commit b501ff54ea
18 changed files with 223 additions and 30 deletions
+1
View File
@@ -158,6 +158,7 @@ GLOBAL_LIST_INIT(blacklisted_cargo_types, typecacheof(list(
if(istype(spawning_order, /datum/supply_order/armament))
LAZYADD(forced_briefcases[spawning_order.paying_account], spawning_order)
paying_for_this.bank_card_talk("Cargo order #[spawning_order.id] has shipped. [price] credits have been charged to your bank account.")
SSeconomy.track_purchase(paying_for_this, price, spawning_order.pack.name)
var/datum/bank_account/department/cargo = SSeconomy.get_dep_account(ACCOUNT_CAR)
cargo.adjust_money(price - spawning_order.pack.get_cost()) //Cargo gets the handling fee
value += spawning_order.pack.get_cost()