The-International-Open-Source
The-International-Open-Source copied to clipboard
Room pruning
When all communes are RCL 8, we have a significant number of rooms and resources stored, we are not near the next GCL level and all GCL is used in rooms:
*remember, lower score is better
- Find the commune with the highest score (getter)
- Stop if there are no claimRequests with a lower score
- Abandon the commune (roomMemory.abandon = true) (when feature is implemented this will actually do something)
- When abandonment is complete (most resources are gone or some time has passed) unclaim the room