Tofu: Difference between revisions

From PZwiki
(→‎top: New infobox upgrade - Food)
(→‎Code: CodeBox update)
Line 55: Line 55:


==Code==
==Code==
'''''From items_food.txt (Project Zomboid directory/media/scripts/)'''''
{{CodeBox
{{Retrieved|version=41.73}}
| {{CodeSnip
<pre>
  | lang = java
    item Tofu
  | line = false
{
  | source = items_food.txt
DisplayName = Tofu,
  | retrieved = true
DisplayCategory = Food,
  | version = 41
Type = Food,
  | incver = 73
Weight = 0.3,
  | code =
Icon = Tofu,
item Tofu
EvolvedRecipe = Pizza:10;Soup:10;Stew:10;Stir fry Griddle Pan:10;Stir fry:10;Burger:10;Salad:10;RicePot:10;RicePan:10;Roasted Vegetables:10;PastaPot:10;PastaPan:10;Taco:5;Burrito:10;Burger:10,
{
FoodType = Vegetables,
    DisplayName             = Tofu,
Packaged = TRUE,
    DisplayCategory         = Food,
DaysFresh = 6,
    Type                   = Food,
DaysTotallyRotten = 14,
    Weight                 = 0.3,
HungerChange = -10,
    Icon                   = Tofu,
Calories = 30,
    EvolvedRecipe           = Pizza:10;Soup:10;Stew:10;Stir fry Griddle Pan:10;Stir fry:10;Burger:10;Salad:10;RicePot:10;RicePan:10;Roasted Vegetables:10;PastaPot:10;PastaPan:10;Taco:5;Burrito:10;Burger:10,
Carbohydrates = 1,
    FoodType               = Vegetables,
Lipids = 1,
    Packaged               = TRUE,
Proteins = 5,
    DaysFresh               = 6,
WorldStaticModel = Tofu,
    DaysTotallyRotten       = 14,
}
    HungerChange           = -10,
</pre>
    Calories               = 30,
    Carbohydrates           = 1,
    Lipids                 = 1,
    Proteins               = 5,
    WorldStaticModel       = Tofu,
}
  }}
}}


{{Navbox food}}
{{Navbox food}}
[[Category:Perishable food]]
[[Category:Perishable food]]

Revision as of 11:32, 31 January 2024

Template:Header/sandbox2

Spiffo controlyourself.png
This page was last updated for an older version (41.73).
The current stable version is 41.78.16, released 2022-12-12, so information on this page may be inaccurate. Help get this page updated by adding any missing content. [edit]
Please update the version after updating the page.
Tofu
Tofu Model.png
Tofu (Rotten)
General
Category
Food
Encumbrance
Moodle Icon HeavyLoad.png
0.3
Properties
Packaged
Yes
Days fresh
6 days
Days until rotten
14 days
Nutrition
HungerMoodle Icon Hungry.png
-10
CaloriesCalories
30
CarbohydratesCarbohydrates
1
ProteinsProteins
5
FatFat
1
Technical
Item ID
Base.Tofu

Tofu is a perishable food item.

Usage

Consumable properties

Tofu can be eaten, providing the player with some positive effects, however these will become negative the longer it's left to perish.

Fresh Stale Rotten

Tofu.png
Hunger: -10


Tofu.png
Hunger: -7
Boredom: +10
Unhappiness: +10

TofuRotten.png
Hunger: -4
Boredom: +20
Unhappiness: +20
Dangerous, will cause sickness.

Crafting

Main article: Cooking

Evolved recipes

Tofu is a cooking ingredient.

Product Nutrition
Soup
Soup
10
Stew
Stew
10
Salad
Salad
10
Stir Fry
Stir Fry
10
Roasted Vegetables
Roasted Vegetables
10
Burger
Burger
10
Rice Pot/Saucepan
Rice Pot/Saucepan
10
Pasta Pot/Saucepan
Pasta Pot/Saucepan
10
Taco
Taco
10
Burrito
Burrito
10
Pizza
Pizza
10

Distribution

Tofu is often found in refrigerators.

Code

Code icon.png Code snippet! This section contains source code from Project ZomboidShow / Hide

Source: ProjectZomboid\media\scripts\items_food.txt

Retrieved: Build 41.73
item Tofu
{
    DisplayName             = Tofu,
    DisplayCategory         = Food,
    Type                    = Food,
    Weight                  = 0.3,
    Icon                    = Tofu,
    EvolvedRecipe           = Pizza:10;Soup:10;Stew:10;Stir fry Griddle Pan:10;Stir fry:10;Burger:10;Salad:10;RicePot:10;RicePan:10;Roasted Vegetables:10;PastaPot:10;PastaPan:10;Taco:5;Burrito:10;Burger:10,
    FoodType                = Vegetables,
    Packaged                = TRUE,
    DaysFresh               = 6,
    DaysTotallyRotten       = 14,
    HungerChange            = -10,
    Calories                = 30,
    Carbohydrates           = 1,
    Lipids                  = 1,
    Proteins                = 5,
    WorldStaticModel        = Tofu,
}