Since 2.0, it is possible to launch quality items to orbit in a Rocket silo, and get the corresponding quality of items returned as rocket_launch_products. In 2.1, quality_min/max/change can affect this process as well.
I propose a new function for LuaItemPrototype, which would act similarly to LuaRecipePrototype::get_product_quality:
Code: Select all
get_rocket_launch_product_quality(product_index, item_quality?) → LuaQualityPrototype
Quality of the product given when the launched item is of a specific quality.
Parameters
product_index :: uint32
item_quality :: QualityID?
Defaults to normal.
