screeps icon indicating copy to clipboard operation
screeps copied to clipboard

[LOGIC REFINE]only do destroyStructureSpawn after you have at least several Spawns now.

Open XenoAmess opened this issue 2 years ago • 3 comments

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.

XenoAmess avatar Sep 06 '22 01:09 XenoAmess

Why not just when there are 2+ spawns? Your issue only happened when there was 1 and it tried to be rebuilt

CarsonBurke avatar Sep 06 '22 01:09 CarsonBurke

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.

XenoAmess avatar Sep 06 '22 01:09 XenoAmess

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. :)

XenoAmess avatar Sep 06 '22 05:09 XenoAmess

This pull request was merged by worlddriven.

TooAngel avatar Dec 29 '22 03:12 TooAngel