What is it really used for?


A tool to help you find out where items and fluids come from and where they are used. This is a fork of the original 'What is it used for?' by Mr Doomah, updated for newer Factorio versions and with additional features. Russian translation by Schmarotzer. Japanese translation by shiru_tan.

Utilities
5 days ago
0.15 - 2.0
32.3K

b [FIXED] Recipes with outcomes that are less than 1 are displayed incorrectly

5 years ago
(updated 5 years ago)

To give an easy example from the base game: Uranium Ore centrifuging has its outcome displayed as 1 U235 and 1 U238.

The fix seems to be restructuring line 525 to 535 in control.lua:

            local amount = nil
            if with_amount ~= true then
                amount = with_amount
            elseif thing_to_add.amount then
                amount = thing_to_add.amount
            elseif thing_to_add.amount_min and thing_to_add.amount_max then
                amount = (thing_to_add.amount_min + thing_to_add.amount_max) / 2.0
            end
            if (with_amount == true) and thing_to_add.probability then
                amount = amount * thing_to_add.probability
            end
5 years ago

Thanks. Fixed in 1.4.4.

New response