Chocolate: Difference between revisions

From PZwiki
m (Category Project: Sweets)
m (Distribution table update)
(23 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Languages}}
{{Header|Project Zomboid|Items|Food|Sweets}}
{{header/sandbox2|Project Zomboid|Items|Food|Sweets}}
{{Page version|41.78.16}}
{{page version|41.73}}
{{Infobox item
{{Infobox food
|name=Chocolate
|display_name=Chocolate
|model=Chocolate_Model.png
|name_colour=Food
|icon=Chocolate.png
|name_text_colour=Food
|icon_name=Chocolate
|image=Chocolate_Model.png
|image_width=200px
|alternate_image=Chocolate.png
|alternate_name=Chocolate
|alternate_link=
<!--GENERAL-->
<!--GENERAL-->
|category=Food
|category=Food
Line 24: Line 19:
|unhappy_change=-10
|unhappy_change=-10
<!--TECHNICAL DETAILS-->
<!--TECHNICAL DETAILS-->
|class_name=Base.Chocolate
|item_id=Base.Chocolate
}}'''Chocolate''' is a [[Food#Non-Perishable|non-perishable]] food [[item]].  
}}
'''Chocolate''' is a non-perishable [[food]] [[Items|item]].


==Usage==
==Usage==
Line 35: Line 31:
===Evolved recipes===
===Evolved recipes===
Chocolate is a [[cooking]] [[Recipe ingredients|ingredient]].
Chocolate is a [[cooking]] [[Recipe ingredients|ingredient]].
{{EvolvedRecipesForItem|Cake=20|Pie=20|Bread=10|ConeIcecream=5|}}
{{EvolvedRecipesForItem|cake=20|pie=20|bread=10|coneicecream=5}}


==Distribution==
==Distribution==
The loot distributions can be found in the table(s) below.
<!--BOT FLAG|Chocolate|41.78.16-->
{{clear}}
<div class="togglebox theme-red">
    <div>Chocolate distribution
        <span class="mw-customtoggle-togglebox-Chocolate" title="{{int:show}} / {{int:hide}}" style="float:right; padding-right:30px; padding-top:4px; font-size:0.7em; font-weight:normal;">{{int:show}} / {{int:hide}}</span></div>
    <div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-togglebox-Chocolate">
    <div class="toggle-content"><div style="display: flex;"><div style="float:left;">
    {| class="wikitable theme-red" style="margin-right:15px; width:95%;"
    |+ {{ll|Containers}}
    ! Building / Room
    ! Container
    ! Rolls
    ! Chance
    |-
    | Not referenced
    | {{ll|TheatreSnacks}}
    | 4
    | 8.0
    |-
    | all
    | {{ll|Bag_ALICEpack}}
    | 1
    | 1.0
    |-
    | all
    | {{ll|Bag_FoodSnacks}}
    | 2
    | 10.0
    |-
    | all
    | {{ll|Bag_FoodSnacks}}
    | 2
    | 20.0
    |-
    | all
    | {{ll|Bag_WorkerBag}}
    | 1
    | 8.0
    |-
    | all
    | {{ll|FoodBox}}
    | 15
    | 6.0
    |-
    | all
    | {{ll|SurvivorCrate}}
    | 4
    | 8.0
    |-
    | artstore
    | {{ll|shelves}}
    | 4
    | 10.0
    |-
    | bandkitchen
    | {{ll|counter}}
    | 4
    | 8.0
    |-
    | cafekitchen
    | {{ll|crate}}
    | 4
    | 20.0
    |-
    | cafekitchen
    | {{ll|crate}}
    | 4
    | 10.0
    |-
    | cafekitchen
    | {{ll|crate}}
    | 4
    | 50.0
    |-
    | cafeteria
    | {{ll|displaycasebakery}}
    | 4
    | 10.0
    |-
    | candystorage
    | {{ll|metal_shelves}}
    | 4
    | 10.0
    |-
    | candystore
    | {{ll|counter}}
    | 4
    | 10.0
    |-
    | classroom
    | {{ll|desk}}
    | 4
    | 1.0
    |-
    | gasstorage
    | {{ll|crate}}
    | 4
    | 10.0
    |-
    | grocerystorage
    | {{ll|crate}}
    | 4
    | 1.0
    |-
    | kitchen
    | {{ll|counter}}
    | 4
    | 6.0
    |-
    | kitchen
    | {{ll|counter}}
    | 4
    | 8.0
    |-
    | prisoncells
    | {{ll|wardrobe}}
    | 4
    | 4.0
    |}
</div>
<div style="float:left;">
    {| class="wikitable theme-red" style="margin-right:15px; width:95%;"
    |+ {{ll|Vehicles}}
    ! Vehicle Type/Location
    ! Rolls
    ! Chance
    |-
    | SurvivalistGlovebox
    | 4
    | 8
    |}
</div>
    </div><div style="clear:both;"></div>
    </div></div><div class="toggle large mw-customtoggle-togglebox-Chocolate" title="{{int:show}}/{{int:hide}}"></div></div>
<!--END BOT FLAG|Chocolate|41.78.16-->
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==
==Code==
'''''From items_food.txt (Project Zomboid directory/media/scripts/)'''''
{{CodeBox
{{Retrieved|version=41.73}}
| {{CodeSnip
<pre> item Chocolate
  | lang = java
  | line = true
  | start = 4013
  | source = items_food.txt
  | retrieved = true
  | version = 41.78.16
  | code =
item Chocolate
{
{
DisplayName = Chocolate,
DisplayName = Chocolate,
Line 60: Line 200:
Proteins = 10,
Proteins = 10,
WorldStaticModel = Chocolate,
WorldStaticModel = Chocolate,
}</pre>
}
}}
}}


==See also==
==See also==
Line 67: Line 209:
*[[Cookie]]
*[[Cookie]]


{{Navbox food}}
{{Navbox items|miscellaneous_food}}
 
 
[[Category:Non-perishable food]]
[[Category:Non-perishable food]]

Revision as of 15:11, 24 April 2024

Project ZomboidItemsFoodSweetsChocolate
UI Tick.png
This page has been revised for the current stable version (41.78.16).
Help by adding any missing content. [edit]
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

The loot distributions can be found in the table(s) below.

Chocolate distribution Show / Hide
Containers
Building / Room Container Rolls Chance
Not referenced TheatreSnacks 4 8.0
all Bag_ALICEpack 1 1.0
all Bag_FoodSnacks 2 10.0
all Bag_FoodSnacks 2 20.0
all Bag_WorkerBag 1 8.0
all FoodBox 15 6.0
all SurvivorCrate 4 8.0
artstore shelves 4 10.0
bandkitchen counter 4 8.0
cafekitchen crate 4 20.0
cafekitchen crate 4 10.0
cafekitchen crate 4 50.0
cafeteria displaycasebakery 4 10.0
candystorage metal_shelves 4 10.0
candystore counter 4 10.0
classroom desk 4 1.0
gasstorage crate 4 10.0
grocerystorage crate 4 1.0
kitchen counter 4 6.0
kitchen counter 4 8.0
prisoncells wardrobe 4 4.0
Vehicles
Vehicle Type/Location Rolls Chance
SurvivalistGlovebox 4 8

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

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.78.16
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