Quality Recipes Core


Overhauls quality mechanic to allow creation of recipes for quality items.

Internal
4 days ago
2.0
7
Factorio: Space Age Icon Space Age Mod
Owner:
AzzyBunn
Source:
https://github.com/DeltaFA/Quality-Re...
Homepage:
N/A
License:
GNU GPLv3
Created:
21 days ago
Latest Version:
0.2.0 (4 days ago)
Factorio version:
2.0
Downloaded by:
7 users

Quality Recipes Core

Overhauls quality mechanic to allow creation of recipes for quality items.

When selecting a recipe with a quality level higher than normal it'll replace it with a custom recipe.
It replaces the default mechanic.

Usage

Replacing recipes is done by adding a new recipe with name qrc_[quality]_[recipe-to-replace].
Example:

name = "qrc_legendary_fast-inserter",

Output items now support quality tag.
Example:

{type = "item", name = "fast-inserter", quality = "legendary", amount = 1}

Example

This recipe will replace the Fast Inserter recipe of Legendary quality.

{
    type = "recipe",
    name = "qrc_legendary_fast-inserter",
    energy_required = 1,
    enabled = false,
    ingredients = {
        {type = "item", name = "steel-plate", amount = 2},
        {type = "item", name = "advanced-circuit", amount = 1},
        {type = "item", name = "inserter", amount = 1},
    },
    results = {
        {type = "item", name = "fast-inserter", quality = "legendary", amount = 1}
    }
}