Basic readme and main.ts
This commit is contained in:
@@ -1,3 +1,11 @@
|
||||
export function loop() {
|
||||
|
||||
// Clear non-existing creep memory.
|
||||
for(let name in Memory.creeps) {
|
||||
if(!Game.creeps[name]) {
|
||||
delete Memory[name];
|
||||
}
|
||||
}
|
||||
|
||||
console.log(`Current tick is ${Game.time}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user