EeroVakiparta / rts-bot-screeps-ms

JS bot for MMO RTS https://docs.screeps.com/api/
0 stars 0 forks source link

Calculate & adjust amount of WORK parts to available regenerative energy #6

Open EeroVakiparta opened 3 years ago

EeroVakiparta commented 3 years ago

Adjust automatically the number of creeps in the room so that energy surplus & shortage won't happen. Shortage being a worse situation here as the harvesters can be made to put excess harvested energy somewhere. Overflowing energy at the point of regeneration is lost forever.

EeroVakiparta commented 3 years ago

A good fix here can also be switching roles of current creeps. For example, setting some of them gather energy for neighbour room.

EeroVakiparta commented 3 years ago

Builders should only be created if there is something to build. Or the role should be dynamic. A general worker "drone" -creep, which switches between tasks at home, could be an answer.