Difference between revisions of "Max Nutrition"

From RimWorld Wiki
Jump to navigation Jump to search
(Max Nutrition Stat)
Tag: Removed redirect
m (Stat Template data and formatting)
 
Line 1: Line 1:
{{Stub|reason=1) Version history 2) Two-way links 3) Verify pawn max nutrition in-game}}
+
{{Stub|reason=1) Two-way links 2) Verify pawn max nutrition in-game}}
 
{{Verified|1.5.4104}}{{Stat
 
{{Verified|1.5.4104}}{{Stat
 +
| def name = MaxNutrition
 +
| label = max nutrition
 +
| description = The amount of [[nutrition]] needed to completely fill this creature's stomach.
 +
| default base value = 1
 
| min value = 0.01
 
| min value = 0.01
| default base value = 1
+
| hide at value = 1
 
| to string style = FloatMaxTwo
 
| to string style = FloatMaxTwo
| description = The amount of [[nutrition]] needed to completely fill this creature's stomach.
+
| show on mechanoids = false
 +
| show on entities = false
 
| category = BasicsPawn
 
| category = BasicsPawn
 +
| display priority in category = 2501
 +
| cacheable = true
 +
| parts = StatPart_BodySize, StatPart_LifeStageMaxFood
 
}}
 
}}
  
 
== Factors ==
 
== Factors ==
 
* [[Hediffs]]
 
