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

Makes the power monitor display supply/draw correctly #6030

Merged
merged 1 commit into from
Sep 29, 2023

Conversation

SingingSpock
Copy link
Contributor

@SingingSpock SingingSpock commented Sep 29, 2023

About The Pull Request

Adjusts the Javascript to make the power monitoring program display in kW correctly. Additionally, adjusts the default "PEAK_DRAW" to match the change from amounts being displayed in watts to kilowatts, which makes the progress bars actually useful. I hope to also make the number display with our better render_power method, but this is ready to be testmerged and will immediately make the program useful again. Testmerge only until I either figure it out or give up.

Why It's Good For The Game

Whoever coded the Javascript for the interface decided to make it do math directly rather than make the dm file providing the number do it. This caused the power manager's supply/draw numbers to be divided by 1,000 (and any decimals cut off), which made it pretty useless. This fixes it.

Changelog

🆑 SingingSpock
fix: The supply/draw numbers on the monitor will now display correctly.
/:cl:

@github-actions github-actions bot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Sep 29, 2023
@github-actions github-actions bot requested a review from Zandario September 29, 2023 00:24
@silicons silicons merged commit 2a71046 into Citadel-Station-13:master Sep 29, 2023
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants