feat: dvale for flows uden arbejde — traktor og vogn frigives, flowet vågner selv (v1.62.58)
This commit is contained in:
@@ -257,7 +257,7 @@ function ADChain.flowStatus(edges, runs, noVehicle)
|
||||
local status = edge.delivery == "auto" and "auto" or "missing"
|
||||
for _, run in ipairs(edge.delivery == "auto" and {} or runs or {}) do
|
||||
if run.kind == "supply" and covers(run, edge) then
|
||||
if not run.stopped then status = "ok"; break end
|
||||
if not run.stopped or run.sleeping then status = "ok"; break end -- sovende flow vågner selv
|
||||
local reason = (noVehicle or {})[run.id]
|
||||
if reason == "pallet" then status = "pallet"
|
||||
elseif reason then status = "noVehicle"
|
||||
@@ -274,7 +274,7 @@ function ADChain.runsView(runs)
|
||||
local list = {}
|
||||
for _, run in ipairs(runs or {}) do
|
||||
table.insert(list, {id = run.id, name = run.name, kind = run.kind, targetBuildingIds = run.targetBuildingIds,
|
||||
ingredientMode = run.ingredientMode, ingredients = run.ingredients, stopped = run.stopped == true,
|
||||
ingredientMode = run.ingredientMode, ingredients = run.ingredients, stopped = run.stopped == true and not run.sleeping,
|
||||
chain = run.chain, waitPoolGroup = run.waitPoolGroup,
|
||||
-- traktorerne: uden dem ligner alle kædeflows tomme (sammenlægning/sletning må kun ramme tomme)
|
||||
vehicleIds = run.vehicleIds or {}})
|
||||
|
||||
Reference in New Issue
Block a user