Closed RuriRyan closed 10 months ago
The main problem with being low level is that you can't just go out and gather more, because some gatherables may still be locked. But I understand that when you have maxed out everything you just want to gather what you actually need.
For me the whole thing takes 2.5 seconds, which is fast enough I would say.
I'm taking a slighly different approach to tackle your problem and another open FR to exlude only rare items. I'll have an update ~soon.
Thanks!
Just pushed another update which should take almost everything into account. It not only checks the inventory, but also checks if a missing material is gatherable and if it is unlocked (even if the required tool is crafted). Also added a little check if the Item to be crafted is even available at the current level.
Hey! I just pushed the version I was working on (that also checks for rare vs common materials). I do like the idea of checking for unlocked items. Things you can merge it?
BTW; thanks for your help!
I rebased my changes on the current main. I'm not 100% sure about this line: https://github.com/belzaru17/WorkshopOptimizerPlugin/pull/14/files#diff-5aa0f579e08557690b322e3fa4f1ff19b93705a84c4b2af118997274eac39b9fR195 As I can't test it right now, because of the maintenance.
Very simple implementation, totally not stolen from https://github.com/NotNite/ReSanctuary.
I don't have everything unlocked yet and am missing a lot of materials. So I can't properly test it, but at least it shows me more reasonable combinations.
Fixes: #13