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
+1 -1
View File
@@ -114,7 +114,7 @@ local function isBusy(vehicle)
local id = ADRunsController ~= nil and ADRunsController.getVehicleId(vehicle) or nil
if id ~= nil and ADFieldJobs ~= nil and ADFieldJobs.state ~= nil and (ADFieldJobs.state.assignments or {})[id] ~= nil then return true end
if ADRunsController ~= nil and ADRunsController.getActiveRunForVehicle(vehicle) ~= nil then return true end
if ADLivestock ~= nil and ADLivestock.isBusy ~= nil and ADLivestock.isBusy(vehicle) then return true end
if ADLivestock ~= nil and ADLivestock.isOnTrip ~= nil and ADLivestock.isOnTrip(vehicle) then return true end
if ADPlayerTransport ~= nil and ADPlayerTransport.isPickup ~= nil and ADPlayerTransport.isPickup(vehicle) then return true end
return ADFlowWagons ~= nil and ADFlowWagons.statusOf ~= nil and ADFlowWagons.statusOf(vehicle) ~= nil
end