Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

decimal truncation glitch #38

Open
marhawkman opened this issue May 4, 2020 · 0 comments
Open

decimal truncation glitch #38

marhawkman opened this issue May 4, 2020 · 0 comments
Labels
bug Something isn't working good first issue Good for newcomers
Projects
Milestone

Comments

@marhawkman
Copy link

Describe the bug
I'm not sure how many places this happens but I know at least one.
queuecountC
It seems to be calculating total YearsToCompletion by adding up the YTC of each item. BUT items with <1 YTC get truncated to 0 YTC, thus when it adds them up it sees the total as 0 YTC. In this example the system has 61 resources, total needed is 75. Thus the actual YTC is 2.

What else does this? I'm not sure since I can't look at the code. But things I've seen where the math has behaved in unexpected ways:
Mining on planets seems to give less than it feels like it should I've seen planets just not produce anything even with 9 or more mines.
Population growth, well, there's a side request here, but it feels like pop growth isn't getting rounded properly.
Ships will decelerate due to running out of fuel one turn BEFORE they run out of fuel.

@marhawkman marhawkman added the bug Something isn't working label May 4, 2020
@ekolis ekolis added the good first issue Good for newcomers label May 5, 2020
@ekolis ekolis added this to To do in gui via automation May 5, 2020
@ekolis ekolis added this to the 0.4.3 milestone May 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
gui
  
To do
Development

No branches or pull requests

2 participants