Chocolate: Difference between revisions

From PZwiki
(→‎top: New infobox upgrade - Food)
(→‎Code: CodeBox update)
Line 36: Line 36:
Chocolate can be found in [[Containers#Kitchen Counter|kitchen counters]], gas stations and grocery stores.
Chocolate can be found in [[Containers#Kitchen Counter|kitchen counters]], gas stations and grocery stores.


==Code==
{{CodeBox
'''''From items_food.txt (Project Zomboid directory/media/scripts/)'''''
| {{CodeSnip
{{Retrieved|version=41.73}}
  | lang = java
<pre> item Chocolate
  | line = false
{
  | source = items_food.txt
DisplayName = Chocolate,
  | retrieved = true
DisplayCategory = Food,
  | version = 41
Type = Food,
  | incver = 73
Weight = 0.2,
  | code =
Icon = Chocolate,
item Chocolate
EvolvedRecipe = Cake:20;PieSweet:20;Bread:10;ConeIcecream:5,
{
FoodType = NoExplicit,
  DisplayName         = Chocolate,
Packaged = TRUE,
  DisplayCategory     = Food,
HungerChange = -20,
  Type               = Food,
UnhappyChange = -10,
  Weight             = 0.2,
Calories = 850,
  Icon               = Chocolate,
Carbohydrates = 110,
  EvolvedRecipe       = Cake:20;PieSweet:20;Bread:10;ConeIcecream:5,
Lipids = 66,
  FoodType           = NoExplicit,
Proteins = 10,
  Packaged           = TRUE,
WorldStaticModel = Chocolate,
  HungerChange       = -20,
}</pre>
  UnhappyChange       = -10,
  Calories           = 850,
  Carbohydrates       = 110,
  Lipids             = 66,
  Proteins           = 10,
  WorldStaticModel   = Chocolate,
}
  }}
}}


==See also==
==See also==

Revision as of 09:21, 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.
Chocolate
Chocolate Model.png
General
Category
Food
Encumbrance
Moodle Icon HeavyLoad.png
0.2
Properties
Packaged
Yes
Nutrition
HungerMoodle Icon Hungry.png
-20
CaloriesCalories
850
CarbohydratesCarbohydrates
110
ProteinsProteins
10
FatFat
66
Effect
UnhappinessMoodle Icon Unhappy.png
-10
Technical
Item ID
Base.Chocolate

Chocolate is a non-perishable food item.

Usage

Chocolate can be eaten, providing the player with some positive effects. As it is non-perishable, chocolate will never go stale or rotten.

Crafting

Main article: Cooking

Evolved recipes

Chocolate is a cooking ingredient.

Product Nutrition
Pie (savory)
Pie (savory)
20
Cake
Cake
20
Ice Cream Cone
Ice Cream Cone
5
Bread
Bread
10

Distribution

Chocolate can be found in kitchen counters, gas stations and grocery stores.

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 Chocolate
{
  DisplayName         = Chocolate,
  DisplayCategory     = Food,
  Type                = Food,
  Weight              = 0.2,
  Icon                = Chocolate,
  EvolvedRecipe       = Cake:20;PieSweet:20;Bread:10;ConeIcecream:5,
  FoodType            = NoExplicit,
  Packaged            = TRUE,
  HungerChange        = -20,
  UnhappyChange       = -10,
  Calories            = 850,
  Carbohydrates       = 110,
  Lipids              = 66,
  Proteins            = 10,
  WorldStaticModel    = Chocolate,
}

See also