Skip to content

Instantly share code, notes, and snippets.

@kbakdev
Created May 14, 2022 17:36
Show Gist options
  • Save kbakdev/12b03f014d2cd2cb25b541f6d0ceb18b to your computer and use it in GitHub Desktop.
Save kbakdev/12b03f014d2cd2cb25b541f6d0ceb18b to your computer and use it in GitHub Desktop.
loop for calling module role.harvester
var roleHarvester = require('role.harvester');
module.exports.loop = function () {
for(var name in Game.creeps) {
var creep = Game.creeps[name];
roleHarvester.run(creep);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment