-
Notifications
You must be signed in to change notification settings - Fork 16
Diet Management (WIP)
Diet management is perhaps the most important feature of this mod's base functionality. Ultimately, this will determine whether your pawn will gain or lose weight under normal circumstances. At its core diet management consists of two things: when a pawn should eat and how much. Every compatible pawn will have a gizmo that looks like this:
This is called the diet gizmo.
The upper bar is the nutrition bar. This is the vanilla food need stat. You can think of nutrition as how satiated a pawn's food need is. The nutrition bar has two small dashes. When the nutrition bar falls below either of these, pawns will more rapidly lose weight, or, if they are already very thin, become malnourished and die.
The orange bar is the fullness bar. This is a concept introduced by RimRound. Instead of food directly turning into nutrition when a pawn eats, as is the case in vanilla, it now adds fullness that is then digested and converted into nutrition over time. The fullness bar has many dashes. The small ones on the bottom are just to show scale. The two at the end of the bar represent two important values: 'soft' limit and 'hard' limit. The soft limit represents how much food is considered 'full'. Anything above this value is pushing the pawn to their limits. The hard limit represents the physical maximum amount of food their stomach can hold before rupturing. If bursting is enabled, pawns that eat more than their hard limit will suffer an internal injury. This can happen unintentionally, so it is strongly recommended to leave bursting disabled.
In the top right of the diet gizmo, there is a button with a symbol on it. This button controls diet 'mode'. Each mode impacts the criteria for when and how much a pawn eats. In any case, there will be two small moveable vertical sliders that appear for each mode. In modes where the sliders appear on the same bar, which slider is which does not matter, only their relative positions. More information about each setting is below.
This mode is most similar to how vanilla RimWorld handles diet logic. Pawns will seek food when their nutrition drops below the lowest slider. They will seek an amount of nutrition approximately equal to the difference between their current nutrition and the value of the max slider. This mode will not consider fullness other than avoiding going over their fullness maximum. This mode is a good choice for both pawns that are to lose weight as well as those who are to maintain their current one. An example setting that mimics vanilla behavior is as follows:
As they lose weight more rapidly when below the dashes, a good setting for long term weight loss might look like this:
Fullness mode is most suited for causing a pawn to gain weight as fast as possible or for increasing stomach capacity through stomach stretching. A pawn will seek food when their fullness is below the lower slider and seek enough fullness to meet their upper slider without going over their hard limit. Ensuring a pawn always has food to digest is the easiest way to guarantee they gain weight. A good slider configuration for steady weight gain looks like this:
For optimal stomach capacity growth, an optimal configuration might look like this:
NOTE: Because digestion time is comparatively short compared to how fast their nutrition depletes, fullness mode can result in pawns that are almost always eating and rarely find time to do much else. If you want to avoid this behavior, consider hybrid mode.
For a balance between gaining and pawn usefulness, hybrid mode may be the best choice. This mode causes a pawn to seek food when their nutrition drops below the blue slider and attempt to find enough food to eat until their orange one. An example configuration is as follows:
This mode attempts to disregard changes made to the vanilla food seeking behavior. Pawns on this mode will still gain and lose weight, but are unlikely to do so from diet alone. This mode requires no input to work. Disabled mode looks like this: