What is the proper way to get a list of all qualities?
Posted: Thu Dec 05, 2024 6:25 pm
I'm currently working on a mod where I need to get a list of all of the qualities in the game. This should account for all the qualities added in the qualities mod/expansion and/or any that are from some random mod.
I looked into using data.raw["quality"][?] but I'm not really sure what would even go in the second part of that dictionary definition. Based on what I've seen in the documentation (https://lua-api.factorio.com/latest/types/Data.html) that's just going to end up specifying a specific quality/item/etc... and that's not quite what I want. I want an agnostic generic list of qualities without having to know specifically what's included.
Any and all help is appreciated!
I looked into using data.raw["quality"][?] but I'm not really sure what would even go in the second part of that dictionary definition. Based on what I've seen in the documentation (https://lua-api.factorio.com/latest/types/Data.html) that's just going to end up specifying a specific quality/item/etc... and that's not quite what I want. I want an agnostic generic list of qualities without having to know specifically what's included.
Any and all help is appreciated!