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

Limited reactions breaks foctotum #11

Open
alexanselmo opened this issue Dec 3, 2020 · 0 comments
Open

Limited reactions breaks foctotum #11

alexanselmo opened this issue Dec 3, 2020 · 0 comments

Comments

@alexanselmo
Copy link
Owner

https://github.com/ScreepsQuorum/screeps-quorum/blob/f6868c56ef4ba77029b506aea840cc3bf9c31415/src/roles/factotum.js#L272

I received this error when the getNextReaction() passed false to the getActiveReaction() seems possible it breaks if you are limited on the number of reactions possible?

TypeError: Cannot read property 'undefined' of undefined
at Factotum.getLabToEmpty (roles_factotum:272:50)
at Factotum.emptyLabs (roles_factotum:230:22)
at Factotum.manageCreep (roles_factotum:30:14)
at ProgramCreep.main (programs_creep:37:10)
at ProgramCreep.run (qos_process:151:10)
at QosKernel.run (qos_kernel:115:24)
at Object.module.exports.loop (main:76:10)
at __module (__mainLoop:1:52)
at __mainLoop:2:3
at Object.exports.evalCode (:15564:76)

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

No branches or pull requests

1 participant