Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve our creep creator #7

Closed
resir014 opened this issue Jul 5, 2016 · 3 comments
Closed

Improve our creep creator #7

resir014 opened this issue Jul 5, 2016 · 3 comments

Comments

@resir014
Copy link
Owner

resir014 commented Jul 5, 2016

Right now the method of creating a new create*() and *GoToWork() method every time we add a new role is not even DRY at all. We should create a single createNewCreep() and creepsGoToWork() that takes a role: string parameter we we can work from there.

This new creep creator will also need to support multiple possible body parts. e.g. [WORK, CARRY, MOVE] for "emergency mode", [WORK, WORK, CARRY, CARRY, MOVE], if we could create a stronger creep & a certain number of creeps already exists. Or even add another, much stronger one, later on.

The output of creeps would need to be balanced so that we don't end up with a lot of "emergency" creeps after RCL 2.

@ChaoticWeg
Copy link
Collaborator

Can/should we close issue #6 in favor of this one?

@resir014
Copy link
Owner Author

Yes, we should. Closing #6 now.

@resir014
Copy link
Owner Author

Should be fixed in #28. Any more fine-tuning of the body parts can be done outside of this PR/issue thread.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants