Make Constructor try to find pixels to dig up to 5 times #239
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.
Fixes yet another pet peeve of mine. When digging ground with the constructor, it way too often leaves singular pixels all over the place that you can't see but then then get randomly stuck on when going around dug terrain.
With this patch, if it fails to find a pixel to dig, it tries to find one again up to 4 more times instead of immediately giving up.
This doesn't make the Constructor stronger at all; in normal digging, it will still cast only a single digging ray. At best it makes it slightly more reliable when digging sparse terrain.
I guess this makes it a little more equivalent to digging tools, which typically knock off singular outstanding pixels by spraying most of what they dig all over the place.