Mirroar / hivemind

Fully automated open source AI core for the game screeps. Also usable as an opponent on private servers.
MIT License
29 stars 10 forks source link

Partially resolve issue #60 #61

Closed Morningtea7 closed 2 years ago

Morningtea7 commented 2 years ago

Minerals are not automatically stored into a container like energy does. Simply making harvesters deposit resources when applicable keeps them mining.

Mirroar commented 2 years ago

This part of the code is just optimization to save CPU when standing on a container during harvesting. It shouldn't be removed.

For the multiple mineral harvesters I would check src/spawn-role/harvester.minerals.ts to find out why they're spawned with the wrong role.

Mirroar commented 2 years ago

The underlying problem has been fixed with PR #62.