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

JSONify health text widget #55320

Merged
merged 4 commits into from
Feb 13, 2022

Conversation

dseguin
Copy link
Member

@dseguin dseguin commented Feb 12, 2022

Summary

None

Purpose of change

Contributes to #55076.

Describe the solution

Convert the health_text widget_var to conditional clauses, and remove orphaned functions.

Describe alternatives you've considered

Testing

Piggy-backing off the existing health widget test to check the new conditional clauses.

Also tested in-game:

Player health Health widget
101 health_excellent
51 health_verygood
11 health_good
0 health_ok
-11 health_bad
-51 health_verybad
-101 health_horrible

Additional context

@github-actions github-actions bot added astyled astyled PR, label is assigned by github actions json-styled JSON lint passed, label assigned by github actions labels Feb 12, 2022
@dseguin dseguin force-pushed the widget_migrate_health branch from 65c5eb8 to f0e71a4 Compare February 12, 2022 23:36
@dseguin dseguin marked this pull request as ready for review February 13, 2022 00:08
@github-actions github-actions bot added the BasicBuildPassed This PR builds correctly, label assigned by github actions label Feb 13, 2022
@kevingranade kevingranade merged commit cff82b3 into CleverRaven:master Feb 13, 2022
@dseguin dseguin deleted the widget_migrate_health branch February 13, 2022 06:10
@Maleclypse Maleclypse added the Info / User Interface Game - player communication, menus, etc. label Feb 14, 2022
SurFlurer added a commit to SurFlurer/Cataclysm-DDA that referenced this pull request Mar 19, 2023
dseguin pushed a commit that referenced this pull request Mar 19, 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 Info / User Interface Game - player communication, menus, etc. json-styled JSON lint passed, label assigned by github actions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants