mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-30 00:29:02 +01:00
[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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user