Difference between revisions of "Category talk:Nourishing foods"
m |
(→Formula: new section) |
||
(5 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | Strange indexing, both numbers and letters. | + | *Strange indexing, both numbers and letters. [[User:Ceselb|Ceselb]] |
− | *The letters happen when pages are added using category tags instead of the infobox. All pages should be converted to use the Resource infobox. [[User:Sho|Sho]] 16:41, 2 January 2007 (EST) | + | ***The letters happen when pages are added using category tags instead of the infobox. All pages should be converted to use the Resource infobox. [[User:Sho|Sho]] 16:41, 2 January 2007 (EST) |
+ | |||
+ | *Iffy indexing under the numbers, probably leading zeroes missing. If potatoes were converted it would be under 2, along with say dried cod, even though they differ my a magnitude. [[User:Ceselb|Ceselb]] 12:50, 23 January 2007 (EST) | ||
+ | |||
+ | *Just want to verify that the formula for calculating this is INT(10000/nutrition) like I think and observation suggests (decimals just removed, no rounding). If there is rounding involved my entries and a number of others are wrong and needs to be corrected. [[User:Ceselb|Ceselb]] 11:26, 9 February 2007 (EST) | ||
+ | |||
+ | |||
+ | *Would it be okay to edit the names of each entry on the nourishing foods page to add how much is eaten each day? to make the page a quick reference? example (with random numbers): | ||
+ | |||
+ | Wine (100) | ||
+ | potatoes (100) | ||
+ | jerky (25) | ||
+ | |||
+ | Or should I just make a different page for that? [[User:Samara|Samara]] 9:36, 24 January 2008 | ||
+ | *Doing so manually could work, but it would be a rather long page then. Ideally I would like that handled by the mwiki itself, bu tit turns out that's not as easy as it sounds (been reading about how and have also asked around in the #mediawiki chan, without much progress. Will try to find out though, more pages could use such a sort. [[User:Ceselb|Ceselb]] 14:09, 24 January 2008 (EST) | ||
+ | |||
+ | |||
+ | Is there a way to make a template for cooked food similar to the resources template? Something like this: | ||
+ | * Production: 350 grams per day | ||
+ | * Raw materials: 400 grams of cod; 50 grams of wood | ||
+ | * Tools: smoker | ||
+ | * Eaten: 33 grams per day | ||
+ | |||
+ | (My wiki-fu is not sophisticated enough yet, so if someone else wants to try your hand at this, please go for it!) [[User:Kaimera]] 20:50 PST, Dec 8 2008. | ||
+ | |||
+ | == Formula == | ||
+ | |||
+ | The automatic eating of food is measured in the minimum amount for that day. That's the number given in the food tables. But eating something manually uses the calculation for the percent of reduced hunger. Assuming your stomach is at 0, how many grams will you eat at a minimum knowing only the percent of hunger reduced? | ||
+ | |||
+ | Grams of a food eaten per day (GED) seems to be derived from the rounding of a factor divided by the percentage of reduced hunger (PHR) using the following formula: | ||
+ | |||
+ | :'''round(5 ÷ PHR) = GEPD''' | ||
+ | |||
+ | For example, 25 grams of [[brisket]] will be automatically eaten by your character at each feeding tick. If you manually feed yourself brisket, the game informs you that brisket reduced hunger by 20.00%. | ||
+ | |||
+ | :(5 ÷ GEPD) = PHR → 5 ÷ 25 grams is 20.00%. Reversing that, (5 ÷ PHR) = GEPD → (5 ÷ 20.00% grams) is 25 grams. But nice round numbers are easy. | ||
+ | |||
+ | Let's try something harder, like [[rack of lamb]]. Eating something like rack of lamb will reduced hunger by 22.50%. Using the formula: | ||
+ | |||
+ | :(5 ÷ PHR) = (5 ÷ 0.2250) = 22.222… grams. | ||
+ | |||
+ | But because there are no fractions of grams in the game, we have to ''round'' that number. So 22 grams is the minimum amount eaten per day, as given in the wiki. If all you knew was the grams per day, figuring out what the PHR (percent reduced hunger) is becomes difficult because you don't know exactly what got lopped off. You can make a pretty good guess, though. The PHR for rack of lamb is actually 22.50%. | ||
+ | |||
+ | For something even more challenging, like [[granola]], the grams eaten per day (GEPD) is 35 and the PHR is 14.25%. Finding GEPD from the PHR is easier than finding the PHR from the GEPD. Try it! ☺ | ||
+ | |||
+ | Gotta love that computer science, eh? | ||
+ | |||
+ | |||
+ | |||
+ | --[[User:Shaudawn|Shaudawn]] ([[User talk:Shaudawn|talk]]) 22:41, 15 December 2021 (UTC) |
Latest revision as of 22:41, 15 December 2021
- Strange indexing, both numbers and letters. Ceselb
- The letters happen when pages are added using category tags instead of the infobox. All pages should be converted to use the Resource infobox. Sho 16:41, 2 January 2007 (EST)
- Iffy indexing under the numbers, probably leading zeroes missing. If potatoes were converted it would be under 2, along with say dried cod, even though they differ my a magnitude. Ceselb 12:50, 23 January 2007 (EST)
- Just want to verify that the formula for calculating this is INT(10000/nutrition) like I think and observation suggests (decimals just removed, no rounding). If there is rounding involved my entries and a number of others are wrong and needs to be corrected. Ceselb 11:26, 9 February 2007 (EST)
- Would it be okay to edit the names of each entry on the nourishing foods page to add how much is eaten each day? to make the page a quick reference? example (with random numbers):
Wine (100) potatoes (100) jerky (25)
Or should I just make a different page for that? Samara 9:36, 24 January 2008
- Doing so manually could work, but it would be a rather long page then. Ideally I would like that handled by the mwiki itself, bu tit turns out that's not as easy as it sounds (been reading about how and have also asked around in the #mediawiki chan, without much progress. Will try to find out though, more pages could use such a sort. Ceselb 14:09, 24 January 2008 (EST)
Is there a way to make a template for cooked food similar to the resources template? Something like this:
- Production: 350 grams per day
- Raw materials: 400 grams of cod; 50 grams of wood
- Tools: smoker
- Eaten: 33 grams per day
(My wiki-fu is not sophisticated enough yet, so if someone else wants to try your hand at this, please go for it!) User:Kaimera 20:50 PST, Dec 8 2008.
Formula
The automatic eating of food is measured in the minimum amount for that day. That's the number given in the food tables. But eating something manually uses the calculation for the percent of reduced hunger. Assuming your stomach is at 0, how many grams will you eat at a minimum knowing only the percent of hunger reduced?
Grams of a food eaten per day (GED) seems to be derived from the rounding of a factor divided by the percentage of reduced hunger (PHR) using the following formula:
- round(5 ÷ PHR) = GEPD
For example, 25 grams of brisket will be automatically eaten by your character at each feeding tick. If you manually feed yourself brisket, the game informs you that brisket reduced hunger by 20.00%.
- (5 ÷ GEPD) = PHR → 5 ÷ 25 grams is 20.00%. Reversing that, (5 ÷ PHR) = GEPD → (5 ÷ 20.00% grams) is 25 grams. But nice round numbers are easy.
Let's try something harder, like rack of lamb. Eating something like rack of lamb will reduced hunger by 22.50%. Using the formula:
- (5 ÷ PHR) = (5 ÷ 0.2250) = 22.222… grams.
But because there are no fractions of grams in the game, we have to round that number. So 22 grams is the minimum amount eaten per day, as given in the wiki. If all you knew was the grams per day, figuring out what the PHR (percent reduced hunger) is becomes difficult because you don't know exactly what got lopped off. You can make a pretty good guess, though. The PHR for rack of lamb is actually 22.50%.
For something even more challenging, like granola, the grams eaten per day (GEPD) is 35 and the PHR is 14.25%. Finding GEPD from the PHR is easier than finding the PHR from the GEPD. Try it! ☺
Gotta love that computer science, eh?