Overmind icon indicating copy to clipboard operation
Overmind copied to clipboard

Feature: queen bunker filling logic tweaks

Open YukkuriC opened this issue 4 years ago • 0 comments

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

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 undefined to 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 tsconfig configuration (no config changes)
  • [x] Tested changes on PUBLIC server (still running)

YukkuriC avatar Jan 20 '21 12:01 YukkuriC