Display ballast ratio in sub editor #15714
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The ballast ratio is the total hull volume divided by the volume of hulls containing the word "ballast". This is the same approach as the "Wet room" detection.
The purpose is ease-of-use when building submarines and trying to figure out ballast tank sizes.
Current workflow:
New workflow
Note
I'm currently reusing the ballast translation from the roomname which is usually an i18n no-no. Since translations are not part of this repo, this will have to be addressed upstream.
Potential future PR
I would like to propose making the optimal neutral ballast level calculation automatic too in another PR. It might look like this:
Any thoughts?