This component makes your prefab food for eaters.

Component Edible Fields

numberhealthvalueThe healing/damaging value.
numberhungervalueHow filling the food is.
numbersanityvalueWhat it does to ones mind.
stringfoodtypeOnly eaters with the identical foodpref can eat this.
functiononeatenFires when consumed. Args: inst, eater
number (percent)stale_hunger, stale_health, spoiled_hunger, spoiled_healthstat-value multiplier for that stage of spoilage

Component Edible Events

NameDataFires in/when...
oneateneaterOnEaten (right after oneaten fires)