Fixed some bugs in harvester.

This commit is contained in:
douwe
2025-08-22 00:13:32 +02:00
parent 0c8da1d472
commit 0381ea6873
4 changed files with 28 additions and 15 deletions

View File

@@ -22,6 +22,7 @@ extern "C" void loop()
spawn.process();
}
JS::console.log(std::string("\n\n\n\n\n\n\n\n\n"));
JS::console.log(std::string("Processing tick:\t") + std::to_string(Screeps::Game.time()));
DouwcoHivemind::Engine engine;
@@ -29,7 +30,6 @@ extern "C" void loop()
JS::console.log("Used CPU:\t" + std::to_string(Screeps::Game.cpuGetUsed()));
JS::console.log("Bucket:\t" + std::to_string(static_cast<int>(Screeps::Game.cpu()["bucket"])));
JS::console.log(std::string("\n\n\n"));
}
EMSCRIPTEN_BINDINGS(loop)