-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Eliminate Self-Aware trait and replace it with sidebar widgets #53802
Conversation
dd35fb1
to
2fb2048
Compare
Is there any ingame non-debug non-nurse way to see your exact HP on your limbs? Asking because super-low-HP characters benefit from this trait a lot, since when difference between '|||' and '|||||' is 3 points bars don't provide any useful information at all. |
Does this imply that health stat can now be made visible for ex. in @ menu in a textified approximation form: very bad, bad, average, good, very good? |
Super-high-HP characters, too. Maybe it's just my weird little brain, but I really struggle to comprehend what ||\ means on a character with 171 hit points. But I guess if it's staying as a debug trait, you can always just turn it on. |
maybe make small CBM with his effect is a good idea? |
Yes, that would be awesome. |
I've added numeric versions of the graphical bodypart HP widgets for the custom moddable sidebar. I was planning to do this anyway in a future PR, but now is a good time to add them. The HP numbers are not enabled by default, but you will be able to easily add them (or replace the graphs with numbers) by simply editing your {
"id": "root_layout_wide",
"type": "widget",
"style": "layout",
"arrange": "rows",
"widgets": [
"hitpoint_graphs_top_layout",
"hitpoint_graphs_bottom_layout",
"hitpoint_nums_top_layout",
"hitpoint_nums_bottom_layout",
"sound_fatigue_focus_layout",
"stamina_speed_move_layout",
"stats_layout"
]
}, This is how it renders in the "Custom" section of the wide sidebars: After #51438 is completed and merged, this will be something you can add/remove/toggle/rearrange like any other sidebar section. Encumbrance, warmth, and wetness numbers are coming soon too - no "Self-Awareness" required. |
In that case, I don't think the move to a debug trait is necessary, just straightforward obsoletion. |
No, hidden health value is not displayed directly anywhere else I'm aware of; there is only the hint when you wake up from sleep, from the Edit Indeed it was not, and why wait. Included in this pull request now are two new widgets, |
- src: Factor out all code references to SELFAWARE trait - data: Remove SELFAWARE from starting traits - data: Change SELFAWARE to OPTIMISTIC for Meditation hobby - data/mods: Remove SELFAWARE from all mods - tests: Remove SELFAWARE from test that doesn't need it
- Implement new widget_vars `health` and `health_text` - Add widget JSON for HP numbers, health numbers/text
84c28d3
to
7bc8224
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for fixing mods while you were here. Those looked good. Not approving since there is more to this PR than the mod stuff I reviewed and I don't feel qualified to check those parts :)
Summary
Bugfixes "Eliminate Self-Aware trait and replace it with sidebar widgets"
Purpose of change
The Self-Aware trait is kind of goofy, and of minimal utility. If taken at character creation time, it comes with an "Activate" function that simply displays the current hidden health stat. The only other thing it does is display raw hit point and pain numbers in the sidebar, and bandaging window.
Resolves #53473
Describe the solution
SELFAWARE
mutation from all code and dataSELFAWARE
from trait groups and scenarios in mods.SELFAWARE
instance withOPTIMISTIC
, for the "Meditation" hobby.Replace with widgets:
hitpoint_nums_top_layout
andhitpoint_nums_bottom_layout
to sidebar JSONwidget_var
variableshealth
andhealth_text
in widget classhealth_num
andhealth_text
, which players may add to their sidebars by editingsidebar.json
There is already a
pain_num
widget that can display numeric pain values, which was the concern with the original issue #53473Describe alternatives you've considered
Inventing new ways to make the trait make sense and be more useful. Discarded the idea after consulting with Kevin and other developers; future development direction will make this trait not worth the effort of maintaining.
Previously considered moving it to a
DEBUG_SELFAWARE
mutationTesting
Debug mutate the newNo longer applicableDEBUG_SELFAWARE
trait and see that it does whatSELFAWARE
has always done.Save a game with a character having
SELFAWARE
, then load it after this patch - error message is displayed as expected, saying the unknown trait will be ignored. The error does not reoccur after saving and loading again.Additional context
Screenshot of custom sidebar with
hitpoint_nums_top_layout
andhitpoint_nums_bottom_layout
added just below the regular HP bars:Cropped shots of the
health_num
andhealth_text
widgets with different health values:Existing
pain_num
andpain_desc
added to custom sidebar: