An equivalent to LuaRecipePrototype::get_product_quality for rocket_launch_products

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
User avatar
Shemp
Long Handed Inserter
Long Handed Inserter
Posts: 50
Joined: Mon Jan 19, 2026 6:51 pm
Contact:

An equivalent to LuaRecipePrototype::get_product_quality for rocket_launch_products

Post by Shemp »

Factorio 2.1 added the ability for recipes to require/produce items that have a different quality to the recipe's quality, and LuaRecipePrototype has handy functions for ingredients and products to calculate their quality at runtime.

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.
Post Reply

Return to “Modding interface requests”