The-International-Open-Source icon indicating copy to clipboard operation
The-International-Open-Source copied to clipboard

score rampart repair targets somewhat based on damage received last tick

Open CarsonBurke opened this issue 1 year ago • 2 comments

image

  • store damage values in a coord map intra tick

CarsonBurke avatar Jul 10 '23 05:07 CarsonBurke

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

CarsonBurke avatar Sep 06 '23 22:09 CarsonBurke

https://github.com/The-International-Screeps-Bot/The-International-Open-Source/pull/699/files modified version of this using heap to store damage values

CarsonBurke avatar Dec 23 '23 09:12 CarsonBurke