hivemind
hivemind copied to clipboard
Better empire resource distribution
The current trade network code just tries to spread resources across rooms relatively evenly, making sure every room has access to pretty much every resource we own. This works, but is not very efficient.
Some resources, like Power and energy, are fine with the current system (every room needs them at some point). Others are obviously only needed in certain rooms, for example Ops.
Minerals and compounds should be distributed more efficicently:
- Only our best boosts should be available in every room
- There should be an empire-wide calculation which rooms should produce which compounds in labs, prioritizing compounds using the room's own mineral type.
- Resources not used in any of the selected reactions should not be stored in that room