Leek: Difference between revisions

From PZwiki
mNo edit summary
m (Distribution table fix)
 
(43 intermediate revisions by 9 users not shown)
Line 1: Line 1:
{{languages|Leek}}
{{Header|Project Zomboid|Items|Food|Vegetables}}
{{header|Project Zomboid|Items|Food|Perishable Food|Vegetables|type=Food|version=Version 40|incver=7}}{{Infobox food
{{Page version|41.78.16}}
|display_name=Leek
{{Infobox item
|name_colour=Food
|name=Leek
|name_text_colour=Food
|model=Leek_Model.png
|image=Leek_120px.png
|icon=Leek.png
|alternate_image=LeekRotten.png
|icon_name=Leek
|alternate_link=
|model2=LeekRotten_Model.png
|alternate_name=Leek (Rotten)
|icon2=LeekRotten.png
|icon_name2=Leek (Rotten)
<!--GENERAL-->
<!--GENERAL-->
|category=Food
|category=Food
Line 21: Line 22:
|carbohydrates=12.59
|carbohydrates=12.59
<!--TECHNICAL DETAILS-->
<!--TECHNICAL DETAILS-->
|class_name=Base.Leek
|item_id=Base.Leek
}}A '''leek''' is a [[Food#Perishable|perishable]] food [[item]].  
}}
A '''leek''' is a perishable [[food]] [[Items|item]].


==Usage==
==Usage==
=== Consumable properties ===
===Consumable properties===
A 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 45:
|rotten image = LeekRotten.png
|rotten image = LeekRotten.png
}}
}}
 
== Crafting ==
==Crafting==
Leeks 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 table header}}
{{Crafting/sandbox2
{{RecipeLookup|2057}}
|jar_of_leeks
{{Crafting table footer}}
}}
== Evolved recipes ==
 
A leek is a [[cooking]] [[Recipe Ingredients|ingredient]].
==Evolved recipes==
{{EvolvedRecipesForItem|soup=12|stew=12|pie=12|stirfry=12|salad=12|roastedvegetables=12|ricepot=12|ricepan=12|pastapot=12|pastapan=12|}}
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}}
 
===Sack of Leek===
{{Crafting/sandbox2
|leek
}}


==Distribution==
==Distribution==
Leeks are often found in [[refrigerator]]s and [[Containers#Displays|grocery displays]].
The loot distributions can be found in the table(s) below.
 
<!--BOT FLAG|Leek|41.78.16-->
{{Clear}}
<div class="togglebox theme-red">
    <div>Leek distribution
        <span class="mw-customtoggle-togglebox-Leek" 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-Leek">
    Effective chance calculations are based off of default loot settings, and median zombie density. The higher the density of zombies in an area, the higher the effective chance of an item spawning. Chance is also influenced by the [[lucky]] and [[unlucky]] traits.    <div class="toggle-content">
<div class="pz-container">
<div id="containers" style="flex-basis:30%">
    {| class="wikitable theme-red" style="margin-right: 15px; width: 95%;"
    |+ {{ll|Containers}}
    ! Building/Room
    ! Container
    ! Effective chance
    |-
    | GroceryBag1
    | {{ll|GroceryBag1}}
    | 1.61%
    |-
    | GroceryBag2
    | {{ll|GroceryBag2}}
    | 2.81%
    |-
    | all
    | {{ll|fridge}}
    | 6.29%
    |-
    | chinesekitchen
    | {{ll|fridge}}
    | 19.27%
    |-
    | dinerkitchen
    | {{ll|fridge}}
    | 6.29%
    |-
    | gigamart
    | {{ll|grocerstand}}
    | 23.28%
    |-
    | gigamart
    | {{ll|grocerstand}}
    | 41.14%
    |-
    | grocery
    | {{ll|grocerstand}}
    | 23.28%
    |-
    | grocery
    | {{ll|grocerstand}}
    | 41.14%
    |-
    | restaurantkitchen
    | {{ll|fridge}}
    | 6.29%
    |-
    | sushikitchen
    | {{ll|fridge}}
    | 19.27%
    |}
</div>
    </div><div style="clear: both;"></div>
    {| class="wikitable theme-red" style="width: 98%;"
    |+ {{ll|Foraging}}
    ! rowspan="2" | Amount
    ! rowspan="2" | Skill level
    ! rowspan="2" | Biomes
    ! colspan="4" style="text-align: center;" | Weather modifiers
    ! colspan="3" style="text-align: center;" | Month modifiers
    |-
    ! Snow
    ! Rain
    ! Day
    ! Night
    ! Months available
    ! Bonus months
    ! Malus months
    |-
    | ---
    | 2
    | Forest  10<br> DeepForest  10<br> Vegitation  10<br> FarmLand  10<br> Farm  10
    | -30
    | -
    | -
    | -
    | -
    | May<br>June<br>July
    | March<br>September
    |}
    </div></div><div class="toggle large mw-customtoggle-togglebox-Leek" title="{{int:show}}/{{int:hide}}"></div></div>
<!--END BOT FLAG|Leek|41.78.16-->
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.
 
==Code==
{{CodeBox|[[File:Leek.png]] {{ID|Base.Leek}}<br>
{{CodeSnip
  | lang = java
  | line = true
  | start = 1214
  | source = items_food.txt
  | retrieved = true
  | version = 41.78.16
  | code =
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,
}
}}
 
[[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,
}
}}
}}
 
