Fixes #3998
Fixes #3992
This commit is contained in:
Werner
2017-12-23 20:28:22 +01:00
committed by Erki
parent bb5a34eaf8
commit 855562c7c2
3 changed files with 17 additions and 4 deletions

View File

@@ -709,9 +709,10 @@ var/datum/controller/subsystem/cargo/SScargo
//Shuttle is loaded now - Charge cargo for it
charge_cargo("Shipment #[current_shipment.shipment_num] - Expense",current_shipment.shipment_cost_purchase)
//Now calculate the aliquot shipment cost for the orders and add it to each order
var/aliquot_shipment_cost = current_shipment.shuttle_fee / current_shipment.orders.len
for(var/datum/cargo_order/co in current_shipment.orders)
co.partial_shipment_fee = aliquot_shipment_cost
if(current_shipment.orders.len)
//Now calculate the aliquot shipment cost for the orders and add it to each order
var/aliquot_shipment_cost = current_shipment.shuttle_fee / current_shipment.orders.len
for(var/datum/cargo_order/co in current_shipment.orders)
co.partial_shipment_fee = aliquot_shipment_cost
return 1