Skip to content

Commit

Permalink
Don't make pocket when no pipe #421
Browse files Browse the repository at this point in the history
  • Loading branch information
pvaiko committed Jan 8, 2022
1 parent 1653fa9 commit 01da116
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/ai/AIDriveStrategyCombineCourse.lua
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,10 @@ function AIDriveStrategyCombineCourse:isFull()
end

function AIDriveStrategyCombineCourse:shouldMakePocket()
if not self.pipe then
-- no pipe, no sense making a pocket (like cotton harvesters)
return false
end
if self.fruitLeft > 0.75 and self.fruitRight > 0.75 then
-- fruit both sides
return true
Expand Down

0 comments on commit 01da116

Please sign in to comment.