There is LuaItemPrototype::module_effects, but it is very difficult to properly calculate the effects of a module with given quality due to integer math and rounding going on. This problem got more serious with the addition of QualityPrototype::default_modifier. It's very difficult to reproduce the rounding behavior in Lua.
I'd like to see a method LuaItemPrototype::get_module_effects(quality?) that returns module_effects multiplied by the quality multiplier, with proper rounding.
LuaItemPrototype::get_module_effects(quality?)
Re: LuaItemPrototype::get_module_effects(quality?)
Okay, added for 2.0.67.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.