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
+2
View File
@@ -50,6 +50,7 @@ function ADRunsStorage.writeRecords(xmlFile, records)
xmlFile:setInt(key .. "#collectRound", record.collectRound or 0)
-- maskinpulje: flowet stoppet + husket vogn pr. traktor
xmlFile:setInt(key .. "#stopped", record.stopped or 0)
xmlFile:setInt(key .. "#sleeping", record.sleeping or 0)
xmlFile:setString(key .. "#wagons", record.wagons or "")
xmlFile:setString(key .. "#chain", record.chain or "")
for vehicleIndex, vehicleId in ipairs(record.vehicleIds) do
@@ -82,6 +83,7 @@ function ADRunsStorage.readRecords(xmlFile)
sellAbove = xmlFile:getInt(key .. "#sellAbove"),
collectRound = xmlFile:getInt(key .. "#collectRound"),
stopped = xmlFile:getInt(key .. "#stopped"),
sleeping = xmlFile:getInt(key .. "#sleeping"),
wagons = xmlFile:getString(key .. "#wagons"),
chain = xmlFile:getString(key .. "#chain"),
vehicleIds = {},