Evolve icon indicating copy to clipboard operation
Evolve copied to clipboard

Crafting tooltips and rounding errors

Open ThatScar opened this issue 2 years ago • 0 comments

v1.3.8a I've noticed +5 brick crafting results didn't line up with +1, +25 and +125 crafting.

+1 image +5 image +25 image +125 image (notice how they yield 3, 13, 75, 325 bricks respectively, which does not align with a geometric progression of 5)

It turns out, it's not the +5 that's wrong but the others are! The above screenshots were made while 2x speed is running. When paused, the numbers correctly say 2.5, 12.8, 63.7 and 318.8 bricks crafted for +1 +5 +25 +125 buttons - which is how many bricks you actually get when clicking those buttons (2.55, 12.75, 63.75, 318.75 to be exact). Unfortunately, to look at +25 and +125 tooltips, you have to start holding shift before pausing the game, which is weird (should I make a separate issue for that?)

So yeah, 325 is definitely not a good way to round 318.75 and should be fixed

Lastly, I want to mention that the individual tooltip elements are out of sync and the resulting brick number always updates slower than the cost and it's slow enough that I read the wrong number at a glance - here's a screenshot when hovering over +5 and just after starting to hold shift. Observe how the result still says "13 Brick" for +5 but the cost already says "5000 Cement" for +125. image

ThatScar avatar Jun 10 '23 14:06 ThatScar