Tendsty / gooboo

An idle / incremental game
GNU General Public License v3.0
78 stars 24 forks source link

Inconsistent rounding in displays #34

Open d0sboots opened 1 year ago

d0sboots commented 1 year ago

image

As discussed in another issue, the actual level of this upgrade is 9. Thus, the cost of this upgrade is 12500*1.35^9 ~= 186171.8. The gold coin gain being upgraded to is level 10. Thus, the value is 1.12^10 ~= 3.105848.

The cost is being rounded, while the stats are being truncated. (Rounding would be preferable consistently.) AFAICT, this affects a number of displays (certainly all the upgrade displays), the next-level upgrade was just the easiest to demonstrate it with.

edbrannin commented 4 months ago

(Rounding would be preferable consistently.)

Counterpoint: it's mildly annoying to see I have "3" tin ore, but actually it's 2.6 and it'll be a few minutes before it's enough for my 3-tin crafting attempt.

d0sboots commented 4 months ago

That's a related-but-different issue, which is not having enough displayed digits for the given task.