feat: dvale for flows uden arbejde — traktor og vogn frigives, flowet vågner selv (v1.62.58)

This commit is contained in:
2026-10-07 17:13:12 +02:00
parent ab47ac70b3
commit dd434a2fc1
16 changed files with 380 additions and 8 deletions
+3
View File
@@ -96,6 +96,7 @@ local function copyRun(run)
returnBelowPercent = run.returnBelowPercent,
vehicleIds = copyList(run.vehicleIds),
stopped = run.stopped == true,
sleeping = run.sleeping == true or nil, -- stoppet af dvale (ADFlowSleep), vækkes når der er arbejde
wagons = ADRuns.copyWagons(run.wagons),
chain = run.chain or "",
}
@@ -443,6 +444,7 @@ function ADRuns.toRecords(store)
sellAbove = run.sellAbovePercent or 0,
collectRound = run.collectRound and 1 or 0,
stopped = run.stopped and 1 or 0,
sleeping = run.sleeping and 1 or 0,
wagons = ADRuns.serializeWagons(run.wagons),
chain = run.chain or "",
}
@@ -498,6 +500,7 @@ function ADRuns.fromRecords(records)
returnBelowPercent = clampPercent(record.returnBelow),
vehicleIds = copyList(record.vehicleIds),
stopped = tonumber(record.stopped) == 1,
sleeping = tonumber(record.sleeping) == 1 or nil,
wagons = ADRuns.parseWagons(record.wagons),
chain = record.chain or "",
})