Skip to main content

Module food_data

Module food_data 

Source
Expand description

Player food/hunger system.

Manages food level, saturation, and exhaustion — the three values that control natural health regeneration and starvation damage.

Modules§

food_constants
All food-system constants bundled in one place.

Structs§

FoodData
Tracks a player’s hunger, saturation, and exhaustion state. One instance is stored per player behind a SyncMutex.

Enums§

FoodTickResult
Describes what the hunger tick determined should happen this tick

Functions§

saturation_by_modifier
Computes the absolute saturation value from a nutrition count and a modifier.