Canned Corn: Difference between revisions

From PZwiki
(Update of NavBar.)
(→‎Distribution: Add table)
 
(35 intermediate revisions by 8 users not shown)
Line 1: Line 1:
__NOTOC__
{{Header|Project Zomboid|Items|Food|Canned food}}
{{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=Canned Corn
<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:Non-Perishable_Food|Non Perishable Foods]] -> [[{{PAGENAME}}]]   </div><!-- Code for Navigation Bar at top, special blank char's before '''Navigation''' to give space -->
|model=TinnedCorn_Model.png
{{Consumables
|icon=CannedCorn.png
|image = CannedCorn.png
|icon_name=Canned Corn
|hunger = -15
|model2=TinnedCornOpen_Model.png
|weight = 0.7
|icon2=CannedCornOpen.png
|icon_name2=Opened Canned Corn
<!--GENERAL-->
|category=Food
|weight=0.8
|days_fresh=2
|days_rotten=4
|packaged=Yes
<!--NUTRITION-->
|hunger_change=-16
|calories=315
|lipids=1.75
|proteins=7
|carbohydrates=70
<!--TECHNICAL DETAILS-->
|item_id=Base.CannedCorn<br>Base.CannedCornOpen
}}
}}
Canned Corn are a non-perishable food item which is often found in [[Containers#Kitchen_cupboard|kitchen cupboards]]. It is a [[Food#Non-Perishable|non-perishable]] item while it is sealed.<br>
'''Canned corn'''  (written as ''SWEET CORN'' on the model) is a non-perishable [[food]] [[Items|item]].
Canned Corn can only be opened with a [[Can Opener#|can opener]], and once opened it becomes a perishable item. A opened can of Canned Corn takes two in-game days to go stale, and four in-game days to rot.


==Usage==
Canned corn can only be opened with a [[Can Opener|can opener]], and once opened become [[Food#Perishable|perishable]]. Despite rumors, consuming canned corn will no longer teleport you to another location. Instead, see [[corn]].
{{Crafting/sandbox2
|opened_canned_corn
}}


== Nutritional Information ==
===Consumable properties===
{| border=0 align=left <!-- Table will be in middle of page without this line -->
Opened canned corn can be eaten, providing the player with some positive effects, however these will become negative the longer it's left to perish.
|
{{Consumables
{{Consumables2
|image = CannedCornOpen.png
|image = CannedCornOpen.png
|hunger = -15
|hunger = -16
|thirst = 0
|thirst = 0
|unrotten hunger = -11
|unrotten hunger = -12
|unrotten boredom = +10
|unrotten boredom = +10
|unrotten unhappiness = +10
|unrotten unhappiness = +10
Line 31: Line 49:
|rotten image = CannedCornOpen.png
|rotten image = CannedCornOpen.png
}}
}}
|}
<br><br><br><br><br><br><br><br><br><br><br>
'''It's Nutritional Values are as follows:'''<br>
Carbohydrates = 70 <br>
Proteins = 7 <br>
Lipids = 1.75 <br>
Calories = 315 <br><br>


== Evolved Recipes ==
==Crafting==
<!-- Information for template 'Evolved Recipes', used to explain how much of the food can be put into a meal. -->
{{Main|Cooking}}
{{EvolvedRecipesForItem
 
|soup=15|stew=15|stirfry=15|burger=8|salad=15|roastedvegetables=15|ricepot=15|ricepan=15|pastapot=15|pastapan=15|}}
====Evolved recipes====
Canned corn is a [[cooking]] [[Recipe ingredients|ingredient]].
{{EvolvedRecipesForItem|soup=16|stew=16|stirfry=16|burger=8|salad=16|roastedvegetables=16|rice=16|pasta=16|omelette=8|taco=8|burrito=8}}
 
==Distribution==
The loot distributions can be found in the table(s) below.
 
