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.
Disclaimer: This is NOT an actual pull request, as in, I don't want this code to be merged, because the code is in no way in a mergeable state.
However, I was using the addon and was in the need of a tile randomizer to make my life easier, so I decided to implement it on my own up to the point where I needed it to be, and since I saw that your plans for development include tile randomizer I decided to share the code I wrote with you.
The code works with groups of tiles selected from the tileset, or with patterns saved in the patterns tab.
You can activate it or deactivate it with the "dice" button in the context menu, and the scatter value does nothing right now.
I also introduced an "allow tiles to repeat" flag that, when false, makes it so the same tile can't be chosen twice in a row.
This flag is false by default and there's no way to change it in the GUI right now, if you want to set it to true you'd need to modify the addon code.
I hope the code is of help if/when you decide to work on the tile randomizer yourself.
Thanks a lot for the addon!