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:
Casper3667
2026-04-19 07:28:40 +02:00
committed by GitHub
parent 90ceccb06b
commit deab6b4e99
10 changed files with 35 additions and 23 deletions
+4 -2
View File
@@ -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