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

Improve item volume loading #69238

Merged
merged 1 commit into from
Nov 10, 2023

Conversation

ehughsbaird
Copy link
Contributor

@ehughsbaird ehughsbaird commented Nov 10, 2023

Summary

SUMMARY: None

Purpose of change

Items can't specify volume like "40 L 500 ml".

Describe the solution

Don't roll special quantity parsing code in multiple places, just use the already written code that works better.

Testing

All item volumes load as before. Item volumes specified with two units (as above) work.

Additional context

When working on #68988, I noticed that quantities supported loading in this syntax, and I had been annoyed by the "one unit only" approach items use in the past.

Weight, length, etc already use this style.

Don't roll our own quantity parsing code in multiple places,
just use the already written code that works better.
@github-actions github-actions bot added [C++] Changes (can be) made in C++. Previously named `Code` json-styled JSON lint passed, label assigned by github actions astyled astyled PR, label is assigned by github actions labels Nov 10, 2023
@akrieger akrieger merged commit 157ab10 into CleverRaven:master Nov 10, 2023
27 of 28 checks passed
@ehughsbaird ehughsbaird deleted the item-volume-better branch November 10, 2023 18:57
@github-actions github-actions bot added the BasicBuildPassed This PR builds correctly, label assigned by github actions label Nov 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
astyled astyled PR, label is assigned by github actions BasicBuildPassed This PR builds correctly, label assigned by github actions [C++] Changes (can be) made in C++. Previously named `Code` json-styled JSON lint passed, label assigned by github actions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants