Page 1 of 1

[0.18.1][Modding] Recipe with multiple same results

Posted: Mon Jan 27, 2020 3:26 pm
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 1311 times
Kind regards
lovely_santa

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

Posted: Mon Jan 27, 2020 3:40 pm
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}
    }
...

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

Posted: Mon Jan 27, 2020 4:48 pm
by Klonan
Since the Lua is there almost specifically for this case, I would say its not a bug