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

Display appropriate item values with less precision #37812

Merged
merged 3 commits into from
Feb 7, 2020

Conversation

Kilvoctu
Copy link
Contributor

@Kilvoctu Kilvoctu commented Feb 7, 2020

Summary

SUMMARY: Interface "Display appropriate item values with less precision"

Purpose of change

Fixes #37781.
Followup #37744.

Describe the solution

Create a new flag for thousandths level of precision.
Apply it to item volume.
Change volume rounding up from tenths to thousandths.

Describe alternatives you've considered

Leaving weight at three decimals, but I don't think it's reasonable that the player can determine weight that accurately through normal observation.

Testing

Compile, load game, spawn a stack of 10 caffeine pills.

Additional context

Before (on stack of 10 pills)
1
After
2

volume to three decimals. Everything else to what makes sense
Delete my bat for compiling
Restore rounding up and set to thousandths place, for extremely low volume items.
@ifreund ifreund added <Bugfix> This is a fix for a bug (or closes open issue) [C++] Changes (can be) made in C++. Previously named `Code` Info / User Interface Game - player communication, menus, etc. labels Feb 7, 2020
@ZhilkinSerg ZhilkinSerg merged commit d31cd4a into CleverRaven:master Feb 7, 2020
@Kilvoctu Kilvoctu deleted the less-precise-item-info branch February 8, 2020 07:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
<Bugfix> This is a fix for a bug (or closes open issue) [C++] Changes (can be) made in C++. Previously named `Code` Info / User Interface Game - player communication, menus, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Display appropriate item values with less precision
3 participants