JonathanSafer / screeps

Screeps AI
MIT License
25 stars 7 forks source link

balance spawn process #129

Closed JonathanSafer closed 3 years ago

JonathanSafer commented 4 years ago

spawn queue creeps shouldn't come last or first, rather they should be spawned as if they were under quota

JonathanSafer commented 4 years ago

maybe take the role of the first creep in queue and drop the associated role count to 0 for that tick?

jordansafer commented 4 years ago

I don’t think i understand. what is the role count?

JonathanSafer commented 4 years ago

The role count is the census that is used to determine if we have enough of each role

jordansafer commented 4 years ago

i think we should put things in the spawn queue based on the census. so if we don’t have enough of a certain role we add it to the spawn queue. we can add logic to the spawn queue later to prioritize certain roles

JonathanSafer commented 3 years ago

SpawnQueue now gets sorted by spawn priority