[Kinda A Priority] Fixes Free Cargo. (#18353)

* nice

* Can we all agree cargo should be removed

* My brain is too small for operators

* should move this down
This commit is contained in:
StrangeWeirdKitten
2022-12-27 13:22:10 -08:00
committed by GitHub
parent 9b1626c2de
commit 93373deded
2 changed files with 9 additions and 4 deletions
+5 -2
View File
@@ -129,7 +129,9 @@ GLOBAL_LIST_INIT(blacklisted_cargo_types, typecacheof(list(
var/datum/bank_account/paying_for_this
//department orders EARN money for cargo, not the other way around
//Skyrat Edit Add
if(!spawning_order.department_destination && spawning_order.charge_on_purchase)
//Skyrat Edit End
if(spawning_order.paying_account) //Someone paid out of pocket
paying_for_this = spawning_order.paying_account
var/list/current_buyer_orders = goodies_by_buyer[spawning_order.paying_account] // so we can access the length a few lines down
@@ -147,8 +149,9 @@ GLOBAL_LIST_INIT(blacklisted_cargo_types, typecacheof(list(
if(spawning_order.paying_account)
paying_for_this.bank_card_talk("Cargo order #[spawning_order.id] rejected due to lack of funds. Credits required: [price]")
continue
if(spawning_order.paying_account)
//Skyrat Edit Add
if(spawning_order.paying_account && spawning_order.charge_on_purchase)
//Skyrat Edit End
paying_for_this = spawning_order.paying_account
if(spawning_order.pack.goody)
LAZYADD(goodies_by_buyer[spawning_order.paying_account], spawning_order)