fix: antal aflæsningsvogne kan vælges hele høsttrinnet (v1.62.21)

This commit is contained in:
2026-10-04 23:29:06 +02:00
parent 9ff92c0e34
commit e15809e4e6
3 changed files with 5 additions and 2 deletions
+3 -1
View File
@@ -51,6 +51,8 @@ end
-- Der høstes (mejetærsker + aflæsningsvogne) nu eller senere.
local function harvestInvolved(guide)
local t = target(guide.draft)
-- marken er i høsttrinnet: også når det meste er høstet og scanningen kalder den "bar" (in-game 4/10: F14)
if guide.draft.harvesting then return true end
return info(guide).kind == "harvest" or (t ~= "" and not isMowable(guide.context, t))
end
@@ -119,7 +121,7 @@ local function draftFrom(field, context)
plan.rigIds = plan.rigIds or {}
local mode = storeModeOf(plan.storeBuildingIds, context.fieldSilos)
return {
fieldId = field.id, plan = plan, originalTarget = plan.targetFruit or "",
fieldId = field.id, plan = plan, originalTarget = plan.targetFruit or "", harvesting = field.stage == "harvesting",
prepAuto = isPrepAuto(plan), careAuto = isCareAuto(plan), useDedicated = #plan.rigIds > 0,
storeMode = mode, storeIds = mode == "manual" and ADGuide.deepCopy(plan.storeBuildingIds) or {},
}
+1 -1
View File
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<modDesc descVersion="107">
<author>masterdraco</author>
<version>1.62.20.0</version>
<version>1.62.21.0</version>
<title>
<en>AD Smart Pickup</en>
</title>