Resource icon

TBQ's Resource Allocation Improvements 0.4.0

0.4.0
  • Add a distant lands indicator on settlements that qualify.
    distant-lands-icon.png
  • Add a Distant Only? toggle that filters the list for only distant cities
  • Replace the useless Factories toggle with a new Factories Only? toggle that filters the list to only show settlements with factories
  • Group the filters into categories with labels by behavior.
    filter-categories.png
  • The * Only? filters respect the choices of showing/hiding Cities and Towns
  • Filters are hidden when they are not applicable to any player settlements
  • Sorting of settlements now uses comparisons by locale appropriate lowercase settlement name
  • Tested with 1.1.1 patch 1
  • Other under the hood and development process improvements
New Factory Features
* Placing a factory resource directly onto an empty factory slot will attempt to fill all empty city slots with available copies of the given resource. Use this to quickly fill a city with a factory resource.
* Middle clicking a factory slot that has resource already assigned will remove all copies of that factory resource from the city. Use this to quickly clear a factory.
Behind-the-scenes code improvements, with the goal of improving compatibility with any other mods that change the resource allocation screen.



Technical Details:
* Separates sorting and unassignment into separate atomic action groups
* Uses the decorator pattern to enhance the resource allocation screen
* Utilizes prototypes to monkey patch the existing ResourceAllocation model instance
* No longer overrides any core game files directly
* Encapsulates button logic with a Component
Back
Top Bottom