feat: udkørsel "Lever også til" (fodring med samme vogn) + låst traktor og vogn til flowet
This commit is contained in:
@@ -46,6 +46,9 @@ function ADRunsStorage.writeRecords(xmlFile, records)
|
||||
xmlFile:setString(key .. "#sourceBuildings", record.sourceBuildings or "")
|
||||
xmlFile:setString(key .. "#targetBuildings", record.targetBuildings or "")
|
||||
xmlFile:setString(key .. "#storeBuildings", record.storeBuildings or "")
|
||||
-- udkørsel: "Lever også til" + låst sæt (20/10)
|
||||
xmlFile:setString(key .. "#feedBuildings", record.feedBuildings or "")
|
||||
xmlFile:setInt(key .. "#lockSet", record.lockSet or 0)
|
||||
xmlFile:setString(key .. "#products", record.products or "")
|
||||
xmlFile:setInt(key .. "#sellAt", record.sellAt or ADRuns.DEFAULT_SELL_AT_PERCENT)
|
||||
xmlFile:setInt(key .. "#storeAbove", record.storeAbove or ADRuns.DEFAULT_STORE_ABOVE_PERCENT)
|
||||
@@ -90,6 +93,8 @@ function ADRunsStorage.readRecords(xmlFile)
|
||||
sourceBuildings = xmlFile:getString(key .. "#sourceBuildings"),
|
||||
targetBuildings = xmlFile:getString(key .. "#targetBuildings"),
|
||||
storeBuildings = xmlFile:getString(key .. "#storeBuildings"),
|
||||
feedBuildings = xmlFile:getString(key .. "#feedBuildings"), -- nil i gemme fra før feltet
|
||||
lockSet = xmlFile:getInt(key .. "#lockSet"),
|
||||
products = xmlFile:getString(key .. "#products"),
|
||||
sellAt = xmlFile:getInt(key .. "#sellAt"),
|
||||
storeAbove = xmlFile:getInt(key .. "#storeAbove"),
|
||||
|
||||
Reference in New Issue
Block a user