* [[Hediffs]]
** {{AnomalyIcon}}[[Hediffs#Ghoul|Ghoul]]: {{Good|×200%}}
+
** {{AnomalyIcon}} [[Hediffs#Ghoul|Ghoul]]: {{Good|×200%}}
 
With adult [[human]]s having a max nutrition of 1, this means [[Ghoul]]s have a max nutrition of 2.
 
With adult [[human]]s having a max nutrition of 1, this means [[Ghoul]]s have a max nutrition of 2.
  
 
[[Max Nutrition]] is calculated by:
 
[[Max Nutrition]] is calculated by:
  
<code>'''Max Nutrition''' = ('''Body Size Factor''' × '''Base Body Size''') × '''Food Max Factor'''</code>
+
[[Max Nutrition]] = ('''Body Size Factor''' × '''Base Body Size''') × '''Food Max Factor'''
  
 
Where Body Size Factor and Food Max Factor are from the pawn's current lifestage, and Base Body Size is from the pawn's race: all are 1 by default. This means that most adult pawns have a Body Size Factor and Food Max Factor of 1, and therefore their max nutrition is equivalent to the body size of the pawn's race.
 
Where Body Size Factor and Food Max Factor are from the pawn's current lifestage, and Base Body Size is from the pawn's race: all are 1 by default. This means that most adult pawns have a Body Size Factor and Food Max Factor of 1, and therefore their max nutrition is equivalent to the body size of the pawn's race.
 +
 +
'''Body Size''' = '''Body Size Factor''' × '''Base Body Size'''
  
 
* Life Stage Factors:
 
* Life Stage Factors:
{| {{STDT| sortable}}
+
{| {{STDT| c_08 sortable}}
 
! Life Stage !! Body Size Factor !! Food Max Factor !! Max Food
 
! Life Stage !! Body Size Factor !! Food Max Factor !! Max Food
 
|-
 
|-
| Baby || 0.2 || 0.625 || 0.125 <!-- bodySizeFactor * foodMaxFactor = maxFood = 0.125 -->
+
! Baby
 +
| 0.2 || 0.625 || 0.125 <!-- bodySizeFactor * foodMaxFactor = maxFood = 0.125 -->
 
|-
 
|-
| Child || 0.35 || 2.286 || 0.8001 <!-- bodySizeFactor * foodMaxFactor = maxFood = 0.8 -->
+
! Child
 +
| 0.35 || 2.286 || 0.8001 <!-- bodySizeFactor * foodMaxFactor = maxFood = 0.8 -->
 
|-
 
|-
| Teenager || 0.8 || 1.25 || 1 <!-- bodySizeFactor * foodMaxFactor = maxFood = 1.0 -->
+
! Teenager
 +
| 0.8 || 1.25 || 1 <!-- bodySizeFactor * foodMaxFactor = maxFood = 1.0 -->
 
|-
 
|-
| Larva (Insect) || 0.2 || 2 || 0.4
+
! Larva (Insect)
 +
| 0.2 || 2 || 0.4
 
|-
 
|-
| Immature (Insect) || 0.5 || 1.5 || 0.75
+
! Immature (Insect)
 +
| 0.5 || 1.5 || 0.75
 
|-
 
|-
| Baby (Animal) || 0.2 || 3 || 0.6
+
! Baby (Animal)
 +
| 0.2 || 3 || 0.6
 
|-
 
|-
| Baby (Tiny Animal) || 0.1 || 6 || 0.6
+
! Baby (Tiny Animal)
 +
| 0.1 || 6 || 0.6
 
|-
 
|-
| Juvenile (Animal) || 0.5 || 1.5 || 0.75
+
! Juvenile (Animal)
 +
| 0.5 || 1.5 || 0.75
 
|-
 
|-
| Preteen{{BiotechIcon}} || 0.7 || 1.552 || 1.0864 <!-- bodySizeFactor * foodMaxFactor = maxFood = 0.9 -->
+
! Preteen {{BiotechIcon}}
 +
| 0.7 || 1.552 || 1.0864 <!-- bodySizeFactor * foodMaxFactor = maxFood = 0.9 -->
 
|}
 
|}
 
  
 
* Base Body Size:
 
* Base Body Size:
{| {{STDT| sortable}}
+
<div><li style="display: inline-table;">
! [[Pawn]] !! Base Body Size
+
Click to <div class="mw-collapsible">
 +
<div class="mw-collapsible-content">
 +
{| {{STDT| c_08 sortable}}
 +
! Pawn !! [[Property:Body Size|Body Size]]
 
|-
 
|-
| [[Grizzly bear]] || 2.15
+
{{#ask: [[Body Size::+]]
 +
[[Diet::!none]]
 +
| ?Body Size
 +
| format = template
 +
| template = Ask Table Formatter
 +
| link = none
 +
| sort = From DLC, Name
 +
| limit = 1000
 +
}}
 +
|}
 +
</div>
 +
</div>
 +
</li></div>
 +
<!--
 +
{| {{STDT| c_08 sortable}}
 +
! Race !! Base Body Size
 
|-
 
|-
| [[Polar bear]] || 2.15
+
! {{Icon Small|Grizzly bear}} [[Grizzly bear]]
 +
| 2.15
 
|-
 
|-
| [[Ostrich]] || 1
+
! {{Icon Small|Polar bear}} [[Polar bear]]
 +
| 2.15
 
|-
 
|-
| [[Emu]] || 0.6
+
! {{Icon Small|Ostrich}} [[Ostrich]]
 +
| 1
 
|-
 
|-
| [[Cassowary]] || 0.6
+
! {{Icon Small|Emu}} [[Emu]]
 +
| 0.6
 
|-
 
|-
| [[Cougar]] || 1
+
! {{Icon Small|Cassowary}} [[Cassowary]]
 +
| 0.6
 
|-
 
|-
| [[Panther]] || 1
+
! {{Icon Small|Cougar}} [[Cougar]]
 +
| 1
 
|-
 
|-
| [[Lynx]] || 0.6
+
! {{Icon Small|Panther}} [[Panther]]
 +
| 1
 
|-
 
|-
| [[Cat]] || 0.32
+
!  {{Icon Small|Lynx}} [[Lynx]]
 +
| 0.6
 
|-
 
|-
| [[Yorkshire terrier]] || 0.32
+
! {{Icon Small|Cat}} [[Cat]]
 +
| 0.32
 
|-
 
|-
| [[Guinea pig]] || 0.2
+
! {{Icon Small|Yorkshire terrier}} [[Yorkshire terrier]]
 +
| 0.32
 
|-
 
|-
| [[Labrador retriever]] || 0.75
+
! {{Icon Small|Guinea pig}} [[Guinea pig]]
 +
| 0.2
 
|-
 
|-
| [[Husky]] || 0.86
+
! {{Icon Small|Labrador retriever}} [[Labrador retriever]]
 +
| 0.75
 
|-
 
|-
| [[Monkey]] || 0.35
+
! {{Icon Small|Husky}} [[Husky]]
 +
| 0.86
 
|-
 
|-
| [[Chicken]] || 0.3
+
! {{Icon Small|Monkey}} [[Monkey]]
 +
| 0.35
 
|-
 
|-
| [[Duck]] || 0.3
+
! {{Icon Small|Chicken}} [[Chicken]]
 +
| 0.3
 
|-
 
|-
| [[Turkey]] || 0.6
+
! {{Icon Small|Duck}} [[Duck]]
 +
| 0.3
 
|-
 
|-
| [[Goose]] || 0.6
+
! {{Icon Small|Turkey}} [[Turkey]]
 +
| 0.6
 
|-
 
|-
| [[Cow]] || 2.4
+
! {{Icon Small|Goose}} [[Goose]]
 +
| 0.6
 
|-
 
|-
| [[Boomalope]] || 2
+
! {{Icon Small|Cow}} [[Cow]]
 +
| 2.4
 
|-
 
|-
| [[Muffalo]] || 2.4
+
! {{Icon Small|Boomalope}} [[Boomalope]]
 +
| 2
 
|-
 
|-
| [[Bison]] || 2.4
+
! {{Icon Small|Muffalo}} [[Muffalo]]
 +
| 2.4
 
|-
 
|-
| [[Dromedary]] || 2.1
+
! {{Icon Small|Bison}} [[Bison]]
 +
| 2.4
 
|-
 
|-
| [[Goat]] || 0.75
+
! {{Icon Small|Dromedary}} [[Dromedary]]
 +
| 2.1
 
|-
 
|-
| [[Elk]] || 2.1
+
! {{Icon Small|Goat}} [[Goat]]
 +
| 0.75
 
|-
 
|-
| [[Yak]] || 2.1
+
! {{Icon Small|Elk}} [[Elk]]
 +
| 2.1
 
|-
 
|-
| [[Caribou]] || 1
+
! {{Icon Small|Yak}} [[Yak]]
 +
| 2.1
 
|-
 
|-
| [[Horse]] || 2.4
+
! {{Icon Small|Caribou}} [[Caribou]]
 +
| 1
 
|-
 
|-
| [[Donkey]] || 1.4
+
! {{Icon Small|Horse}} [[Horse]]
 +
| 2.4
 
|-
 
|-
| [[Elephant]] || 4
+
! {{Icon Small|Donkey}} [[Donkey]]
 +
| 1.4
 
|-
 
|-
| [[Rhinoceros]] || 3
+
! {{Icon Small|Elephant}} [[Elephant]]
 +
| 4
 
|-
 
|-
| [[Hare]] || 0.2
+
! {{Icon Small|Rhinoceros}} [[Rhinoceros]]
 +
| 3
 
|-
 
|-
| [[Snowhare]] || 0.2
+
! {{Icon Small|Hare}} [[Hare]]
 +
| 0.2
 
|-
 
|-
| [[Megascarab]] || 0.2
+
! {{Icon Small|Snowhare}} [[Snowhare]]
 +
| 0.2
 
|-
 
|-
| [[Spelopede]] || 0.8
+
! {{Icon Small|Megascarab}} [[Megascarab]]
 +
| 0.2
 
|-
 
|-
| [[Megaspider]] || 1.2
+
! {{Icon Small|Spelopede}} [[Spelopede]]
 +
| 0.8
 
|-
 
|-
| [[Thrumbo]] || 4
+
! {{Icon Small|Megaspider}} [[Megaspider]]
 +
| 1.2
 
|-
 
|-
| [[Cobra]] || 0.25
+
! {{Icon Small|Thrumbo}} [[Thrumbo]]
 +
| 4
 
|-
 
|-
| [[Tortoise]] || 0.5
+
! {{Icon Small|Cobra}} [[Cobra]]
 +
| 0.25
 
|-
 
|-
| [[Alphabeaver]] || 0.45
+
! {{Icon Small|Tortoise}} [[Tortoise]]
 +
| 0.5
 
|-
 
|-
| [[Pig]] || 1.7
+
! {{Icon Small|Alphabeaver}} [[Alphabeaver]]
 +
| 0.45
 
|-
 
|-
| [[Wild boar]] || 0.85
+
! {{Icon Small|Pig}} [[Pig]]
 +
| 1.7
 
|-
 
|-
| [[Ibex]] || 1
+
! {{Icon Small|Wild boar}} [[Wild boar]]
 +
| 0.85
 
|-
 
|-
| [[Deer]] || 1.2
+
! {{Icon Small|Ibex}} [[Ibex]]
 +
| 1
 
|-
 
|-
| [[Gazelle]] || 0.7
+
! {{Icon Small|Deer}} [[Deer]]
 +
| 1.2
 
|-
 
|-
| [[Chinchilla]] || 0.35
+
! {{Icon Small|Gazelle}} [[Gazelle]]
 +
| 0.7
 
|-
 
|-
| [[Sheep]] || 0.75
+
! {{Icon Small|Chinchilla}} [[Chinchilla]]
 +
| 0.35
 
|-
 
|-
| [[Alpaca]] || 1
+
! {{Icon Small|Sheep}} [[Sheep]]
 +
| 0.75
 
|-
 
|-
| [[Megasloth]] || 4
+
! {{Icon Small|Alpaca}} [[Alpaca]]
 +
| 1
 
|-
 
|-
| [[Capybara]] || 0.75
+
! {{Icon Small|Megasloth}} [[Megasloth]]
 +
| 4
 
|-
 
|-
| [[Squirrel]] || 0.2
+
! {{Icon Small|Capybara}} [[Capybara]]
 +
| 0.75
 
|-
 
|-
| [[Rat]] || 0.2
+
! {{Icon Small|Squirrel}} [[Squirrel]]
 +
| 0.2
 
|-
 
|-
| [[Boomrat]] || 0.2
+
! {{Icon Small|Rat}} [[Rat]]
 +
| 0.2
 
|-
 
|-
| [[Raccoon]] || 0.4
+
! {{Icon Small|Boomrat}} [[Boomrat]]
 +
| 0.2
 
|-
 
|-
| [[Iguana]] || 0.4
+
! {{Icon Small|Raccoon}} [[Raccoon]]
 +
| 0.4
 
|-
 
|-
| [[Warg]] || 1.4
+
! {{Icon Small|Iguana}} [[Iguana]]
 +
| 0.4
 
|-
 
|-
| [[Timber wolf]] || 0.85
+
! {{Icon Small|Warg}} [[Warg]]
 +
| 1.4
 
|-
 
|-
| [[Arctic wolf]] || 0.85
+
! {{Icon Small|Timber wolf}} [[Timber wolf]]
 +
| 0.85
 
|-
 
|-
| [[Fennec fox]] || 0.55
+
! {{Icon Small|Arctic wolf}} [[Arctic wolf]]
 +
| 0.85
 
|-
 
|-
| [[Red fox]] || 0.55
+
! {{Icon Small|Fennec fox}} [[Fennec fox]]
 +
| 0.55
 
|-
 
|-
| [[Arctic fox]] || 0.55
+
! {{Icon Small|Red fox}} [[Red fox]]
 +
| 0.55
 
|-
 
|-
| [[Human]] || 1
+
! {{Icon Small|Arctic fox}} [[Arctic fox]]
 +
| 0.55
 
|-
 
|-
| [[Waste rat]]{{BiotechIcon}} || 0.3
+
! {{Icon Small|Human}} [[Human]]
 +
| 1
 
|-
 
|-
| [[Toxalope]]{{BiotechIcon}} || 1.4
+
! {{Icon Small|Waste rat}} [[Waste rat]] {{BiotechIcon}}
 +
| 0.3
 +
|-
 +
! {{Icon Small|Toxalope}} [[Toxalope]] {{BiotechIcon}}
 +
| 1.4
 
|}
 
|}
 +
-->
  
 
== Stat Def Data ==
 
== Stat Def Data ==
{| {{STDT}}
+
{| {{STDT| c_08}}
! Def Name<br />Label<br />Label For Full Stat List<br />Offset Label<br />Attributes !! Description !! Category !! Parameters !! Complex<br />Parameters !! Display<br />Priority<br />In<br />Category
+
! Name !! Description !! Category !! Parameters !! Complex Parameters !! Display Priority In Category
<!--</StatDef>-->
 
 
|- id="Max Nutrition" <!--<StatDef>-->
 
|- id="Max Nutrition" <!--<StatDef>-->
 
|
 
|
Line 186: Line 288:
 
| The amount of nutrition needed to completely fill this creature's stomach.
 
| The amount of nutrition needed to completely fill this creature's stomach.
 
|
 
|
* Display Order:<br />'''11'''
+
* Display Order: '''11'''
 
* Def Name:<br />'''BasicsPawn'''
 
* Def Name:<br />'''BasicsPawn'''
 
* Label:<br />'''Basics'''
 
* Label:<br />'''Basics'''
* Display All By Default:<br />{{Bad|false}}
+
* Display All By Default: {{Bad|false}}
 
|
 
|
* '''Default Base Value:''' 1
+
* Default Base Value: '''1'''
* '''Hide At Value:''' 1
+
* Hide At Value: '''1'''
* '''Min Value:''' 0.01
+
* Min Value: '''0.01'''
* '''To String Style:''' FloatMaxTwo
+
* To String Style: '''FloatMaxTwo'''
* '''Show On Mechanoids:''' {{Bad|false}}
+
* Show On Mechanoids: {{Bad|false}}
* '''Show On Entities:''' {{Bad|false}}
+
* Show On Entities: {{Bad|false}}
* '''Cacheable:''' {{Good|true}}
+
* Cacheable: {{Good|true}}
 
|
 
|
* '''Parts:'''
+
* Parts:
 
** '''StatPart_BodySize'''
 
** '''StatPart_BodySize'''
 
** '''StatPart_LifeStageMaxFood'''
 
** '''StatPart_LifeStageMaxFood'''
Line 205: Line 307:
 
<!--</StatDef>-->
 
<!--</StatDef>-->
 
|}
 
|}
 +
 +
== Version history ==
 +
{{Stub|nocat=1|section=1|reason=General Version history}}
  
 
{{nav|stats|wide}}
 
{{nav|stats|wide}}

Latest revision as of 14:58, 31 October 2024

Max Nutrition is a stat: The amount of nutrition needed to completely fill this creature's stomach. Its minimum allowed value is 0.01. Its default value is 1.

Factors[edit]

With adult humans having a max nutrition of 1, this means Ghouls have a max nutrition of 2.

Max Nutrition is calculated by:

Max Nutrition = (Body Size Factor × Base Body Size) × Food Max Factor

Where Body Size Factor and Food Max Factor are from the pawn's current lifestage, and Base Body Size is from the pawn's race: all are 1 by default. This means that most adult pawns have a Body Size Factor and Food Max Factor of 1, and therefore their max nutrition is equivalent to the body size of the pawn's race.

Body Size = Body Size Factor × Base Body Size
  • Life Stage Factors:
Life Stage Body Size Factor Food Max Factor Max Food
Baby 0.2 0.625 0.125
Child 0.35 2.286 0.8001
Teenager 0.8 1.25 1
Larva (Insect) 0.2 2 0.4
Immature (Insect) 0.5 1.5 0.75
Baby (Animal) 0.2 3 0.6
Baby (Tiny Animal) 0.1 6 0.6
Juvenile (Animal) 0.5 1.5 0.75
Preteen Content added by the Biotech DLC 0.7 1.552 1.0864
  • Base Body Size:
  • Click to
    Pawn Body Size
    Alpaca 1
    Alphabeaver 0.45
    Arctic fox 0.55
    Arctic wolf 0.85
    Bison 2.4
    Boomalope 2
    Boomrat 0.2
    Capybara 0.75
    Caribou 1
    Cassowary 0.6
    Cat 0.32
    Chicken 0.3
    Chinchilla 0.35
    Cobra 0.25
    Cougar 1
    Cow 2.4
    Deer 1.2
    Donkey 1.4
    Dromedary 2.1
    Duck 0.3
    Elephant 4
    Elk 2.1
    Emu 0.6
    Fennec fox 0.55
    Gazelle 0.7
    Goat 0.75
    Goose 0.6
    Grizzly bear 2.15
    Guinea pig 0.2
    Hare 0.2
    Horse 2.4
    Human 1
    Husky 0.86
    Ibex 1
    Iguana 0.4
    Labrador retriever 0.75
    Lynx 0.6
    Megascarab 0.2
    Megasloth 4
    Megaspider 1.2
    Monkey 0.35
    Muffalo 2.4
    Ostrich 1
    Panther 1
    Pig 1.7
    Polar bear 2.15
    Raccoon 0.4
    Rat 0.2
    Red fox 0.55
    Rhinoceros 3
    Sheep 0.75
    Snowhare 0.2
    Spelopede 0.8
    Squirrel 0.2
    Thrumbo 4
    Timber wolf 0.85
    Tortoise 0.5
    Turkey 0.6
    Warg 1.4
    Wild boar 0.85
    Yak 2.1
    Yorkshire terrier 0.32
    Ghoul Content added by the Anomaly DLC 1
    Toxalope Content added by the Biotech DLC 1.4
    Waste rat Content added by the Biotech DLC 0.3
  • Stat Def Data[edit]

    Name Description Category Parameters Complex Parameters Display Priority In Category
    • Def Name:
      MaxNutrition
    • Label:
      max nutrition
    The amount of nutrition needed to completely fill this creature's stomach.
    • Display Order: 11
    • Def Name:
      BasicsPawn
    • Label:
      Basics
    • Display All By Default: false
    • Default Base Value: 1
    • Hide At Value: 1
    • Min Value: 0.01
    • To String Style: FloatMaxTwo
    • Show On Mechanoids: false
    • Show On Entities: false
    • Cacheable: true
    • Parts:
      • StatPart_BodySize
      • StatPart_LifeStageMaxFood
    2501

    Version history[edit]