Jump to content

Rounding issues


SchlauFuchs
  • Branch: Live Branch Version: Windows Pending

Hi, 

There might be a floating point rounding issue:

5b7494c9af3da_Screenshot2018-08-1608_55_16.thumb.png.30a20d5a14b56f145f379131c97debdd.png

As a developer I would recommend to change the logic check from basically isAvailable(resource, amount) to isAvailable(resource, amount*0.999), that would give the recipe a one thousands tolerance. In this case, the recipe task can be executed if at least 4995g of Egg shell would be available.

In a similar way this could be applied to sanitize all consumers rounding issues.


Steps to Reproduce
Just playing.



User Feedback


This bug has followup issues. I constantly notice my Couriers to pick up arbitrary amounts of Egg Shell in the milligrams range.

5b75e45dbaee3_Screenshot2018-08-1708_52_21.thumb.png.6ed337140a911805d31a6c4338c6ad28.png

Edited by SchlauFuchs

Share this comment


Link to comment
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
  • Create New...