<!--BOT FLAG|CannedCorn|41.78.16-->
{{clear}}
<div class="togglebox theme-red">
    <div>CannedCorn distribution
        <span class="mw-customtoggle-togglebox-CannedCorn" 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-CannedCorn">
    <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
    |-
    | all
    | {{ll|Bag_FoodCanned}}
    | 2
    | 20.0
    |-
    | all
    | {{ll|FoodBox}}
    | 15
    | 8.0
    |-
    | all
    | {{ll|GroceryBag1}}
    | 1
    | 0.8
    |-
    | all
    | {{ll|GroceryBag2}}
    | 1
    | 4.0
    |-
    | garagestorage
    | {{ll|crate}}
    | 4
    | 8.0
    |-
    | generalstore
    | {{ll|crate}}
    | 4
    | 10.0
    |-
    | grocerystorage
    | {{ll|crate}}
    | 4
    | 0.8
    |-
    | grocerystorage
    | {{ll|crate}}
    | 4
    | 20.0
    |-
    | grocerystorage
    | {{ll|crate}}
    | 4
    | 10.0
    |-
    | kitchen
    | {{ll|counter}}
    | 4
    | 8.0
    |}
</div>
    </div><div style="clear:both;"></div>
    </div></div><div class="toggle large mw-customtoggle-togglebox-CannedCorn" title="{{int:show}}/{{int:hide}}"></div></div>
<!--END BOT FLAG|CannedCorn|41.78.16-->
 
