Lettuce: Difference between revisions

From PZwiki
m (→‎Code: Bump to .16)
m (Distribution table fix)
 
(31 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=78.16}}{{Infobox food
{{Header|Project Zomboid|Items|Food|Vegetables}}
|display_name=Lettuce
{{Page version|41.78.16}}
|name_colour=Food
{{Infobox item
|name_text_colour=Food
|name=Lettuce
|image=Lettuce.png
|model=Lettuce_Model.png
|alternate_image=LettuceRotten.png
|icon=Lettuce.png
|alternate_link=
|icon_name=Lettuce
|alternate_name=Lettuce (Rotten)
|icon2=LettuceRotten.png
 
|icon_name2=Lettuce (Rotten)
<!--GENERAL-->
<!--GENERAL-->
|category=Food
|category=Food
|weight=0.2
|weight=0.2
|days_fresh=3
|days_fresh=3
|days_rotten=2
|days_rotten=5
<!--NUTRITION-->
<!--NUTRITION-->
|hunger_change=-15
|hunger_change=-15
Line 20: Line 22:
|carbohydrates=10.33
|carbohydrates=10.33
<!--TECHNICAL DETAILS-->
<!--TECHNICAL DETAILS-->
|class_name=Base.Lettuce
|item_id=Base.Lettuce
}}'''Lettuce''' is a [[Food#Perishable|perishable]] food [[item]].
}}
'''Lettuce''' is a perishable [[food]] [[Items|item]]]].


==Usage==
==Usage==
===Trapping===
===Trapping===
{{Main|Trapping}}
{{Main|Trapping}}
Lettuce can be used as bait in [[Trapping|traps]] to capture [[Dead_Rabbit|rabbits]] and [[Dead_Squirrel|squirrels]]. Due to the high chance of catching these animals with this bait, it may be considered a better use of lettuce than merely eating it or even using it in an evolved recipe.
Lettuce can be used as bait in [[Trapping|traps]] to capture [[Dead Rabbit|rabbits]] and [[Dead Squirrel|squirrels]]. Due to the high chance of catching these animals with this bait, it may be considered a better use of lettuce than merely eating it or even using it in an evolved recipe.


===Consumable properties===
===Consumable properties===
Lettuce can be eaten, providing the player with some positive effects, however these will become negative the longer it's left to perish.
Lettuce 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 = Lettuce.png
|image = Lettuce.png
|hunger = -15
|hunger = -15
Line 52: Line 54:


===Evolved recipes===
===Evolved recipes===
Lettuce is a [[cooking]] [[Recipe Ingredients|ingredient]].
Lettuce is a [[cooking]] [[Recipe ingredients|ingredient]].
{{EvolvedRecipesForItem|sandwich=5|burger=5|salad=5|taco=3|burrito=3}}
{{EvolvedRecipesForItem|sandwich=5|burger=5|salad=5|taco=3|burrito=3}}
===Sack of Lettuce===
{{Crafting/sandbox2
|lettuce
}}


==Distribution==
==Distribution==
The loot distributions can be found in the table(s) below.
<!--BOT FLAG|Lettuce|41.78.16-->
{{Clear}}
<div class="togglebox theme-red">
    <div>Lettuce distribution
        <span class="mw-customtoggle-togglebox-Lettuce" 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-Lettuce">
    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%
    |-
    | GroceryBag5
    | {{ll|GroceryBag5}}
    | 12.41%
    |-
    | all
    | {{ll|fridge}}
    | 6.29%
    |-
    | burgerkitchen
    | {{ll|fridge}}
    | 10.78%
    |-
    | cafeteriakitchen
    | {{ll|fridge}}
    | 10.78%
    |-
    | deepfry_kitchen
    | {{ll|fridge}}
    | 19.27%
    |-
    | dinerkitchen
    | {{ll|fridge}}
    | 10.78%
    |-
    | gigamart
    | {{ll|grocerstand}}
    | 23.28%
    |-
    | gigamart
    | {{ll|grocerstand}}
    | 41.14%
    |-
    | gigamart
    | {{ll|grocerstand}}
    | 76.55%
    |-
    | grocery
    | {{ll|grocerstand}}
    | 23.28%
    |-
    | grocery
    | {{ll|grocerstand}}
    | 41.14%
    |-
    | grocery
    | {{ll|grocerstand}}
    | 76.55%
    |-
    | mexicankitchen
    | {{ll|fridge}}
    | 19.27%
    |-
    | restaurantkitchen
    | {{ll|fridge}}
    | 10.78%
    |-
    | spiffoskitchen
    | {{ll|fridge}}
    | 10.78%
    |}
</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
    |-
    | ---
    | 7
    | Vegitation  1<br> FarmLand  4<br> Farm  4
    | -30
    | -
    | -
    | -
    | -
    | May<br>June<br>July
    | March<br>April
    |}
    </div></div><div class="toggle large mw-customtoggle-togglebox-Lettuce" title="{{int:show}}/{{int:hide}}"></div></div>
