Revolutionary-Games / Thrive

The main repository for the development of the evolution game Thrive.
https://revolutionarygamesstudio.com/
Other
2.83k stars 501 forks source link

Unify logic for displaying compound amounts with units #4895

Open Oliveriver opened 8 months ago

Oliveriver commented 8 months ago

At the moment the logic for displaying compound amounts is spread over multiple locations - the patch details panel, compound equations in tooltips, etc. - and this sometimes results in inconsistent formatting. For example, light is formatted as '100% lx' in the patch details panel but '100%' in chemical equations.

We should unify this logic and probably put it in the compound class itself.

hhyyrylainen commented 8 months ago

I added the bug label as using different units in different places will make a player who pays attention (especially when the scales are vastly different) pretty confused how they are supposed to manage to hit the incorrect numbers.