Canned corn can often be found in [[Containers#Kitchen Counter|kitchen counters]].
 
==Code==
{{CodeBox|[[File:CannedCorn.png]] {{ID|Base.CannedCorn}}<br>
{{CodeSnip
  | lang = java
  | line = true
  | start = 323
  | source = items_food.txt
  | retrieved = true
  | version = 41.78.16
  | code =
item CannedCorn
{
DisplayName = Canned Corn,
DisplayCategory = Food,
Type = Food,
Weight = 0.8,
Icon = CannedCorn,
CannedFood = TRUE,
CantEat = TRUE,
Packaged = TRUE,
Calories = 315,
Carbohydrates = 70,
Lipids = 1.75,
Proteins = 7,
StaticModel = CanClosed,
WorldStaticModel = CanClosedCorn,
Tags = HasMetal,
}
}}
 
[[File:CannedCornOpen.png]] {{ID|Base.CannedCornOpen}}<br>
{{CodeSnip
  | lang = java
  | line = true
  | start = 158
  | source = items_food.txt
  | retrieved = true
  | version = 41.78.16
  | code =
item CannedCornOpen
{
DisplayName = Opened Canned Corn,
DisplayCategory = Food,
Type = Food,
Weight = 0.8,
Icon = CannedCornOpen,
CannedFood = TRUE,
EatType = can,
EvolvedRecipe = Soup:16;Stew:16;Stir fry Griddle Pan:16;Stir fry:16;Burger:8;Salad:16;Roasted Vegetables:16;RicePot:16;RicePan:16;PastaPot:16;PastaPan:16;Omelette:8;Taco:8;Burrito:8,
/*EvolvedRecipeName = Canned Corn,*/
EvolvedRecipeName = Corn,
FoodType = Vegetables,
Packaged = TRUE,
ReplaceOnUse = TinCanEmpty,
DaysFresh = 2,
DaysTotallyRotten = 4,
HungerChange = -16,
ThirstChange = -4,
Calories = 315,
Carbohydrates = 70,
Lipids = 1.75,
Proteins = 7,
StaticModel = CanOpen,
WorldStaticModel = CanOpenCorn,
Tags = HasMetal,
}
}}
}}
 
==See also==
*[[Canned Carrots]]
*[[Canned Chili]]
*[[Canned Peas]]
*[[Canned Potato]]
*[[Canned Tomato]]
 
{{Navbox items|preserved_food}}


== Code ==
<br>
''Sealed Can''
<nowiki>
    item CannedCorn
        Weight = 0.7,
        Type = Food,
        DisplayName = Canned Corn,
        Icon = CannedCorn,
        Carbohydrates = 70,
        Proteins = 7,
        Lipids = 1.75,
        Calories = 315,
        Packaged = TRUE,
</nowiki>
''Opened Can''
<nowiki>
    item CannedCornOpen
        Weight = 0.7,
        Type = Food,
        DisplayName = Open Canned Corn,
        Icon = CannedCornOpen,
        HungerChange = -15,
        EvolvedRecipe = Soup:15;Stew:15;Stir fry:15;Burger:8;Salad:15;Roasted Vegetables:15;RicePot:15;RicePan:15;PastaPot:15;PastaPan:15,
        DaysFresh = 2,
        DaysTotallyRotten = 4,
        Carbohydrates = 70,
        Proteins = 7,
        Lipids = 1.75,
        Calories = 315,
        Packaged = TRUE,
        FoodType    = Vegetables,
        EvolvedRecipeName = Canned Corn,
    </nowiki>


==See Also==
[[Category:Non-perishable food]]
{{Navbox/Consumables}}
[[Category:Consumables]]
[[Category:Food]]
[[Category:Non-Perishable_Food]]
[[Category:Version 34.28]]

Latest revision as of 02:44, 25 April 2024

Project ZomboidItemsFoodCanned foodCanned Corn
UI Tick.png
This page has been revised for the current stable version (41.78.16).
Help by adding any missing content. [edit]
Canned Corn
TinnedCorn Model.png
TinnedCornOpen Model.png
General
Category
Food
Encumbrance
Moodle Icon HeavyLoad.png
0.8
Properties
Packaged
Yes
Days fresh
2 days
Days until rotten
4 days
Nutrition
HungerMoodle Icon Hungry.png
-16
CaloriesCalories
315
CarbohydratesCarbohydrates
70
ProteinsProteins
7
FatFat
1.75
Technical
Item ID
Base.CannedCorn
Base.CannedCornOpen

Canned corn (written as SWEET CORN on the model) is a non-perishable food item.

Usage

Canned corn can only be opened with a can opener, and once opened become perishable. Despite rumors, consuming canned corn will no longer teleport you to another location. Instead, see corn.

Product Ingredients Tools Requirements Workstation XP
CannedCornOpen.png
Opened Canned Corn
CannedCorn.png Canned Corn ×1 CanOpener.png
Can Opener
none none none

Consumable properties

Opened canned corn 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

CannedCornOpen.png
Hunger: -16


CannedCornOpen.png
Hunger: -12
Boredom: +10
Unhappiness: +10

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

Crafting

Main article: Cooking

Evolved recipes

Canned corn is a cooking ingredient.

Product Nutrition
Soup
Soup
16
Stew
Stew
16
Salad
Salad
16
Stir Fry
Stir Fry
16
Roasted Vegetables
Roasted Vegetables
16
Burger
Burger
8
Rice Pot/Saucepan
Rice Pot/Saucepan
16
Pasta Pot/Saucepan
Pasta Pot/Saucepan
16
Taco
Taco
8
Burrito
Burrito
8
Omelette
Omelette
8

Distribution

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

CannedCorn distribution Show / Hide
Containers
Building / Room Container Rolls Chance
all Bag_FoodCanned 2 20.0
all FoodBox 15 8.0
all GroceryBag1 1 0.8
all GroceryBag2 1 4.0
garagestorage crate 4 8.0
generalstore crate 4 10.0
grocerystorage crate 4 0.8
grocerystorage crate 4 20.0
grocerystorage crate 4 10.0
kitchen counter 4 8.0

Canned corn can often be found in kitchen counters.

Code

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

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

Retrieved: Build 41.78.16
item CannedCorn
	{
		DisplayName = Canned Corn,
		DisplayCategory = Food,
		Type = Food,
		Weight = 0.8,
		Icon = CannedCorn,
		CannedFood = TRUE,
		CantEat = TRUE,
		Packaged = TRUE,
		Calories = 315,
		Carbohydrates = 70,
		Lipids = 1.75,
		Proteins = 7,
		StaticModel = CanClosed,
		WorldStaticModel = CanClosedCorn,
		Tags = HasMetal,
	}

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

Retrieved: Build 41.78.16
item CannedCornOpen
	{
		DisplayName = Opened Canned Corn,
		DisplayCategory = Food,
		Type = Food,
		Weight = 0.8,
		Icon = CannedCornOpen,
		CannedFood = TRUE,
		EatType = can,
		EvolvedRecipe = Soup:16;Stew:16;Stir fry Griddle Pan:16;Stir fry:16;Burger:8;Salad:16;Roasted Vegetables:16;RicePot:16;RicePan:16;PastaPot:16;PastaPan:16;Omelette:8;Taco:8;Burrito:8,
		/*EvolvedRecipeName = Canned Corn,*/
		EvolvedRecipeName = Corn,
		FoodType = Vegetables,
		Packaged = TRUE,
		ReplaceOnUse = TinCanEmpty,
		DaysFresh = 2,
		DaysTotallyRotten = 4,
		HungerChange = -16,
		ThirstChange = -4,
		Calories = 315,
		Carbohydrates = 70,
		Lipids = 1.75,
		Proteins = 7,
		StaticModel = CanOpen,
		WorldStaticModel = CanOpenCorn,
		Tags = HasMetal,
	}

See also