==See also==
*[[Onion]]
*[[Wild Garlic]]


== Code ==
{{Navbox items|plants}}
'''''From items.txt (Project Zomboid directory/media/scripts/)'''''
{{Retrieved|version=40|incver=7}}
<pre> item Leek
        HungerChange = -12,
        Weight = 0.2,
        Type = Food,
        DaysTotallyRotten = 8,
        DisplayName = Leek,
        Icon = Leek,
        DaysFresh = 5,
        EvolvedRecipe = Soup:12;Stew:12;Pie:12;Stir fry:12;Salad:12;Roasted Vegetables:12;RicePot:12;RicePan:12;PastaPot:12;PastaPan:12,
        FoodType    = Vegetables,
Carbohydrates = 12.59,
        Proteins = 1.34,
        Lipids = 0.27,
      Calories = 54,</pre>


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

Latest revision as of 19:22, 30 April 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
LeekRotten Model.png
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

A 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 Ingredients Tools Requirements Workstation XP
JarWhite.png
Jar of Leeks
One of:
SugarBrown.png Brown Sugar ×1
Sugar.png Sugar ×1
SugarPacket.png Sugar Packet ×1
Each of:
JarEmpty2.png Jar ×1
JarLid.png Jar Lid ×1
Leek.png Leek ×5
WaterDrop.png Water ×10 unit(s)
Vinegar.png Vinegar ×2 unit(s)
none none none 2.5 Cooking

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 Ingredients Tools Requirements Workstation XP
Leek.png
Leek ×12
Sandbag.png Sack of Leek ×1 none none none none

Distribution

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

Leek distribution Show / Hide
Effective chance calculations are based off of default loot settings, and median zombie density. The higher the density of zombies in an area, the higher the effective chance of an item spawning. Chance is also influenced by the lucky and unlucky traits.
Containers
Building/Room Container Effective chance
GroceryBag1 GroceryBag1 1.61%
GroceryBag2 GroceryBag2 2.81%
all fridge 6.29%
chinesekitchen fridge 19.27%
dinerkitchen fridge 6.29%
gigamart grocerstand 23.28%
gigamart grocerstand 41.14%
grocery grocerstand 23.28%
grocery grocerstand 41.14%
restaurantkitchen fridge 6.29%
sushikitchen fridge 19.27%
Foraging
Amount Skill level Biomes Weather modifiers Month modifiers
Snow Rain Day Night Months available Bonus months Malus months
--- 2 Forest 10
DeepForest 10
Vegitation 10
FarmLand 10
Farm 10
-30 - - - - May
June
July
March
September

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.

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,
	}

See also