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.
Summary
Features "Add widgets for bodypart status"
Purpose of change
Widget to indicate bitten, bleeding, and/or infected status by comma-separated list of words, with colorization by limb_color.
Describe the solution
display::bodypart_status
- bitten, bleeding, and/or infecteddisplay::bodypart_status_text_color
- colorized status for partbp_status_text
widget_var - showingbodypart_status_text_color
data/json/ui/sidebar.json
Describe alternatives you've considered
Unfortunately, these take up a large amount of space; it is not really practical to squish all six into two or even three rows like the HP widgets do, without implementing a more condensed way of showing this info. Showing letters or symbols for each status would make this possible at the cost of intelligibility.
For now, I mostly want it to be possible to see all this info, and not just as a bunch of color codes applied to each limb.
There's an opportunity to expand this feature considerably, to show several other status effects on limbs:
I
may dodid some of these in this PR as well.Testing
Run
tests/cata_test '[widget][bp_status]'
Configure your sidebar, and enable the "custom" sidebar. Ensure the "Body Part Status" widget is toggled on and visible.
Have monsters attack you, or debug add effect statuses to various body parts.
Save game with a character having various bodypart ailments and treatments, to save time adding all of them yourself: BodyPartStatuses.zip
Additional context
Body part statuses with individual coloration:
These new status colors are slightly different than the old ones, for several reasons:
New colors include:
Split from #53874