[0.18.1][Modding] Recipe with multiple same results

Bugs that are actually features.
User avatar
lovely_santa
Filter Inserter
Filter Inserter
Posts: 502
Joined: Sat Feb 18, 2017 9:41 pm
Contact:

[0.18.1][Modding] Recipe with multiple same results

Post by lovely_santa »

Hello,

When hovering over a recipe, it shows the recipe itself, and underneath it shows the items of each result. When creating a recipe with twice the same result, it will show this item twice, which should only appear once instead, as shown in the picture below:
Capture.PNG
Capture.PNG (1.25 MiB) Viewed 1309 times
Kind regards
lovely_santa
You can find all my mods on the mod portal. Also helping on Arch666Angel's mods.
Image
User avatar
AmatorPhasma
Fast Inserter
Fast Inserter
Posts: 126
Joined: Sat Aug 05, 2017 8:20 pm
Contact:

Re: [0.18.1][Modding] Recipe with multiple same results

Post by AmatorPhasma »

I think this works as intended, and if so a "workaround" is to set "show_details_in_recipe_tooltip = false" on one of the product.

like:

Code: Select all

...
recipe.normal.results = {
        {type='item', name='apm_wood_pellets', amount=3},
        {type='item', name='apm_wood_pellets', amount_min=1, amount_max=1, probability=0.5, show_details_in_recipe_tooltip=false},
        {type="fluid", name="apm_dirt_water", amount=20}
    }
...
User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5286
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: [0.18.1][Modding] Recipe with multiple same results

Post by Klonan »

Since the Lua is there almost specifically for this case, I would say its not a bug
Post Reply

Return to “Not a bug”