[quote=“Coolthulhu, post:1, topic:13824”]To fix this, we’d need some sample diets and expected health ranges for them.
Simple ones would work best. For example, diet of potato chips and energy drinks (nothing else) resulting in health in range of [-20, -50] after 14 days, and diet of cranberries and mineral water giving range of [50, 100] after a month.
Alternatively, someone to crunch the math and provide a bunch of plots for how could it look.[/quote]
I don’t understand what you mean by sample diets or crunching the math.
Anyway a bit off-topic but I wanted to make something to help me understand and balance the health and nutrition thing.
But I’m going to review some things to make sure I understand how the health system currently works:
Thirst and hunger go up by 1 every 5 minutes (50 turns).
1 day has 14400 turns.
Thirsty and hunger level per day is 288 points each, or 12 points per hour. And we die at 6000 hunger.
Health goes from -200 to 200.
Health tries to go to 0 from whatever value it is in.
Consumables affects the health modifier which triggers a health update, and it seems that the function to update the health is called from update_body that is inside the game.cpp, so I guess it is updated every turn too.
I made a small app to simulate it. By copypasting the update_health and modified it to make it work in console and to simulate the pass of time, I included the RNG method the game uses.
And these are its values:
Enter the desired daily nutrition for a 2 weeks estimation:
50
Running simulation…
Simulation complete, this are the results:
Randomly: [-57]
Min/max: [-39,116]
Enter the desired daily nutrition for a 2 weeks estimation:
-50
Running simulation…
Simulation complete, this are the results:
Randomly: [51]
Min/max: [48,151]
Enter the desired daily nutrition for a 2 weeks estimation:
5
Running simulation…
Simulation complete, this are the results:
Randomly: [-3]
Min/max: [-5,115]
Enter the desired daily nutrition for a 2 weeks estimation:
-5
Running simulation…
Simulation complete, this are the results:
Randomly: [-4]
Min/max: [11,107]
Enter the desired daily nutrition for a 2 weeks estimation:
I think I royally fucked up somewhere but I don’t know where.
Anyway back to on-topic stuff.
You need to eat 288 points of nutrition to have 0 hunger per day. If the “normal” top of healthy is 150, you “should” need to eat food that is 0.5ish healthy by every nutrition point.
So you could make every non-junk food consumable give 0.5 health by every point of nutrition. That could a way of balancing it, what do you guys think?
Of course this is without taking into account thirsty points and quench, because is easier to make it work with the idea that the player only drinks healthy clean water. And uses food as the main source of health(I would say “nutrients” but in this game it is used in another context, I would rather use calories to be honest).