resir014 / screeps

Stonehenge - Smart colony management for the game Screeps. Written in TypeScript.
https://screeps.com/a/#!/profile/resir014
14 stars 2 forks source link

Try to unfuck the mess that is MemoryManager #5

Closed resir014 closed 8 years ago

resir014 commented 8 years ago

The MemoryManager is currently just a bunch of not-DRY-at-all methods and a bunch of hacks put on top of hacks. Let's try to clean it up.

ChaoticWeg commented 8 years ago

I'll work on this.

resir014 commented 8 years ago

As per this commit: https://github.com/resir014/screeps/pull/10/commits/c0a23a0468387486faa0afa85756004d60b866de

For some reason we can't can't do null-checking on target_repair_site_id. Well, either that or the fact that obsolete repair site ids might not be nullified. I've put a temporary hack, but if possible, we might want to find a permanent solution.

ChaoticWeg commented 8 years ago

Created a new issue #19 for the issue that @resir014 mentioned. Closing this issue in favor of that one.