There should be a setting for re-planning existing rooms automatically or not. Having all your rooms deconstructing and constructing several structures after a code update isn't something everybody might want, but it's fine for a private server bot enemy.
Ideally, when disabled, we show a message to the user and allow manually triggering the re-planning:
Room layouts need to be updated for room E10S20. Run hivemind.rePlanRoom('E10S20') when you're ready to do so.
It would be even cooler if there was a list of changes that are made, for example:
- The last piece of road on the path to the controller will be removed.
- Room center is recalculated. Every structure apart from nukers will possibly be rebuilt elsewhere. Sorry about that.
There should be a setting for re-planning existing rooms automatically or not. Having all your rooms deconstructing and constructing several structures after a code update isn't something everybody might want, but it's fine for a private server bot enemy.
Ideally, when disabled, we show a message to the user and allow manually triggering the re-planning:
It would be even cooler if there was a list of changes that are made, for example: