What did I do with this?
During my time working on Age of Wonders 4 I've become code owner of Sector Pins. This includes: Annexation Pins, Excavation Pins, Duration Pins.
Before my changes these pins were already in the game. They did not have any interactions though, they were just to display the possible province improvements that you could build in that specific sector. What they wanted me to do was change the flow of how you annex sectors. First you had to select a sector, then a vertical list would appear with buttons for each province improvement that you could build. And then you would click a button. But that did not work when you had two cities next to each other with one sector in between. Because when you would try to annex that sector all the buttons would be duplicate and there would be no clear indication of to which city it would go.
The solution to that was to make the flow different. First you select which city you would like to expand. Then all the usual province improvement indicators would appear, but now they are interactable and they have a tooltip to display how much income those province improvements would provide. And you could click the province you would like to annex, and that's it. It makes for a lot smoother experience.
I made it so that when you click that it annexes the sector. And I also made the tooltip for the sector annex pin, which includes a prediction of how much the province improvement will provide. For that I had to fix the income predictions, because they were always wrong. And after my fix I almost never heard someone say their prediction was wrong.