Leek: Difference between revisions

From PZwiki
m (Version bump)
(25 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{Languages}}{{Header|Project Zomboid|Items|Food|Perishable Food|Vegetables|type=Food|version=Version 41|incver=73}}{{Infobox food
{{Header|Project Zomboid|Items|Food|Vegetables}}
|display_name=Leek
{{Page version|41.78.16}}
|name_colour=Food
{{Infobox item
|name_text_colour=Food
|name=Leek
|image=Leek.png
|model=Leek_Model.png
|alternate_image=LeekRotten.png
|icon=Leek.png
|alternate_link=
|icon_name=Leek
|alternate_name=Leek (Rotten)
|icon2=LeekRotten.png
 
|icon_name2=Leek (Rotten)
<!--GENERAL-->
<!--GENERAL-->
|category=Food
|category=Food
Line 20: Line 22:
|carbohydrates=12.59
|carbohydrates=12.59
<!--TECHNICAL DETAILS-->
<!--TECHNICAL DETAILS-->
|class_name=Base.Leek
|item_id=Base.Leek
}}'''Leek''' is a [[Food#Perishable|perishable]] food [[item]].  
}}
 
'''Leek''' is a perishable [[food]] [[Items|item]]]].


==Usage==
==Usage==
===Consumable properties===
===Consumable properties===
Leek can be eaten, providing the player with some positive effects, however these will become negative the longer it's left to perish.
Leek can be eaten, providing the player with some positive effects, however these will become negative the longer it's left to perish.
{{Consumables2
{{Consumables
|image = Leek.png
|image = Leek.png
|hunger = -12
|hunger = -12
Line 43: Line 46:
|rotten image = LeekRotten.png
|rotten image = LeekRotten.png
}}
}}
 
==Crafting==
==Crafting==
Leek can be preserved to extend their lifespan by using a [[Empty_Jar|jar]].
Leek can be preserved to extend their lifespan by using a [[Empty Jar|jar]].
{{Crafting header|ing=6}}<!-- Automatically generated by ReLookup. Subject RecipeLookup: 2057 -->
{{Crafting header|ing=6}}
{{Crafting/core|ing=6
{{Crafting cooking|027|ing=6}}
| product_image = [[File:JarWhite.png|link=Jar of Leeks|Jar of Leeks]] | product_name = [[Jar of Leeks]] | product_quantity = x1
| xp = <!-- Not present in the old template. Please fill in manually. -->
| sl = ''none''
| req =
| f1 = [[File:JarEmpty2.png|link=Empty Jar|Empty Jar]] | i1 = [[Empty Jar]] | q1 = x1 | tag1 = (consumed)
| f2 = [[File:Jar Lid.png|link=Jar Lid|Jar Lid]] | i2 = [[Jar Lid]] | q2 = x1 | tag2 = (consumed)
| f3 = [[File:Leek.png|link=Leek|Leek]] | i3 = [[Leek]] | q3 = x5 | tag3 = (consumed)
| f4 = [[File:Water_drop.png|link=Water|Water]] | i4 = [[Water]] | q4 = (10 units)
| f5 = [[File:Vinegar.png|link=Vinegar|Vinegar]] | i5 = [[Vinegar]] | q5 = (2 units)
| f6 = [[File:Sugar.png|link=Sugar|Sugar]] | i6 = [[Sugar]] | q6 = (1 unit)
}}
|}
|}


==Evolved recipes==
==Evolved recipes==
Leek is a [[cooking]] [[Recipe Ingredients|ingredient]].
Leek is a [[cooking]] [[Recipe ingredients|ingredient]].
{{EvolvedRecipesForItem|Omelette=6|Soup=12|Stew=12|Pie=12|StirFry=12|Salad=12|RoastedVegetables=12|Rice=12|Pasta=12|}}
{{EvolvedRecipesForItem|Omelette=6|Soup=12|Stew=12|Pie=12|StirFry=12|Salad=12|RoastedVegetables=12|Rice=12|Pasta=12|}}
===Sack of Leek===
{{Crafting header|ing=1}}
{{Crafting general|057|ing=1}}
|}


