Item components

PreparedFood

item componentbuilder

Turns an item into new-style prepared food with freshness, ingredient ledgers and drug doses

Builder help

You can use the following options with this component: name <name> - sets the name of the component desc <desc> - sets the description of the component hunger <hours> - the hours of food satiation from eating one serving thirst <hours> - the hours of thirst satiation from eating one serving water <amount> - the liquid volume of water from eating one serving alcohol <amount> - the liquid volume of alcohol from eating one serving bites <#> - the number of bites in one serving scope whole|stack - whether this is one food item or one serving per stack unit quality <multiplier> - sets nutrition scaling per quality step, e.g. 0.08 stale <seconds|none> - how long before it becomes stale spoil <seconds|none> - how long before it becomes spoiled stalemult <multiplier> - nutrition multiplier while stale spoiledmult <multiplier> - nutrition multiplier while spoiled absorb <amount> - liquid volume absorbed into the food before overflow contamination taste <template> - taste text, with tokens like {quality}, {freshness}, {ingredients}, {var:name} short <template|clear> - optional short-description template full <template|clear> - optional full-description template ingredient add <role> <text> - adds a default ingredient ledger entry ingredient category <#> <category> - sets an ingredient's factual category ingredient allergen <#> <allergen> - toggles a major allergen on an ingredient ingredient clear - clears default ingredient entries dietary <content> - toggles a factual dietary content (this is not a suitability label) feedpurpose <purpose|none> - toggles an animal-feed purpose, or clears all purposes drug <drug> <grams> - adds an ingested default drug dose drug clear - clears default drug doses staledrug <drug> <grams> - adds an ingested stale/spoiled drug dose staledrug clear - clears stale/spoiled drug doses prog <which|clear> - sets or clears the on-eat prog staleprog <which|clear> - sets or clears the stale-eat prog