Difference between revisions of "Max Nutrition"

From RimWorld Wiki
Jump to navigation Jump to search
(Redirected page to Saturation#General mechanics)
Tag: New redirect
 
(Max Nutrition Stat)
Tag: Removed redirect
Line 1: Line 1:
#REDIRECT [[Saturation#General mechanics]]
+
{{Stub|reason=1) Version history 2) Two-way links 3) Verify pawn max nutrition in-game}}
 +
{{Verified|1.5.4104}}{{Stat
 +
| min value = 0.01
 +
| default base value = 1
 +
| to string style = FloatMaxTwo
 +
| description = The amount of [[nutrition]] needed to completely fill this creature's stomach.
 +
| category = BasicsPawn
 +
}}
  
[[Category:Stat]]
+
== Factors ==
 +
* [[Hediffs]]
 +
** {{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.
 +
 
 +
[[Max Nutrition]] is calculated by:
 +
 
 +
<code>'''Max Nutrition''' = ('''Body Size Factor''' × '''Base Body Size''') × '''Food Max Factor'''</code>
 +
 
 +
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.
 +
 
 +
* Life Stage Factors:
 +
{| {{STDT| sortable}}
 +
! Life Stage !! Body Size Factor !! Food Max Factor !! Max Food
 +
|-
 +
| Baby || 0.2 || 0.625 || 0.125 <!-- bodySizeFactor * foodMaxFactor = maxFood = 0.125 -->
 +
|-
 +
| Child || 0.35 || 2.286 || 0.8001 <!-- bodySizeFactor * foodMaxFactor = maxFood = 0.8 -->
 +
|-
 +
| Teenager || 0.8 || 1.25 || 1 <!-- bodySizeFactor * foodMaxFactor = maxFood = 1.0 -->
 +
|-
 +
| 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{{BiotechIcon}} || 0.7 || 1.552 || 1.0864 <!-- bodySizeFactor * foodMaxFactor = maxFood = 0.9 -->
 +
|}
 +
 
 +
 
 +
* Base Body Size:
 +
{| {{STDT| sortable}}
 +
! [[Pawn]] !! Base Body Size
 +
|-
 +
| [[Grizzly bear]] || 2.15
 +
|-
 +
| [[Polar bear]] || 2.15
 +
|-
 +
| [[Ostrich]] || 1
 +
|-
 +
| [[Emu]] || 0.6
 +
|-
 +
| [[Cassowary]] || 0.6
 +
|-
 +
| [[Cougar]] || 1
 +
|-
 +
| [[Panther]] || 1
 +
|-
 +
| [[Lynx]] || 0.6
 +
|-
 +
| [[Cat]] || 0.32
 +
|-
 +
| [[Yorkshire terrier]] || 0.32
 +
|-
 +
| [[Guinea pig]] || 0.2
 +
|-
 +
| [[Labrador retriever]] || 0.75
 +
|-
 +
| [[Husky]] || 0.86
 +
|-
 +
| [[Monkey]] || 0.35
 +
|-
 +
| [[Chicken]] || 0.3
 +
|-
 +
| [[Duck]] || 0.3
 +
|-
 +
| [[Turkey]] || 0.6
 +
|-
 +
| [[Goose]] || 0.6
 +
|-
 +
| [[Cow]] || 2.4
 +
|-
 +
| [[Boomalope]] || 2
 +
|-
 +
| [[Muffalo]] || 2.4
 +
|-
 +
| [[Bison]] || 2.4
 +
|-
 +
| [[Dromedary]] || 2.1
 +
|-
 +
| [[Goat]] || 0.75
 +
|-
 +
| [[Elk]] || 2.1
 +
|-
 +
| [[Yak]] || 2.1
 +
|-
 +
| [[Caribou]] || 1
 +
|-
 +
| [[Horse]] || 2.4
 +
|-
 +
| [[Donkey]] || 1.4
 +
|-
 +
| [[Elephant]] || 4
 +
|-
 +
| [[Rhinoceros]] || 3
 +
|-
 +
| [[Hare]] || 0.2
 +
|-
 +
| [[Snowhare]] || 0.2
 +
|-
 +
| [[Megascarab]] || 0.2
 +
|-
 +
| [[Spelopede]] || 0.8
 +
|-
 +
| [[Megaspider]] || 1.2
 +
|-
 +
| [[Thrumbo]] || 4
 +
|-
 +
| [[Cobra]] || 0.25
 +
|-
 +
| [[Tortoise]] || 0.5
 +
|-
 +
| [[Alphabeaver]] || 0.45
 +
|-
 +
| [[Pig]] || 1.7
 +
|-
 +
| [[Wild boar]] || 0.85
 +
|-
 +
| [[Ibex]] || 1
 +
|-
 +
| [[Deer]] || 1.2
 +
|-
 +
| [[Gazelle]] || 0.7
 +
|-
 +
| [[Chinchilla]] || 0.35
 +
|-
 +
| [[Sheep]] || 0.75
 +
|-
 +
| [[Alpaca]] || 1
 +
|-
 +
| [[Megasloth]] || 4
 +
|-
 +
| [[Capybara]] || 0.75
 +
|-
 +
| [[Squirrel]] || 0.2
 +
|-
 +
| [[Rat]] || 0.2
 +
|-
 +
| [[Boomrat]] || 0.2
 +
|-
 +
| [[Raccoon]] || 0.4
 +
|-
 +
| [[Iguana]] || 0.4
 +
|-
 +
| [[Warg]] || 1.4
 +
|-
 +
| [[Timber wolf]] || 0.85
 +
|-
 +
| [[Arctic wolf]] || 0.85
 +
|-
 +
| [[Fennec fox]] || 0.55
 +
|-
 +
| [[Red fox]] || 0.55
 +
|-
 +
| [[Arctic fox]] || 0.55
 +
|-
 +
| [[Human]] || 1
 +
|-
 +
| [[Waste rat]]{{BiotechIcon}} || 0.3
 +
|-
 +
| [[Toxalope]]{{BiotechIcon}} || 1.4
 +
|}
 +
 
 +
== Stat Def Data ==
 +
{| {{STDT}}
 +
! 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
 +
<!--</StatDef>-->
 +
|- id="Max Nutrition" <!--<StatDef>-->
 +
|
 +
* '''Def Name:'''<br />MaxNutrition
 +
* '''Label:'''<br />max nutrition
 +
| The amount of nutrition needed to completely fill this creature's stomach.
 +
|
 +
* Display Order:<br />'''11'''
 +
* Def Name:<br />'''BasicsPawn'''
 +
* Label:<br />'''Basics'''
 +
* Display All By Default:<br />{{Bad|false}}
 +
|
 +
* '''Default Base Value:''' 1
 +
* '''Hide At Value:''' 1
 +
* '''Min Value:''' 0.01
 +
* '''To String Style:''' FloatMaxTwo
 +
* '''Show On Mechanoids:''' {{Bad|false}}
 +
* '''Show On Entities:''' {{Bad|false}}
 +
* '''Cacheable:''' {{Good|true}}
 +
|
 +
* '''Parts:'''
 +
** '''StatPart_BodySize'''
 +
** '''StatPart_LifeStageMaxFood'''
 +
| 2501
 +
<!--</StatDef>-->
 +
|}
 +
 
 +
{{nav|stats|wide}}

Revision as of 05:40, 17 September 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

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.

  • 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
PreteenContent added by the Biotech DLC 0.7 1.552 1.0864


  • Base Body Size:
Pawn Base Body Size
Grizzly bear 2.15
Polar bear 2.15
Ostrich 1
Emu 0.6
Cassowary 0.6
Cougar 1
Panther 1
Lynx 0.6
Cat 0.32
Yorkshire terrier 0.32
Guinea pig 0.2
Labrador retriever 0.75
Husky 0.86
Monkey 0.35
Chicken 0.3
Duck 0.3
Turkey 0.6
Goose 0.6
Cow 2.4
Boomalope 2
Muffalo 2.4
Bison 2.4
Dromedary 2.1
Goat 0.75
Elk 2.1
Yak 2.1
Caribou 1
Horse 2.4
Donkey 1.4
Elephant 4
Rhinoceros 3
Hare 0.2
Snowhare 0.2
Megascarab 0.2
Spelopede 0.8
Megaspider 1.2
Thrumbo 4
Cobra 0.25
Tortoise 0.5
Alphabeaver 0.45
Pig 1.7
Wild boar 0.85
Ibex 1
Deer 1.2
Gazelle 0.7
Chinchilla 0.35
Sheep 0.75
Alpaca 1
Megasloth 4
Capybara 0.75
Squirrel 0.2
Rat 0.2
Boomrat 0.2
Raccoon 0.4
Iguana 0.4
Warg 1.4
Timber wolf 0.85
Arctic wolf 0.85
Fennec fox 0.55
Red fox 0.55
Arctic fox 0.55
Human 1
Waste ratContent added by the Biotech DLC 0.3
ToxalopeContent added by the Biotech DLC 1.4

Stat Def Data

Def Name
Label
Label For Full Stat List
Offset Label
Attributes
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