screeps
screeps copied to clipboard
[LOGIC REFINE]only do destroyStructureSpawn after you have at least several Spawns now.
failure of XenoAmess, from https://screeps.com/a/#!/history/shard1/E49S27?t=42643500 to https://screeps.com/a/#!/history/shard1/E49S27?t=42645100 , shows it is really dangerous to destroy StructureSpawn when you have too few destroyStructureSpawn, so please only do it when you have another 2, at least you will not die like what XenoAmess suffered.
Why not just when there are 2+ spawns? Your issue only happened when there was 1 and it tried to be rebuilt
Your issue only happened when there was 1 and it tried to be rebuilt
Yep, sadly the original codes be too confident about the rebuilt, which comes to a failure.
Why not just when there are 2+ spawns?
because I still think 2 is not safe enough... besides there would be a config to change it.
OK seems there is a really mean test there, so I just would set the default config to 1 I will strongly suggest make this config at least to 2, or even 3, but I will not force others. :)
This pull request was merged by worlddriven.