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

Add way to have ResearchItems that autocompletes once all parents are unlocked #23

Open
MalkContent opened this issue Aug 14, 2016 · 0 comments

Comments

@MalkContent
Copy link

MalkContent commented Aug 14, 2016

Say we got ResearchItem("MYVIRTUALITEM", "MYCATEGORY").setParents("FOCUSPOUCH", "ELEMENTALTOOLS") and I want "MYVIRTUALITEM" to autounlock once both "FOCUSPOUCH" and "ELEMENTALTOOLS" are complete.
As far as I can tell this isn't possible at the moment. I tried .setAutoUnlock(), but that just unlocks it right away, regardless of parents. I tried adding nothing (in hopes that virtual ResearchItems get handled differently in that regard), but that did... nothing x). I tried getting both parent researches and adding "MYVIRTUALITEM" to their sibling list, which sort of worked. The problem there was that researching "FOCUSPOUCH" would directly finish "MYVIRTUALITEM", and presumably because finishing a research backchecks that all parents are unlocked, also finish "ELEMENTALTOOLS" and all its parents.
Bottom line: I'd like the last method to work as I intented it. Maybe add some functions to make setting up this kind unlocking easier.
If it still makes sense to contribute to this Api, what with TC II in the air, please tell me and I can see if I can figure out how to make a proper pull request :D

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