Overmind
Overmind copied to clipboard
Feature: queen bunker filling logic tweaks
Pull request summary
Description:
alters the logic of queen_bunker overlord
Added:
- None
Changed:
- Queens now calculate which types and how much certain filling task chain requires, then drop the exceeded and pick up other required
- old code:
dump all->calc sum - new code:
calc sum->calc needed (in one iteration with not too much cost) - old task chain:
drop all (if needed)->pick all->transfer - new task chain:
drop some->pick others->transfer
- old code:
Removed:
- None
Fixed:
- When at low RCL, some spawns uses up nearly all energy and triggers spawn to recover energy - then the spawn-filling task becomes invalid because of the exceeded energy assigned, causing one extra filling task.
- What I did is to change the certain amount to
undefinedto avoid over-filling failures - energy left will be used in the next filling chain, no extra dropping, max efficiency
Testing checklist:
- [x] Changes are backward-compatible OR version migration code is included (no memory change)
- [x] Codebase compiles with current
tsconfigconfiguration (no config changes) - [x] Tested changes on PUBLIC server (still running)