SerenityJS
    Preparing search index...

    Interface ItemTypeFoodComponentOptions

    interface ItemTypeFoodComponentOptions {
        can_always_eat: boolean;
        nutrition: number;
        saturation_modifier: number;
        using_converts_to: ItemType;
    }
    Index

    Properties

    can_always_eat: boolean

    Determines if the item can always be eaten, regardless of hunger.

    nutrition: number

    The nutrition value of the item.

    This value can be negative, which would result in hunger loss.

    saturation_modifier: number

    The saturation modifier of the item.

    This value must be greater than 0.

    using_converts_to: ItemType

    The item type that this food component converts to when used.