Canned Corn: Difference between revisions

From PZwiki
(updated to 41.68)
Line 60: Line 60:


== Code ==
== Code ==
'''''From newitems.txt (Project Zomboid directory/media/scripts/)'''''
'''''From items_food.txt (Project Zomboid directory/media/scripts/)'''''


''Canned Corn'' [[File:CannedCorn.png|32px]]
''Canned Corn'' [[File:CannedCorn.png|32px]]

Revision as of 14:13, 12 March 2022

Canned Corn
Canned Corn
Canned Corn Opened Canned Corn
General
Category Food
Encumbrance
Heavy Load
0.7
Days until stale 2 days
Days until rotten 4 days
Packaged True
Nutrition
Hunger
Hunger
-15
Calories
Calories
315
Carbohydrates
Carbohydrates
70
Proteins
Proteins
7
Fat
Fat
1.75
Technical details
Item ID Base.CannedCorn
Base.CannedCornOpen

Canned corn is a non-perishable food item.

Usage

Canned corn can only be opened with a can opener, and once opened become perishable.

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. Template:Consumables2

Crafting

Cooking

Main article: Cooking

Canned corn can be used in various cooking recipes.

Evolved recipes

Product Nutrition
Soup
Soup
15
Stew
Stew
15
Salad
Salad
15
Stir Fry
Stir Fry
15
Roasted Vegetables
Roasted Vegetables
15
Burger
Burger
8
Rice Pot/Saucepan
Rice Pot/Saucepan
15
Pasta Pot/Saucepan
Pasta Pot/Saucepan
15

Distribution

Canned corn is often found in kitchen counters.

Code

From items_food.txt (Project Zomboid directory/media/scripts/)

Canned Corn CannedCorn.png Retrieved: Build 41.68

    item CannedCorn
    {
        DisplayCategory = Food,
        Weight	=	0.7,
        Type	=	Food,
        DisplayName	=	Canned Corn,
        Icon	=	CannedCorn,
        Carbohydrates = 70,
        Proteins = 7,
        Lipids = 1.75,
        Calories = 315,
        Packaged = TRUE,
        StaticModel = CanClosed,
        CannedFood = TRUE,
        WorldStaticModel = CanClosedCorn,
    }

Opened Canned Corn CannedCornOpen.png Retrieved: Build 41.68

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

See also