Template:Nutrition Consumption/doc

From RimWorld Wiki
< Template:Nutrition Consumption
Revision as of 17:28, 22 September 2021 by Cheldra (talk | contribs) (Created page with "Returns the nutrition consumed per day a set number of breeding adults. This calculation assumes that there is no time between pregnancies. ==Usage== The first parameter, if...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Returns the nutrition consumed per day a set number of breeding adults. This calculation assumes that there is no time between pregnancies.

Usage

The first parameter, if present, will specify which animal to generate the template for. If absent, {{PAGENAME}} will be used. The second parameter determines whether the offspring are continue to consume up until adulthood, or whether they are slaughtered immediately upon birth. Baby for baby slaughter, Adult for adult slaughter. Defaults to Baby. The third parameter is the number of females in the system. Defaults to 1. The fourth parameter is the number of males in the system. Defaults to 0.

Examples

Single inexplicably pregnant female

{{Nutrition Consumption| Horse | Adult}}

produces:

1.6753423423423


5 males, 5 females

{{Nutrition Consumption| Horse | Adult | 5 | 5 }}

produces:

11.776711711712


Chick slaughter

{{Nutrition Consumption| Chicken | Baby}}

produces:

0.224


Chicken slaughter

{{Nutrition Consumption| Chicken | Adult}}

produces:

1.67552