-
Notifications
You must be signed in to change notification settings - Fork 157
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
fixed: mineral handling #703
base: master
Are you sure you want to change the base?
Conversation
moved handleReaction to prototype_room_mineral.js added Room.prototype.getEnergy
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉 I like to see, that there is progress on mineral handling and boosting.
Left some smaller comments. I need a bit more time to review and understand it fully.
- reduce findMyCreepsOfRole - remove duplicate if's - fast return
- buyEnergy if we have terminals and storage, mineral creeps should move energy to storage for builders and upgrader sell PR TooAngel#703 - fixed quests.js for incoming transactions
basically thats the first part of mineral getting back to work |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The builder logic should be improved. This rest is hopefully fine :-)
if (lab0 === null || lab1 === null || lab2 === null) { | ||
delete this.memory.reaction; | ||
return false; | ||
} else { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
} else { | |
} |
(move the }
up)
The if
clause ends with a return
. It is a bit easier to read.
moved handleReaction to prototype_room_mineral.js
added Room.prototype.getEnergy