mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-13 08:56:49 +01:00
A large set of ops program fixes + elevator ghost sound fix (#22278)
- bugfix: "Fixed the operations status display screens not showing the elevator status." - bugfix: "Fixed the cargo delivery program not displaying the account that was used to pay for an order with." - bugfix: "Fixed the cargo delivery program not displaying shipped orders regardless of payment status." - bugfix: "Fixed the ghostly ambience on the operations lift and the lift near security." - bugfix: "The operations program now displays the elevator time in seconds instead of minutes, given the minutes would always show 0."
This commit is contained in:
@@ -285,13 +285,15 @@ SUBSYSTEM_DEF(cargo)
|
||||
Submitting, Approving, Rejecting and Shipping Orders
|
||||
*/
|
||||
// Gets the orders based on their status (submitted, approved, shipped).
|
||||
/datum/controller/subsystem/cargo/proc/get_orders_by_status(var/status, var/data_list=0)
|
||||
/datum/controller/subsystem/cargo/proc/get_orders_by_status(status, data_list = FALSE, list/avoid)
|
||||
if(!status)
|
||||
log_subsystem_cargo("get_orders_by_status has been called with a invalid status")
|
||||
return list()
|
||||
var/list/orders = list()
|
||||
for (var/datum/cargo_order/co in all_orders)
|
||||
if(co.status == status)
|
||||
if(co.status == status || co.get_payment_status() == status)
|
||||
if(avoid && (avoid.Find(co.status) || avoid.Find(co.get_payment_status())))
|
||||
continue
|
||||
if(data_list)
|
||||
orders.Add(list(co.get_list()))
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user