Onion: Difference between revisions

From PZwiki
(Update of NavBar.)
(Add distribution table)
 
(46 intermediate revisions by 10 users not shown)
Line 1: Line 1:
__NOTOC__
{{Header|Project Zomboid|Items|Food|Vegetables}}
{{languages}}
{{Page version|41.78.16}}
<div class="header" style="margin: 5px; align: right; background: #CEF2E0; padding: 13px; text-align: left; font-size: 100%; color:#000000; border: 1px solid #A3BFB1"> <!-- Code for Background Colour -->
{{Infobox item
<div style="float: right;background: #CEF2E0;border: 1px solid #A3BFB1; margin: -30pt -10.5pt">    '''Page Updated @ Version: 34.28'''    </div><!-- Code for Version Tag at top -->
|name=Onion
<div style="float: left;background: #CEF2E0;border: 1px solid #A3BFB1; margin: -30pt -10.5pt">   '''Navigation''' - [[:Category:Main|Main Index]] -> [[:Category:The_Game_World|The Game World]] -> [[:Category:Items|Items]] -> [[:Category:Consumables|Consumables]] -> [[:Category:Food|Food]] -> [[:Category:Perishable_Food|Perishable Foods]] -> [[{{PAGENAME}}]]   </div><!-- Code for Navigation Bar at top, special blank char's before '''Navigation''' to give space -->
|model=Onion_Model.png
{{Consumables
|icon=Onion.png
|image = Onion.png
|icon_name=Onion
|hunger = -10
|icon2=OnionRotten.png
|weight = 0.2
 
|icon_name2=Onion (Rotten)
|icon3=Rings.png
|icon_name3=Onion Slices
Onion Slices
<!--GENERAL-->
|category=Food
|weight=0.2
|days_fresh=7
|days_rotten=9
<!--NUTRITION-->
|hunger_change=-10
|calories=28
|lipids=0.07
|proteins=0.77
|carbohydrates=6.54
<!--TECHNICAL DETAILS-->
|item_id=Base.Onion
}}
}}
Onions are a [[Food#Perishable|perishable]] food item that goes bad as time passes. Onions are often inside of [[refrigerator]]s, and in produce bins. Onions take seven in-game days to go stale, and nine in-game days to become rotten.  
'''Onion''' is a perishable [[food]] [[Items|item]].


== Nutritional Information ==
==Usage==
{| border=0 align=left
===Consumable properties===
|
Onion 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 = Onion.png
|image = Onion.png
|hunger = -10
|hunger = -10
Line 30: Line 47:
|rotten image = Onion rotten.png
|rotten image = Onion rotten.png
}}
}}
|}
<br><br><br><br><br><br><br><br><br><br><br><br>


'''It's Nutritional Values are as follows:'''<br>
==Crafting==
Carbohydrates = 6.54 <br>
===What it can make===
Proteins = 0.77 <br>
Onion needs to be cut into [[Onion_Slices|slices]] before addition to most recipes.
Lipids = 0.07 <br>
{{Crafting/sandbox2
Calories = 28 <br><br>
|onion_slices
}}
 
===Evolved recipes===
Onion is a [[cooking]] [[Recipe ingredients|ingredient]].
{{EvolvedRecipesForItem|soup=10|stew=10|pie=10|stirfry=10|sandwich=5|burger=10|salad=10|roastedvegetables=10|rice=10|pasta=10}}
 
===Sack of Onion===
{{Crafting/sandbox2
|onion
}}
 
==Distribution==
The loot distributions can be found in the table(s) below.
 
<!--BOT FLAG|Onion|41.78.16-->
{{Clear}}
<div class="togglebox theme-red">
    <div>Onion distribution
        <span class="mw-customtoggle-togglebox-Onion" 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-Onion">
    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%
    |-
    | chinesekitchen
    | {{ll|fridge}}
    | 19.27%
    |-
    | deepfry_kitchen
    | {{ll|fridge}}
    | 19.27%
    |-
    | dinerkitchen
    | {{ll|fridge}}
    | 10.78%
    |-
    | gigamart
    | {{ll|grocerstand}}
    | 23.28%
    |-
    | gigamart
    | {{ll|grocerstand}}
    | 41.14%
    |-
    | grocery
    | {{ll|grocerstand}}
    | 23.28%
    |-
    | grocery
    | {{ll|grocerstand}}
    | 41.14%
    |-
    | italiankitchen
    | {{ll|fridge}}
    | 19.27%
    |-
    | mexicankitchen
    | {{ll|fridge}}
    | 19.27%
    |-
    | restaurantkitchen
    | {{ll|fridge}}
    | 10.78%
    |-
    | spiffoskitchen
    | {{ll|fridge}}
    | 10.78%
    |-
    | westernkitchen
    | {{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
    |-
    | ---
    | 3
    | Forest  10<br> DeepForest  10<br> Vegitation  5<br> FarmLand  10<br> Farm  10
    | -10
    | -
    | -
    | -
    | -
    | May<br>June<br>July
    | March<br>September
    |}
    </div></div><div class="toggle large mw-customtoggle-togglebox-Onion" title="{{int:show}}/{{int:hide}}"></div></div>
<!--END BOT FLAG|Onion|41.78.16-->
 
<!--BOT FLAG|SackProduce_Onion|41.78.16-->
{{Clear}}
<div class="togglebox theme-red">
    <div>SackProduce_Onion distribution
        <span class="mw-customtoggle-togglebox-SackProduce_Onion" 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-SackProduce_Onion">
    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 sortable" style="margin-right: 15px; width: 95%;"
    |+ {{ll|Containers}}
    ! Building/Room
    ! Container
    ! Effective chance
    |-
    | grocerystorage
    | {{ll|crate}}
    | 1.87%
    |-
    | grocerystorage
    | {{ll|crate}}
    | 10.78%
    |-
    | grocerystorage
    | {{ll|metal_shelves}}
    | 1.87%
    |-
    | grocerystorage
    | {{ll|metal_shelves}}
    | 10.78%
    |-
    | grocerystorage
    | {{ll|smallcrate}}
    | 1.87%
    |-
    | grocerystorage
    | {{ll|smallcrate}}
    | 10.78%
    |-
    | producestorage
    | {{ll|crate}}
    | 23.28%
    |-
    | producestorage
    | {{ll|crate}}
    | 41.14%
    |-
    | producestorage
    | {{ll|crate}}
    | 76.55%
    |-
    | westernkitchen
    | {{ll|fridge}}
    | 1.87%
    |}
</div>
    </div><div style="clear: both;"></div>
    </div></div><div class="toggle large mw-customtoggle-togglebox-SackProduce_Onion" title="{{int:show}}/{{int:hide}}"></div></div>
<!--END BOT FLAG|SackProduce_Onion|41.78.16-->
 
==Gallery==
<gallery>
Onion Model.png|Onion model when placed in the world
OnionRotten Model.png|Rotten onion model when placed in the world
</gallery>
 
==Code==
{{CodeBox|[[File:Onion.png]] {{ID|Base.Onion}}<br>
{{CodeSnip
  | lang = java
  | line = true
  | start = 1000
  | source = items_food.txt
  | retrieved = true
  | version = 41.78.16
  | code =
item Onion
{
DisplayName = Onion,
DisplayCategory = Food,
Type = Food,
Weight = 0.2,
Icon = Onion,
/*EvolvedRecipe = Omelette:10;Soup:10;Stew:10;Pie:10;Stir fry Griddle Pan:10;Stir fry:10;Sandwich:5;Sandwich Baguette:5;Burger:10;Salad:10;Roasted Vegetables:10;RicePot:10;RicePan:10;PastaPot:10;PastaPan:10;Taco:10;Burrito:10,*/
FoodType = Vegetables,
DaysFresh = 7,
DaysTotallyRotten = 9,
HungerChange = -10,
Calories = 28,
Carbohydrates = 6.54,
Lipids = 0.07,
Proteins = 0.77,
StaticModel = RoundFood_Peach,
WorldStaticModel = Onion_Ground,
EvolvedRecipeName = Mushroom,
Tooltip = Tooltip_item_NeedsSliced,
}
}}
 
[[File:Sandbag.png]] {{ID|Base.SackProduce_Onion}}<br>
{{CodeSnip
  | lang = java
  | line = true
  | start = 8161
  | source = items_food.txt
  | retrieved = true
  | version = 41.78.16
  | code =
item SackProduce_Onion
{
DisplayName = Sack of Onions,
DisplayCategory = Food,
Type = Food,
Weight = 2,
Icon = Sandbag,
CantEat = TRUE,
DaysFresh = 7,
DaysTotallyRotten = 9,
WorldStaticModel = SandBag,
}
}}
}}
 
==See also==


== Evolved Recipes ==
{{Navbox items|plants}}
{{EvolvedRecipesForItem
|soup=10|stew=10|pie=10|stirfry=10|sandwich=5|burger=10|salad=10|roastedvegetables=10|ricepot=10|ricepan=10|pastapot=10|pastapan=10|}}


== Code ==
<nowiki>
item Onion
HungerChange = -10,
Weight = 0.2,
Type = Food,
DaysTotallyRotten = 9,
DisplayName = Onion,
Icon = Onion,
DaysFresh = 7,
EvolvedRecipe = Soup:10;Stew:10;Pie:10;Stir fry:10;Sandwich:5;Burger:10;Salad:10;Roasted
  Vegetables:10;RicePot:10;RicePan:10;PastaPot:10;PastaPan:10,
FoodType    = Vegetables,
        Carbohydrates = 6.54,
        Proteins = 0.77,
        Lipids = 0.07,
        Calories = 28,
</nowiki>


{{Navbox/Consumables}}
[[Category:Perishable food]]
[[Category:Consumables]]
[[Category:Food]]
[[Category:Perishable_Food]]
[[Category:Version 34.28]]

Latest revision as of 05:32, 5 May 2024

UI Tick.png
This page has been revised for the current stable version (41.78.16).
Help by adding any missing content. [edit]
Onion
Onion Model.png
Onion (Rotten)
Onion Slices Onion Slices
General
Category
Food
Encumbrance
Moodle Icon HeavyLoad.png
0.2
Properties
Days fresh
7 days
Days until rotten
9 days
Nutrition
HungerMoodle Icon Hungry.png
-10
CaloriesCalories
28
CarbohydratesCarbohydrates
6.54
ProteinsProteins
0.77
FatFat
0.07
Technical
Item ID
Base.Onion

Onion is a perishable food item.

Usage

Consumable properties

Onion 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

Onion.png
Hunger: -10


Onion.png
Hunger: -7
Boredom: +10
Unhappiness: +10

Onion rotten.png
Hunger: -4
Boredom: +20
Unhappiness: +20
Dangerous, will cause sickness.

Crafting

What it can make

Onion needs to be cut into slices before addition to most recipes.

Product Ingredients Tools Requirements Workstation XP
Rings.png
Onion Slices
One of:
KnifeChopping.png Kitchen Knife ×1
HuntingKnife.png Hunting Knife ×1
Machete.png Machete ×1
KnifeFlint.png Stone Knife ×1
Each of:
Onion.png Onion ×1
none none none 0.75 Cooking

Evolved recipes

Onion is a cooking ingredient.

Product Nutrition
Soup
Soup
10
Stew
Stew
10
Salad
Salad
10
Stir Fry
Stir Fry
10
Roasted Vegetables
Roasted Vegetables
10
Sandwich
Sandwich
5
Burger
Burger
10
Pie (savory)
Pie (savory)
10
Rice Pot/Saucepan
Rice Pot/Saucepan
10
Pasta Pot/Saucepan
Pasta Pot/Saucepan
10

Sack of Onion

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

Distribution

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

Onion 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%
chinesekitchen fridge 19.27%
deepfry_kitchen fridge 19.27%
dinerkitchen fridge 10.78%
gigamart grocerstand 23.28%
gigamart grocerstand 41.14%
grocery grocerstand 23.28%
grocery grocerstand 41.14%
italiankitchen fridge 19.27%
mexicankitchen fridge 19.27%
restaurantkitchen fridge 10.78%
spiffoskitchen fridge 10.78%
westernkitchen fridge 19.27%
Foraging
Amount Skill level Biomes Weather modifiers Month modifiers
Snow Rain Day Night Months available Bonus months Malus months
--- 3 Forest 10
DeepForest 10
Vegitation 5
FarmLand 10
Farm 10
-10 - - - - May
June
July
March
September
SackProduce_Onion 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
grocerystorage crate 1.87%
grocerystorage crate 10.78%
grocerystorage metal_shelves 1.87%
grocerystorage metal_shelves 10.78%
grocerystorage smallcrate 1.87%
grocerystorage smallcrate 10.78%
producestorage crate 23.28%
producestorage crate 41.14%
producestorage crate 76.55%
westernkitchen fridge 1.87%

Gallery

Code

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

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

Retrieved: Build 41.78.16
item Onion
	{
		DisplayName = Onion,
		DisplayCategory = Food,
		Type = Food,
		Weight = 0.2,
		Icon = Onion,
		/*EvolvedRecipe = Omelette:10;Soup:10;Stew:10;Pie:10;Stir fry Griddle Pan:10;Stir fry:10;Sandwich:5;Sandwich Baguette:5;Burger:10;Salad:10;Roasted Vegetables:10;RicePot:10;RicePan:10;PastaPot:10;PastaPan:10;Taco:10;Burrito:10,*/
		FoodType = Vegetables,
		DaysFresh = 7,
		DaysTotallyRotten = 9,
		HungerChange = -10,
		Calories = 28,
		Carbohydrates = 6.54,
		Lipids = 0.07,
		Proteins = 0.77,
		StaticModel = RoundFood_Peach,
		WorldStaticModel = Onion_Ground,
		EvolvedRecipeName = Mushroom,
		Tooltip = Tooltip_item_NeedsSliced,
	}

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

Retrieved: Build 41.78.16
item SackProduce_Onion
	{
		DisplayName = Sack of Onions,
		DisplayCategory = Food,
		Type = Food,
		Weight = 2,
		Icon = Sandbag,
		CantEat = TRUE,
		DaysFresh = 7,
		DaysTotallyRotten = 9,
		WorldStaticModel = SandBag,
	}

See also