<!--END BOT FLAG|Lettuce|41.78.16-->
Lettuce is often found in [[refrigerator]]s and [[Containers#Displays|grocery displays]].
Lettuce is often found in [[refrigerator]]s and [[Containers#Displays|grocery displays]].
Sacks of lettuce can be found in grocery stores and warehouses.


==Gallery==
==Gallery==
<gallery>
<gallery>
File:Lettuce Model.png|Lettuce model when placed in the world.
Lettuce Model.png|Lettuce model when placed in the world
File:LettuceRotten Model.png|Rotten lettuce model when placed in the world.
LettuceRotten Model.png|Rotten lettuce model when placed in the world
</gallery>
</gallery>


==Code==
==Code==
'''''From items_food.txt (Project Zomboid directory/media/scripts/)'''''
{{CodeBox|[[File:Lettuce.png]] {{ID|Base.Lettuce}}<br>
{{Retrieved|version=41|incver=78.16}}
{{CodeSnip
<pre>
  | lang = java
item Lettuce
  | line = true
  | start = 1022
  | source = items_food.txt
  | retrieved = true
  | version = 41.78.16
  | code =
item Lettuce
{
{
DisplayName = Lettuce,
DisplayName = Lettuce,
Line 88: Line 219:
WorldStaticModel = Lettuce_Ground,
WorldStaticModel = Lettuce_Ground,
}
}
</pre>
}}
 
[[File:Sandbag.png]] {{ID|Base.SackProduce_Lettuce}}<br>
{{CodeSnip
  | lang = java
  | line = true
  | start = 8148
  | source = items_food.txt
  | retrieved = true
  | version = 41.78.16
  | code =
item SackProduce_Lettuce
{
DisplayName = Sack of Lettuce,
DisplayCategory = Food,
Type = Food,
Weight = 2,
Icon = Sandbag,
CantEat = TRUE,
DaysFresh = 3,
DaysTotallyRotten = 5,
WorldStaticModel = SandBag,
}
}}
}}
 
==See also==
 
{{Navbox items|plants}}
 


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

Latest revision as of 19:23, 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]
Lettuce
Lettuce Model.png
Lettuce (Rotten)
General
Category
Food
Encumbrance
Moodle Icon HeavyLoad.png
0.2
Properties
Days fresh
3 days
Days until rotten
5 days
Nutrition
HungerMoodle Icon Hungry.png
-15
ThirstMoodle Icon Thirsty.png
-7
CaloriesCalories
54
CarbohydratesCarbohydrates
10.33
ProteinsProteins
4.9
FatFat
0.54
Technical
Item ID
Base.Lettuce

Lettuce is a perishable food item]].

Usage

Trapping

Main article: Trapping

Lettuce can be used as bait in traps to capture rabbits and squirrels. Due to the high chance of catching these animals with this bait, it may be considered a better use of lettuce than merely eating it or even using it in an evolved recipe.

Consumable properties

Lettuce 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

Lettuce.png
Hunger: -15


Lettuce.png
Hunger: -11
Boredom: +10
Unhappiness: +10

LettuceRotten.png
Hunger: -7
Boredom: +20
Unhappiness: +20
Dangerous, will cause sickness.

Crafting

Main article: Cooking

Evolved recipes

Lettuce is a cooking ingredient.

Product Nutrition
Salad
Salad
5
Sandwich
Sandwich
5
Burger
Burger
5
Taco
Taco
3
Burrito
Burrito
3

Sack of Lettuce

Product Ingredients Tools Requirements Workstation XP
Lettuce.png
Lettuce ×12
Sandbag.png Sack of Lettuce ×1 none none none none

Distribution

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

Lettuce 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%
GroceryBag5 GroceryBag5 12.41%
all fridge 6.29%
burgerkitchen fridge 10.78%
cafeteriakitchen fridge 10.78%
deepfry_kitchen fridge 19.27%
dinerkitchen fridge 10.78%
gigamart grocerstand 23.28%
gigamart grocerstand 41.14%
gigamart grocerstand 76.55%
grocery grocerstand 23.28%
grocery grocerstand 41.14%
grocery grocerstand 76.55%
mexicankitchen fridge 19.27%
restaurantkitchen fridge 10.78%
spiffoskitchen fridge 10.78%
Foraging
Amount Skill level Biomes Weather modifiers Month modifiers
Snow Rain Day Night Months available Bonus months Malus months
--- 7 Vegitation 1
FarmLand 4
Farm 4
-30 - - - - May
June
July
March
April

Lettuce is often found in refrigerators and grocery displays.

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

Gallery

Code

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

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

Retrieved: Build 41.78.16
item Lettuce
	{
		DisplayName = Lettuce,
		DisplayCategory = Food,
		Type = Food,
		Weight = 0.2,
		Icon = Lettuce,
		EvolvedRecipe = Sandwich:3;Burger:3;Salad:5;Sandwich Baguette:3;Taco:3;Burrito:3,
		FoodType = Greens,
		DaysFresh = 3,
		DaysTotallyRotten = 5,
		HungerChange = -15,
		ThirstChange = -7,
		Calories = 54,
		Carbohydrates = 10.33,
		Lipids = 0.54,
		Proteins = 4.9,
		StaticModel = RoundFood_Green,
		WorldStaticModel = Lettuce_Ground,
	}

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

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

See also