==Distribution==
==Distribution==
Leek are often found in [[refrigerator]]s and [[Containers#Displays|grocery displays]].
The loot distributions can be found in the table(s) below.
 
{| class="mw-collapsible mw-collapsed wikitable theme-red" data-expandtext="{{int:show}}" data-collapsetext="{{int:hide}}" style="text-align:center; min-width:24em;"
! colspan="4" | Containers
|-
! Building/Room
! Container
! style="width: 3.2em;" | Rolls
! style="width: 3.2em;" | Chance
|-
|rowspan="2"|all
|[[fridge]]
|4
|2
|-
|[[fridge]]
|4
|2
|-
|chinesekitchen
|[[fridge]]
|4
|8
|-
|dinerkitchen
|[[fridge]]
|4
|2
|-
|rowspan="2"|gigamart
|[[grocerstand]]
|4
|1
|-
|[[grocerstand]]
|4
|2
|-
|restaurantkitchen
|[[fridge]]
|4
|2
|-
|sushikitchen
|[[fridge]]
|4
|8
|}
Leeks are often found in [[refrigerator]]s and [[Containers#Displays|grocery displays]]. They can also be found through [[foraging]].
 
Sacks of leeks can be found in grocery stores and warehouses.


==Gallery==
==Gallery==
<gallery>
<gallery>
File:Leek Model.png|Leek model when placed in the world.
Leek Model.png|Leek model when placed in the world.
File:LeekRotten Model.png|Rotten leek model when placed in the world.
LeekRotten Model.png|Rotten leek model when placed in the world.
</gallery>
</gallery>


==Code==
==Code==
'''''From items.txt (Project Zomboid directory/media/scripts/)'''''
{{CodeBox|[[File:Leek.png]] {{ID|Base.Leek}}<br>
{{Retrieved|version=41|incver=73}}
{{CodeSnip
<pre>
  | lang = java
item Leek
  | line = true
{
  | start = 1214
  | source = items_food.txt
  | retrieved = true
  | version = 41.78.16
  | code =
item Leek
{
DisplayName = Leek,
DisplayName = Leek,
DisplayCategory = Food,
DisplayCategory = Food,
Line 97: Line 150:
StaticModel = CylinderFood_Green,
StaticModel = CylinderFood_Green,
WorldStaticModel = Leek_Ground,
WorldStaticModel = Leek_Ground,
}
}  
</pre>
}}
 
[[File:Sandbag.png]] {{ID|Base.SackProduce_Leek}}<br>
{{CodeSnip
  | lang = java
  | line = true
  | start = 8135
  | source = items_food.txt
  | retrieved = true
  | version = 41.78.16
  | code =
item SackProduce_Leek
{
DisplayName = Sack of Leeks,
DisplayCategory = Food,
Type = Food,
Weight = 2,
Icon = Sandbag,
CantEat = TRUE,
DaysFresh = 5,
DaysTotallyRotten = 8,
WorldStaticModel = SandBag,
}
}}
}}


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

Revision as of 02:41, 28 March 2024

UI Tick.png
This page has been revised for the current stable version (41.78.16).
Help by adding any missing content. [edit]
Leek
Leek Model.png
Leek (Rotten)
General
Category
Food
Encumbrance
Moodle Icon HeavyLoad.png
0.2
Properties
Days fresh
5 days
Days until rotten
8 days
Nutrition
HungerMoodle Icon Hungry.png
-12
ThirstMoodle Icon Thirsty.png
-5
CaloriesCalories
54
CarbohydratesCarbohydrates
12.59
ProteinsProteins
1.34
FatFat
0.27
Technical
Item ID
Base.Leek

Leek is a perishable food item]].

Usage

Consumable properties

Leek 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

Leek.png
Hunger: -12


Leek.png
Hunger: -9
Boredom: +10
Unhappiness: +10

LeekRotten.png
Hunger: -5
Boredom: +20
Unhappiness: +20
Dangerous, will cause sickness.

Crafting

Leek can be preserved to extend their lifespan by using a jar.

Product XP gained Skill(s) Recipe Ingredient 1 Ingredient 2 Ingredient 3 Ingredient 4 Ingredient 5 Ingredient 6
JarWhite.png
Jar of Leeks
2.5 Cooking none JarEmpty2.png
Jar
(consumed)
Jar Lid
Jar Lid
(consumed)
Leek.png
Leek x5
(consumed)
WaterDrop.png
Water
(10 units)

(consumed)
Vinegar.png
Vinegar
(2 units)

(consumed)

(1 unit)

(consumed)

Evolved recipes

Leek is a cooking ingredient.

Product Nutrition
Soup
Soup
12
Stew
Stew
12
Salad
Salad
12
Stir Fry
Stir Fry
12
Roasted Vegetables
Roasted Vegetables
12
Pie (savory)
Pie (savory)
12
Rice Pot/Saucepan
Rice Pot/Saucepan
12
Pasta Pot/Saucepan
Pasta Pot/Saucepan
12
Omelette
Omelette
6

Sack of Leek

Product XP gained Skill(s) Recipe Ingredient 1
Leek.png
Leek x12
0 XP none Sandbag.png
Sack of Leek
(consumed)

Distribution

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

Containers
Building/Room Container Rolls Chance
all fridge 4 2
fridge 4 2
chinesekitchen fridge 4 8
dinerkitchen fridge 4 2
gigamart grocerstand 4 1
grocerstand 4 2
restaurantkitchen fridge 4 2
sushikitchen fridge 4 8

Leeks are often found in refrigerators and grocery displays. They can also be found through foraging.

Sacks of leeks can be found in grocery stores and warehouses.

Gallery

Code

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

Leek.png Base.Leek
Source: ProjectZomboid\media\scripts\items_food.txt

Retrieved: Build 41.78.16
item Leek
	{
		DisplayName = Leek,
		DisplayCategory = Food,
		Type = Food,
		Weight = 0.2,
		Icon = Leek,
		EvolvedRecipe = Omelette:6;Soup:12;Stew:12;Pie:12;Stir fry Griddle Pan:12;Stir fry:12;Salad:6;Roasted Vegetables:12;RicePot:12;RicePan:12;PastaPot:12;PastaPan:12,
		FoodType = Vegetables,
		DaysFresh = 5,
		DaysTotallyRotten = 8,
		HungerChange = -12,
		ThirstChange = -5,
		Calories = 54,
		Carbohydrates = 12.59,
		Lipids = 0.27,
		Proteins = 1.34,
		StaticModel = CylinderFood_Green,
		WorldStaticModel = Leek_Ground,
	}

Sandbag.png Base.SackProduce_Leek
Source: ProjectZomboid\media\scripts\items_food.txt

Retrieved: Build 41.78.16
item SackProduce_Leek
	{
		DisplayName = Sack of Leeks,
		DisplayCategory = Food,
		Type = Food,
		Weight = 2,
		Icon = Sandbag,
		CantEat = TRUE,
		DaysFresh = 5,
		DaysTotallyRotten = 8,
		WorldStaticModel = SandBag,
	}