- Replace only inside region
- Replace with chance
- Select instances using AND, OR, or independent
To manage all that, I needed to give this tool its own config window.
When the Remapper is started, it copies the selected tiles to its own array. Then, it allows the user to select the tiles with which they will be replaced. Given the bound region (selectable with R followed by mouse clicks, or clearable with U), it will go through each tile and evaluate it with a selector. "And" requires every active plane of that tile to match the starting set. "Or" will go ahead if at least one plane matches up. "Independent" will just check each plane independently and perform the replace operation on one plane at a time.
Once it has found a point to replace, it rolls the dice, weighted as the user configures it. If the chance is independent, each plane has its own chance to be replaced. If not, it won't do anything if the roll fails, but will apply the operation to all active planes if it succeeds.
I also started documenting Abiathar using HelpNDoc. Writing technical manuals is actually really fun!
No comments:
Post a Comment