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

Make eating take time #36972

Closed
I-am-Erk opened this issue Jan 12, 2020 · 1 comment · Fixed by #40177
Closed

Make eating take time #36972

I-am-Erk opened this issue Jan 12, 2020 · 1 comment · Fixed by #40177
Labels
[C++] Changes (can be) made in C++. Previously named `Code` Items: Food / Vitamins Comestibles and drinks (P3 - Medium) Medium (normal) priority
Milestone

Comments

@I-am-Erk
Copy link
Member

Is your feature request related to a problem? Please describe.
One of the issues remaining with the current food system is that food instantly enters your stomach, making it possible to overeat because you're still in the food menu stuffing yourself before you get feedback. It also removes the need to hide and find a safe place to eat, which is too bad because that's a staple of running from hordes of zombies.

Describe the solution you'd like
Make eating take time, based on the volume of the food and whether it is solid or liquid.

Although it's possible to imagine a system where you choose to eat slowly to ration your food, quickly because you're in a hurry, or at a normal speed, we could probably get by with just the normal speed option:

  • For liquids, I suggest 15 mL (1 tablespoon) per second.
  • For solids, I suggest 5 mL (1 teaspoon) per second.

With those numbers you'd drink a can of soda in about 20 seconds, or eat a hamburger in about two minutes.

The food menu should display the time to eat all the food you've selected.

There should also be hooks to allow mutations to adjust eating speeds by a multiplier, ideally possibly allowing an eat speed multiplier for specific nutrients (you now eat plants faster / meats slower), for just liquids, or for just solids, or for all food.

Describe alternatives you've considered
As stated, it would probably be acceptable to do it with just one eating speed, but it would be reasonable too to have +/- adjust eating speed between "normal", "eat quickly", and "ration food". I'd double eating time for rationing and half it for eating quickly. If you really want to get silly you could add a small chance to choke if you're eating too quickly.

Additional context
In a first pass it would be acceptable to just have the player wait two minutes and then get their whole hamburger added to stomach contents. In the future, it would be ideal to borrow the %crafting mechanic, and track how much of a food item is eaten with each bite. (Hamburger: 40% eaten)

@I-am-Erk I-am-Erk added Items: Food / Vitamins Comestibles and drinks [C++] Changes (can be) made in C++. Previously named `Code` (P3 - Medium) Medium (normal) priority labels Jan 12, 2020
@I-am-Erk I-am-Erk added this to the 0.F milestone Jan 12, 2020
@CoroNaut
Copy link

I know that if you are in a vehicle and driving then eat something, time passes. Maybe this is something different though?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[C++] Changes (can be) made in C++. Previously named `Code` Items: Food / Vitamins Comestibles and drinks (P3 - Medium) Medium (normal) priority
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants