fix: antal aflæsningsvogne kan vælges hele høsttrinnet (v1.62.21)
This commit is contained in:
@@ -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,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>
|
||||
|
||||
Reference in New Issue
Block a user