feat: slagteklare dyr køres til dyrehandleren (pr. stald, lånt traktor + kreaturvogn)

This commit is contained in:
2026-10-19 16:31:34 +02:00
parent 4fe3c586eb
commit 139431e8de
13 changed files with 499 additions and 1 deletions
+4
View File
@@ -2026,6 +2026,10 @@ function ADSmartPickup:update(dt)
local okLock, errLock = pcall(ADTriggerLock.tick, getAutoDriveEnv(), dt)
if not okLock then Logging.warning(ADSmartPickup.LOG_PREFIX .. "trigger-lås fejlede: %s", tostring(errLock)) end
end
if ADLivestock ~= nil and ADLivestock.tick ~= nil then
local okLive, errLive = pcall(ADLivestock.tick, getAutoDriveEnv(), dt)
if not okLive then Logging.warning(ADSmartPickup.LOG_PREFIX .. "dyretransport fejlede: %s", tostring(errLive)) end
end
if ADStrayUnload ~= nil then
local okStray, errStray = pcall(ADStrayUnload.tick, getAutoDriveEnv(), dt)
if not okStray then Logging.warning(ADSmartPickup.LOG_PREFIX .. "fuldt mål fejlede: %s", tostring(errStray)) end