feat(kæde): kæder slås selv til ([Kæde til]/[Fjern]); tomme kædeflows slettes; runsView med traktorer (v1.62.0.0)
This commit is contained in:
@@ -59,7 +59,9 @@ end
|
||||
function ADChainActions.flowsToStop(runs, activeRootKeys)
|
||||
local list = {}
|
||||
for _, run in ipairs(runs or {}) do
|
||||
if run.chain ~= nil and run.chain ~= "" and not run.stopped and not (activeRootKeys or {})[run.chain] then
|
||||
-- også stoppede kædeflows uden traktor (de ryddes op); stoppede med traktor er allerede sluppet/spillerens
|
||||
local idle = #(run.vehicleIds or {}) == 0
|
||||
if run.chain ~= nil and run.chain ~= "" and (not run.stopped or idle) and not (activeRootKeys or {})[run.chain] then
|
||||
table.insert(list, run)
|
||||
end
|
||||
end
|
||||
@@ -163,3 +165,10 @@ function ADChainActions.finalSales(chain, recipes, edges, keep, farmUses)
|
||||
end
|
||||
return list
|
||||
end
|
||||
|
||||
-- Kædeflow for en kæde der er slået fra: uden traktor slettes det (auto-oprettet og tomt), ellers stoppes og slippes
|
||||
-- det (bliver spillerens eget). (in-game 30/9: ellers 12 tomme "Kæde: …"-flows blandt spillerens egne)
|
||||
function ADChainActions.releaseAction(run)
|
||||
if #(run.vehicleIds or {}) == 0 then return "delete" end
|
||||
return "release"
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user