The-International-Open-Source
The-International-Open-Source copied to clipboard
score rampart repair targets somewhat based on damage received last tick
- store damage values in a coord map intra tick
ideas
- start tracking enemy rampart / wall damage when enemyAttackers are present
- After some ticks of inactivity - use roommem.lastAttacked (maybe 100) stop tracking
- track moving average - single value edited. Somewhat accurate but low global / memory usage
https://github.com/The-International-Screeps-Bot/The-International-Open-Source/pull/699/files modified version of this using heap to store damage values