You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 6, 2025. It is now read-only.
Only just found out about this mod and was wondering if it'd possible to add something like flib_technology.is_researchable(technology). I have a very small mod and had to "implement" (I copied it from another mod) this, however, it only kind of works, since some technologies don't list all of their prerequisites (for example, the weapon damage and speed improvements don't list them all so the graph doesn't get cluttered) it's possible that this returns true when really the technology cannot be researched.
localflib_technology.is_researchable(technology)
if (nottechnology.enabled) ortechnology.researchedthenreturnfalseendfor_, prerequisiteinpairs(technology.prerequisites) doifnotprerequisite.researchedthenreturnfalseendendreturntrueend
I'm sure this could be improved, however, I don't have enough understanding of the Factorio data structures to know how to make those improvements.