TooAngel / screeps

TooAngel NPC / bot / source code for screeps
https://screeps.com
GNU Affero General Public License v3.0
600 stars 154 forks source link

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

Closed XenoAmess closed 1 year ago

XenoAmess commented 2 years ago

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.

CarsonBurke commented 2 years ago

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

XenoAmess commented 2 years ago

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 commented 2 years ago

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

TooAngel commented 1 year ago

This pull request was merged by worlddriven.