Difference between revisions of "Template:Egg Table Row"

From RimWorld Wiki
Jump to navigation Jump to search
(included the males into the calculation)
Line 1: Line 1:
<includeonly>
+
<includeonly><!--
 +
 
 +
VARIABLES
 +
-->{{#vardefine:restRate      | {{#expr:(((1/((150/60000)*(24/10.5)))*150)/2500)}} }}<!-- See [[Rest#Positive]] for an explanation of the formula
 +
 
 +
ROW -->
 
|-
 
|-
 
! {{DLC Icons|{{{?Name}}}}}
 
! {{DLC Icons|{{{?Name}}}}}
| {{ucfirst:{{{?Can Lay Unfertilized Eggs}}}}}
+
| {{ucfirst:{{{?Can Lay Unfertilized Eggs}}} }}
| {{#vardefineecho:eggNutrition|{{Q|{{{?Name}}} egg (fert.)|Nutrition}}}}
+
| {{#vardefineecho:eggNutrition|{{Q|{{{?Name}}} egg (fert.)|Nutrition}} }}
 
| {{{?Eggs Per Clutch Average}}}
 
| {{{?Eggs Per Clutch Average}}}
 
| {{{?Egg Laying Interval}}} days
 
| {{{?Egg Laying Interval}}} days
| {{#expr:{{{?Eggs Per Clutch Average}}}/{{{?Egg Laying Interval}}} round 2}}
+
| {{#expr: {{{?Eggs Per Clutch Average}}} / {{{?Egg Laying Interval}}} round 2}}
| {{#expr:{{{?Eggs Per Clutch Average}}}/{{{?Egg Laying Interval}}}*{{#var:eggNutrition}} round 2}}
+
| {{#expr: {{{?Eggs Per Clutch Average}}} / {{{?Egg Laying Interval}}} * {{#var:eggNutrition}} round 2}}
| {{{?Real Hunger Rate}}}
+
| {{#vardefineecho:malesPerFemale | {{#ifeq: {{{?Can Lay Unfertilized Eggs}}} | true | 0 | {{#expr: 1 / ({{Q|{{{?Name}}}|Egg Laying Interval}} * (24 - {{#var:restRate}} / {{Q|Animal sleeping spot|Rest Effectiveness}}) / {{Q|{{{?Name}}}|Mate Mtb Hours}}) round 2}} }} }}
| {{#expr:({{{?Eggs Per Clutch Average}}}/{{{?Egg Laying Interval}}})*{{#var:eggNutrition}}/{{{?Real Hunger Rate}}} round 2}}
+
| {{#expr: {{{?Real Hunger Rate}}} * (1 + {{#var:malesPerFemale}}) round 2}}
 +
| {{#expr: ({{{?Eggs Per Clutch Average}}} / {{{?Egg Laying Interval}}}) * {{#var:eggNutrition}}/({{{?Real Hunger Rate}}} * (1 + {{#var:malesPerFemale}})) round 2}}
 
</includeonly><noinclude>
 
</includeonly><noinclude>
{{Recode|reason=Figure out how to deal with the need for a male for fert only layers - note that the template calls will have to be manually edited to remove the ref label stuff it this is fixed.}}
 
 
{| {{STDT| sortable c_08 text-center}}
 
{| {{STDT| sortable c_08 text-center}}
! Animal !! Lays<br>Unfert.!! Nutrition<br>per Egg !! Avg Eggs<br>per Clutch !! Laying<br>Interval !! Avg Eggs<br>per Day !! Egg Nutrition<br>per Day !! Daily Hunger<br>Rate !! Daily Egg Nutrition<br>per Hunger{{ref label|Males|A}}
+
! Animal !! Lays<br/>Unfert.!! Nutrition<br/>per Egg !! Avg Eggs<br/>per Clutch !! Laying<br/>Interval !! Avg Eggs<br/>per Day !! Egg Nutrition<br/>per Day !! <abbr title="Assuming they sleep on the ground and mate as soon as possible.">Needed<br/>Males / Female</abbr> !! Daily Hunger<br/>Rate !! Daily Egg Nutrition<br/>per Hunger
 
|-
 
|-
 
{{#ask: [[Egg Laying Interval::+]]
 
{{#ask: [[Egg Laying Interval::+]]
Line 27: Line 32:
 
| link = none
 
| link = none
 
}}
 
}}
|}
+
|}  
:{{note|Males|A}} '''Note:''' This value only accounts for the female - any males required to fertilize the egg are not considered. 
 
 
[[Category:Customized table templates]]
 
[[Category:Customized table templates]]
 
</noinclude>
 
</noinclude>

Revision as of 13:50, 20 December 2023

Animal Lays
Unfert.
Nutrition
per Egg
Avg Eggs
per Clutch
Laying
Interval
Avg Eggs
per Day
Egg Nutrition
per Day
Needed
Males / Female
Daily Hunger
Rate
Daily Egg Nutrition
per Hunger
Cassowary False 0.5 1 3.33 days 0.3 0.15 0.33 0.6 0.25
Chicken True 0.25 1 1 days 1 0.25 0 0.22 1.14
Cobra False 0.25 1.5 10 days 0.15 0.04 0.11 0.12 0.31
Duck True 0.25 1 1 days 1 0.25 0 0.28 0.89
Emu False 0.5 1 3.33 days 0.3 0.15 0.33 0.6 0.25
Goose True 0.5 1 2 days 0.5 0.25 0 0.45 0.56
Iguana False 0.25 1.5 5.661 days 0.26 0.07 0.19 0.38 0.17
Ostrich False 0.6 1 3.33 days 0.3 0.18 0.33 0.89 0.2
Tortoise False 0.25 2 6.66 days 0.3 0.08 0.17 0.15 0.49
Turkey False 0.5 1 1.333 days 0.75 0.38 0.83 0.82 0.46