feat: slagtesalg pr. stald fordelt over måneder + fast traktor; ingen global dyre-indstilling

This commit is contained in:
2026-10-19 19:05:49 +02:00
parent 726519b3ab
commit 93edec303d
11 changed files with 272 additions and 19 deletions
+2
View File
@@ -1769,6 +1769,7 @@ function ADRunsController.save()
-- kædens tilstand (tændte mellemled, pausede kæder, afviste forslag) — samme gem-regel som navnefilen
if ADChain ~= nil and ADChain.save ~= nil then pcall(ADChain.save) end
if ADSellBlock ~= nil and ADSellBlock.save ~= nil then pcall(ADSellBlock.save) end
if ADLivestock ~= nil and ADLivestock.save ~= nil then pcall(ADLivestock.save) end
-- indstillingerne skrives kun ved ændring i fanen — uden dette slettede spillets gem filen (in-game 16/10:
-- "Tid mellem hver maskine" 30 s var tilbage på 10 s efter genstart)
if ADSettings ~= nil and ADSettings.save ~= nil then pcall(ADSettings.save) end
@@ -1794,6 +1795,7 @@ function ADRunsController.load(adEnv)
if ADFieldSilos ~= nil then pcall(ADFieldSilos.load) end
if ADChain ~= nil and ADChain.load ~= nil then pcall(ADChain.load) end
if ADSellBlock ~= nil and ADSellBlock.load ~= nil then pcall(ADSellBlock.load) end
if ADLivestock ~= nil and ADLivestock.load ~= nil then pcall(ADLivestock.load) end
if ADCpResume ~= nil then pcall(ADCpResume.load) end
local vehiclesById = getFarmVehiclesById(adEnv)
for _, run in ipairs(store.runs) do