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

tweaked hunger and thirst descriptions #29543

Merged
merged 8 commits into from Apr 23, 2019

Conversation

Projects
None yet
5 participants
@KorGgenT
Copy link
Contributor

commented Apr 13, 2019

Summary

SUMMARY: Interface "Tweak hunger (and thirst) descriptions in HUD to be more useful"

Purpose of change

lots of complaints recently about the hunger logic. I decided to take another stab at making the hunger description in the sidebar be more useful for telling you when you really need to eat, at least in part. thirst is easy enough, just reduce the delay. in fact, it has been brought to my attention that it's easier to not drink enough in one sitting than the opposite. as far as hunger is concerned, i added a new word "peckish" to denote that you could eat, but probably don't need to. "very hungry" is reserved to being a relatively long time since you ate with a calorie surplus, or a relatively short time if you have a calorie deficit. "famished" "starving" and "near starving" only appear if you have a calorie deficit.
Fixes #29430

@kevingranade

This comment has been minimized.

Copy link
Member

commented Apr 16, 2019

See Jenkins:

01:37:03 CCACHE_CPP2=1 ccache clang++  -DRELEASE -DGIT_VERSION -DBACKTRACE -DLOCALIZE -ffast-math -Os  -Wall -Wextra    -fsigned-char -Werror -std=c++11 -MMD -MP -m32 -D_GNU_SOURCE -I/usr/include/ncursesw -c src/activity_handlers.cpp -o obj/activity_handlers.o
01:37:04 In file included from src/action.cpp:17:
01:37:04 In file included from src/output.h:11:
01:37:04 src/player.h:858:42: error: 'get_hunger_description' overrides a member function but is not marked 'override' [-Werror,-Winconsistent-missing-override]
01:37:04         std::pair<std::string, nc_color> get_hunger_description() const;
01:37:04                                          ^
01:37:04 src/character.h:227:50: note: overridden virtual function is here
01:37:04         virtual std::pair<std::string, nc_color> get_hunger_description() const;
01:37:04                                                  ^
01:37:04 1 error generated.
01:37:04 Makefile:768: recipe for target 'obj/action.o' failed
01:37:04 make: *** [obj/action.o] Error 1
01:37:04 make: *** Waiting for unfinished jobs....
01:37:09 In file included from src/activity_handlers.cpp:28:
01:37:09 In file included from src/output.h:11:
01:37:09 src/player.h:858:42: error: 'get_hunger_description' overrides a member function but is not marked 'override' [-Werror,-Winconsistent-missing-override]
01:37:09         std::pair<std::string, nc_color> get_hunger_description() const;
01:37:09                                          ^
01:37:09 src/character.h:227:50: note: overridden virtual function is here
01:37:09         virtual std::pair<std::string, nc_color> get_hunger_description() const;
01:37:09                                                  ^
01:37:09 1 error generated.
01:37:09 Makefile:768: recipe for target 'obj/activity_handlers.o' failed
01:37:09 make: *** [obj/activity_handlers.o] Error 1
@KorGgenT

This comment has been minimized.

Copy link
Contributor Author

commented Apr 16, 2019

meant to open this as a draft. marking it WIP until i've had a good chance to playtest (and fix that jenkins error)

@KorGgenT KorGgenT changed the title tweaked hunger and thirst descriptions [WIP] tweaked hunger and thirst descriptions Apr 16, 2019

@kevingranade

This comment has been minimized.

Copy link
Member

commented Apr 17, 2019

This pull request has been mentioned on Cataclysm: Dark Days Ahead. There might be relevant details there:

https://discourse.cataclysmdda.org/t/getting-very-hungery-with-over-60-000-calories/19704/8

@KorGgenT

This comment has been minimized.

Copy link
Contributor Author

commented Apr 18, 2019

KorGgenT added some commits Apr 20, 2019

@ZhilkinSerg ZhilkinSerg removed their assignment Apr 21, 2019

@esotericist

This comment has been minimized.

Copy link
Contributor

commented Apr 22, 2019

So, a couple of days of light play with this, and my primary feedback is: the stuff you currently use to indicate 'calorie deficit' makes more sense to me if it only gets used when you are on a downward trend. i.e. your average calories per day over the last few days is lower than your average calories over, say, the last month or so.

Rationale: human experience is qualitative/comparative, and will tend to be within the context of "how I have been" not "how I should be".

I don't know how feasible this is, nor am I especially wedded to timeframes, but I think feedback would be more meaningful if it functioned in that comparative fashion. Because if someone is at some consistent place well below their ideal weight for a while, that becomes 'normal' for them.

@KorGgenT

This comment has been minimized.

Copy link
Contributor Author

commented Apr 22, 2019

i think it's reasonable to say that is a pretty good place for this to sit, as that's pretty well outside of the scope of this PR, and even outside of the scope of my larger project with related things. we may revisit sometime later to get new normals,

@KorGgenT KorGgenT changed the title [WIP] tweaked hunger and thirst descriptions tweaked hunger and thirst descriptions Apr 22, 2019

@esotericist

This comment has been minimized.

Copy link
Contributor

commented Apr 22, 2019

i think it's reasonable to say that is a pretty good place for this to sit, as that's pretty well outside of the scope of this PR, and even outside of the scope of my larger project with related things. we may revisit sometime later to get new normals,

Fair enough. The new descriptions are definitely an improvement and make it possible for someone to know "I am eating enough" once they're at their ideal range for calories, and we didn't have that prior to this PR

@kevingranade kevingranade merged commit cadd279 into CleverRaven:master Apr 23, 2019

3 checks passed

continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
gorgon-ghprb Build finished.
Details

@KorGgenT KorGgenT deleted the KorGgenT:hunger-descriptions branch May 22, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.