Allow harvester to remove overgrown crops #83162
Merged
+7
−3
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
None
Purpose of change
Partiall address #83161 by allowing harvesters to remove overgrown crops, while still not dealing with harvestable and overgrown crops not being traversible by vehicles.
Describe the solution
Modify the harvesting code to process overgrown crops as well, to clear the tile but producing no yields.
Describe alternatives you've considered
Deal with the steel plants as well. The harvester vehicle in the game is not compatible with the fields in the game when steel plants are around:
This means game harvesters will crash into game crops on fields and gradually get destroyed unless they're rebuilt by the player before use.
Harvest straw or withered plants as some kind of generic result instead of nothing.
Testing
Teleported to overgrown field, debug spawned a reaper tractor, engaged the reaper, and tried to reap the overgrown crops at the edge of the field (so the vehicle wouldn't smash into any crops). Verified nothing happens to the crops.
Modified the code.
Repeated the above and saw the overgrown crops disappeared, with nothing harvested.
Additional context