Difference between revisions of "Template:Animal Rearing Row"

From RimWorld Wiki
Jump to navigation Jump to search
(account for males)
Line 4: Line 4:
 
Example:
 
Example:
 
{| class="wikitable sortable"
 
{| class="wikitable sortable"
|-
+
! rowspan="2" | Animal
! rowspan=2 | Animal
+
! rowspan="2" | Diet
! rowspan=2 | Diet
+
! rowspan="2" data-sort-type=number | <abbr title="The tameness of animals that are blocked by fences or that have low enough wildness does not decay">Tameness Decay Interval</abbr>
! rowspan=2 data-sort-type=number | <abbr title="The tameness of animals that are blocked by fences or that have low enough wildness does not decay">Tameness Decay Interval</abbr>
+
! rowspan="2" | Produces
! rowspan=2 | Produces
+
! rowspan="2" | Produce Per Day
! rowspan=2 | Produce Per Day
+
! rowspan="2" | Produced Nutrition Per Day
! rowspan=2 | Produced Nutrition Per Day
+
! rowspan="2" | <abbr title="Assuming they sleep on the ground and mate as soon as possible.">Males per female</abbr>
! colspan=3 | Baby Slaughter
+
! colspan="3" | Baby Slaughter
! colspan=3 | Adult Slaughter
+
! colspan="3" | Adult Slaughter
 
|-
 
|-
 
! <abbr title="Units of nutrition of meat produced per female per day when babies are slaughtered">Meat Per Day</abbr>
 
! <abbr title="Units of nutrition of meat produced per female per day when babies are slaughtered">Meat Per Day</abbr>
Line 26: Line 26:
 
|-{{Animal Rearing Row|Husky}}
 
|-{{Animal Rearing Row|Husky}}
 
|-{{Animal Rearing Row|Boomalope}}
 
|-{{Animal Rearing Row|Boomalope}}
|}</noinclude><includeonly>
+
|}</noinclude><includeonly><!--
|[[{{{1}}}]]{{#show:Chicken egg (fert.)|Nutrition}}
+
 
 +
VARIABLES
 +
-->{{#vardefine:milkPerDay    | {{Q|{{{1}}}|Daily Milk Average}} }}<!--
 +
-->{{#vardefine:gestationTime | {{Q|{{{1}}}|Gestation Period Days|{{Q|{{{1}}}|Egg Laying Interval}} }} }}<!--
 +
-->{{#vardefine:restRate      | {{#expr:(((1/((150/60000)*(24/10.5)))*150)/2500)}} }}<!-- See [[Rest#Positive]] for an explanation of the formula
 +
 
 +
TABLE -->
 +
| [[{{{1}}}]]{{#show:Chicken egg (fert.)|Nutrition}}
 
| {{#show: {{{1}}}|?Diet}}
 
| {{#show: {{{1}}}|?Diet}}
| {{#ifeq:{{#expr:{{#if:{{#show:{{{1}}}|?Roam Mtb Days}}|1|0}} or {{#ifeq: {{#expr: {{#show:{{{1}}}|?Wildness}} < 0.08}}|1|1|0}}}}|0|{{#expr:12 - 6*{{#show:{{{1}}}|?Wildness}}}}|-}}
+
| {{#ifeq:{{#expr:{{#if:{{#show:{{{1}}}|?Roam Mtb Days}}|1|0}} or {{#ifeq: {{#expr: {{#show:{{{1}}}|?Wildness}} < 0.08}}|1|1|0}} }}|0|{{#expr:12 - 6*{{#show:{{{1}}}|?Wildness}}}}|-}}
| {{#if:{{#show:{{{1}}}|?Wool Name}}|{{#show: {{{1}}}|?Wool Name}} | {{#if:{{#show:{{{1}}}|?Daily Milk Average}}|{{#show: {{{1}}}|?Milk Name}}| {{#if:{{#show:{{{1}}}|?Eggs Per Season Average}}|[[{{{1}}} egg (fert.)|Egg (fert.)]]{{#ifeq:{{#show:{{{1}}}|?Can Lay Unfertilized Eggs}}|true|<nowiki> </nowiki>& [[{{{1}}} egg (unfert.)|(unfert.)]]}}|-}}}}}}
+
| {{#if:{{#show:{{{1}}}|?Wool Name}}|{{#show: {{{1}}}|?Wool Name}} | {{#if:{{#var:milkPerDay}}|{{#show: {{{1}}}|?Milk Name}}| {{#if:{{#show:{{{1}}}|?Eggs Per Season Average}}|[[{{{1}}} egg (fert.)|Egg (fert.)]]{{#ifeq:{{#show:{{{1}}}|?Can Lay Unfertilized Eggs}}|true|<nowiki> </nowiki>& [[{{{1}}} egg (unfert.)|(unfert.)]]}}|-}} }} }}
| {{#if:{{#show:{{{1}}}|?Daily Wool Average#}}|{{#expr:{{#show:{{{1}}}|?Daily Wool Average#}}}} | {{#if:{{#show:{{{1}}}|?Daily Milk Average#}}|{{#show:{{{1}}}|?Daily Milk Average#}}|{{#if:{{#show:{{{1}}}|?Eggs Per Season Average}}|{{#expr:{{#show:{{{1}}}|?Eggs Per Season Average}}/15 round 2}}|-}}}}}}
+
| {{#if:{{#show:{{{1}}}|?Daily Wool Average#}}|{{#expr:{{#show:{{{1}}}|?Daily Wool Average#}} }} | {{#if:{{#var:milkPerDay}}|{{#var:milkPerDay}}|{{#if:{{#show:{{{1}}}|?Eggs Per Season Average}}|{{#expr:{{#show:{{{1}}}|?Eggs Per Season Average}}/15 round 2}}|-}} }} }}
| {{#if:{{#show:{{#show:{{{1}}}|?Milk Name#}}|?Nutrition}}|{{#expr:{{#show:{{{1}}}|?Daily Milk Average#}}*{{#show:Milk|?Nutrition#}}}}|{{#if:{{#show:{{{1}}}|?Eggs Per Season Average}}|{{#expr:{{#show:{{{1}}} egg (fert.)|?Nutrition}}*{{#show:{{{1}}}|?Eggs Per Season Average}}/15 round 2}}|-}}}}
+
| {{#if:{{#show:{{#show:{{{1}}}|?Milk Name#}}|?Nutrition}}|{{#expr:{{#var:milkPerDay}}*{{#show:Milk|?Nutrition#}} }}|{{#if:{{#show:{{{1}}}|?Eggs Per Season Average}}|{{#expr:{{#show:{{{1}}} egg (fert.)|?Nutrition}}*{{#show:{{{1}}}|?Eggs Per Season Average}}/15 round 2}}|-}} }}
| {{#expr:{{Meat Production|{{{1}}}|Baby}} round 2}}
+
| {{#vardefineecho:malesPerFemale | {{#expr: 1 / ({{#var:gestationTime}} * (24 - {{#var:restRate}} / {{Q|Animal sleeping spot|Rest Effectiveness}}) / {{Q|{{{1}}}|Mate Mtb Hours}}) round 2}} }}
| {{#expr:{{Nutrition Consumption|{{{1}}}|Baby}} round 2}}
+
| {{#expr: {{Meat Production|{{{1}}}|Baby}} round 2}}
| {{#expr:({{Meat Production|{{{1}}}|Baby}} + {{#ifeq:{{#show:{{{1}}}|?Milk Name#}}|Milk|{{#expr:{{#show:{{{1}}}|?Daily Milk Average#}}*0.05}}|0}})/{{Nutrition Consumption|{{{1}}}|Baby}} round 3}}
+
| {{#expr: {{Nutrition Consumption|{{{1}}}|Baby|1|{{#var:malesPerFemale}} }} round 2}}
| {{#expr:{{Meat Production|{{{1}}}|Adult}} round 2}}
+
| {{#expr: ({{Meat Production|{{{1}}}|Baby}} + {{#var:milkPerDay|0}}*0.05)/{{Nutrition Consumption|{{{1}}}|Baby|1|{{#var:malesPerFemale}} }} round 3}}
| {{#expr:{{Nutrition Consumption|{{{1}}}|Adult}} round 2}}
+
| {{#expr: {{Meat Production|{{{1}}}|Adult}} round 2}}
| {{#expr:({{Meat Production|{{{1}}}|Adult}} + {{#ifeq:{{#show:{{{1}}}|?Milk Name#}}|Milk|{{#expr:{{#show:{{{1}}}|?Daily Milk Average#}}*0.05}}|0}})/{{Nutrition Consumption|{{{1}}}|Adult}} round 3}}
+
| {{#expr: {{Nutrition Consumption|{{{1}}}|Adult|1|{{#var:malesPerFemale}} }} round 2}}
 +
| {{#expr: ({{Meat Production|{{{1}}}|Adult}} + {{#var:milkPerDay|0}}*0.05)/{{Nutrition Consumption|{{{1}}}|Adult|1|{{#var:malesPerFemale}} }} round 3}}
 
</includeonly>
 
</includeonly>

Revision as of 12:20, 20 December 2023

Usage: {{Animal Rearing Row|*name*}} Example:

Animal Diet Tameness Decay Interval Produces Produce Per Day Produced Nutrition Per Day Males per female Baby Slaughter Adult Slaughter
Meat Per Day Consumption Per Day Overall Efficiency Meat Per Day Consumption Per Day Overall Efficiency
Cow herbivorous - Milk 14 0.7 0.17 0.5 1 1.201 2.52 2.39 1.349
Muffalo herbivorous - Muffalo wool 8 - 0.17 0.5 1 0.502 2.52 2.25 1.119
Chicken herbivorous - Egg (fert.) & (unfert.) 1 0.25 0.74 0.6 0.39 1.539 2.1 1.84 1.141
Iguana omnivorous grazer 9 Egg (fert.) 0.26 0.07 0.19 0.25 0.38 0.661 0.74 1.05 0.706
Husky omnivorous, ovivorous - - - - 0.11 0.24 0.89 0.271 1.03 3.26 0.316
Boomalope herbivorous - Chemfuel 11 - 0.17 0.42 1 0.969 2.1 2.39 1.11