default type to catch wierd undefined cases
All checks were successful
Screeps Publish / build-and-ship (push) Successful in 13s

This commit is contained in:
2025-10-21 12:42:24 -05:00
parent ca32e4f9f0
commit fe6b64b34e

View File

@@ -10,7 +10,7 @@ function spawnCreeper() {
if (totalCreeps >= 8) return;
let workload = [WORK, CARRY, MOVE];
let name = "creep" + Game.time;
let role = "";
let role = "harvester";
if (totalCreeps < 2) {
role = "harvester";
} else if (totalCreeps < 4) {