Created
May 14, 2022 17:36
-
-
Save kbakdev/12b03f014d2cd2cb25b541f6d0ceb18b to your computer and use it in GitHub Desktop.
loop for calling module role.harvester
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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