Ham: Difference between revisions

From PZwiki
(updated to 41.68 + added model + navbox)
m (Distribution table update)
(30 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{{languages}}
{{Header|Project Zomboid|Items|Food|Protein}}
{{header|Project Zomboid|Items|Food|Perishable Food|type=Food|version=Version 41|incver=68}}{{Infobox food
{{Page version|41.78.16}}
|display_name=Ham
{{Infobox item
|name_colour=Food
|name=Ham
|name_text_colour=Food
|model=Ham_Model.png
|image=Ham_Model.png
|icon=Ham.png
|image_width=200px
|icon_name=Ham
|alternate_image=Ham.png
|icon2=HamRotten.png
|alternate_name=Ham
|icon_name2=Ham (Rotten)
|alternate_link=
Ham Slice
|alternate_image2=HamRotten.png
|alternate_name2=Ham (Rotten)
|alternate_link2=
|alternate_image3=HamSlices.png
|alternate_name3=Ham Slice
|alternate_link3=Ham Slice
<!--GENERAL-->
<!--GENERAL-->
|category=Food
|category=Food
Line 20: Line 14:
|days_fresh=5
|days_fresh=5
|days_rotten=10
|days_rotten=10
|packaged=True
|packaged=Yes
<!--NUTRITION-->
<!--NUTRITION-->
|hunger_change=-60
|hunger_change=-60
Line 28: Line 22:
|carbohydrates=91
|carbohydrates=91
<!--TECHNICAL DETAILS-->
<!--TECHNICAL DETAILS-->
|class_name=Base.Ham
|item_id=Base.Ham
}}'''Ham''' is a [[Food#Perishable|perishable]] food [[item]] used in [[cooking]].  
}}
A '''ham''' is a perishable [[food]] [[Items|item]] used in [[cooking]].


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


==Crafting==
==Crafting==
===Cooking===
{{Main|Cooking}}
Ham can be sliced into [[Ham_Slice|ham slices]].
 
{{Crafting header|ing=2}}
===What it can make===
{{Crafting cooking|118|ing=2}}
Ham needs to be cut into [[Ham_Slice|slices]] before addition to most recipes.
|}
{{Crafting/sandbox2
====Evolved recipes====
|ham_slice
Ham can be used is various cooking recipes.
}}
{{EvolvedRecipesForItem|omelette=10|sandwich=10|burger=10|salad=10|ricepot=10|ricepan=10|pastapot=10|pastapan=10}}


==Distribution==
==Distribution==
The loot distributions can be found in the table(s) below.
<!--BOT FLAG|Ham|41.78.16-->
{{clear}}
<div class="togglebox theme-red">
    <div>Ham distribution
        <span class="mw-customtoggle-togglebox-Ham" 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-Ham">
    <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|GroceryBag1}}
    | 1
    | 0.8
    |-
    | all
    | {{ll|fridge}}
    | 4
    | 1.0
    |-
    | all
    | {{ll|fridge}}
    | 4
    | 0.8
    |-
    | butcher
    | {{ll|displaycasebutcher}}
    | 4
    | 10.0
    |-
    | butcher
    | {{ll|displaycasebutcher}}
    | 4
    | 20.0
    |-
    | butcher
    | {{ll|freezer}}
    | 4
    | 8.0
    |-
    | dinerkitchen
    | {{ll|freezer}}
    | 4
    | 6.0
    |-
    | dinerkitchen
    | {{ll|fridge}}
    | 4
    | 6.0
    |-
    | kitchen
    | {{ll|freezer}}
    | 4
    | 6.0
    |-
    | kitchen_crepe
    | {{ll|fridge}}
    | 4
    | 10.0
    |-
    | restaurantkitchen
    | {{ll|freezer}}
    | 4
    | 6.0
    |-
    | restaurantkitchen
    | {{ll|fridge}}
    | 4
    | 6.0
    |}
</div>
    </div><div style="clear:both;"></div>
    </div></div><div class="toggle large mw-customtoggle-togglebox-Ham" title="{{int:show}}/{{int:hide}}"></div></div>
<!--END BOT FLAG|Ham|41.78.16-->
Ham can be found inside [[refrigerator]]s.
Ham can be found inside [[refrigerator]]s.


== Code ==
==Code==
'''''From items_food.txt (Project Zomboid directory/media/scripts/)'''''
{{CodeBox
{{Retrieved|version=41|incver=68}}
| {{CodeSnip
<pre> item Ham
  | lang = java
    {
  | line = true
        DisplayCategory = Food,
  | start = 2441
        HungerChange = -60,
  | source = items_food.txt
        Weight = 1,
  | retrieved = true
        AlwaysWelcomeGift = TRUE,
  | version = 41.78.16
        Type = Food,
  | code =
        DisplayName = Ham,
item Ham
        Icon = Ham,
{
        EvolvedRecipe = Omelette:10;Sandwich:10;Sandwich Baguette:10;Burger:10;Salad:10;RicePot:10;RicePan:10;PastaPot:10;PastaPan:10,
DisplayName = Ham,
        FoodType   =   Meat,
DisplayCategory = Food,
        DaysTotallyRotten = 10,
Type = Food,
        DaysFresh = 5,
Weight = 1,
        Carbohydrates = 91,
Icon = Ham,
        Proteins = 117,
/*EvolvedRecipe = Omelette:10;Sandwich:10;Sandwich Baguette:10;Burger:10;Salad:10;RicePot:10;RicePan:10;PastaPot:10;PastaPan:10,*/
        Lipids = 78,
FoodType = Meat,
        Calories = 1560,
Packaged = TRUE,
        Packaged = TRUE,
DaysFresh = 5,
        WorldStaticModel = Ham,
DaysTotallyRotten = 10,
    }</pre>
HungerChange = -60,
Calories = 1560,
Carbohydrates = 91,
Lipids = 78,
Proteins = 117,
WorldStaticModel = Ham,
Tooltip = Tooltip_item_NeedsSliced,
}
}}
}}


==See also==
==See also==
*[[Ham Slice]]
*[[Bacon]]
*[[Bacon]]
*[[Meat Patty]]
*[[Meat Patty]]


{{Navbox_food}}
{{Navbox items|meat}}
 
 
[[Category:Perishable food]]

Revision as of 15:42, 24 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]
Ham
Ham Model.png
Ham (Rotten) Ham Slice
General
Category
Food
Encumbrance
Moodle Icon HeavyLoad.png
1
Properties
Packaged
Yes
Days fresh
5 days
Days until rotten
10 days
Nutrition
HungerMoodle Icon Hungry.png
-60
CaloriesCalories
1560
CarbohydratesCarbohydrates
91
ProteinsProteins
117
FatFat
78
Technical
Item ID
Base.Ham

A ham is a perishable food item used in cooking.

Usage

Consumable properties

Ham 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

Ham.png
Hunger: -60


Ham.png
Hunger: -45
Boredom: +10
Unhappiness: +10

HamRotten.png
Hunger: -27
Boredom: +20
Unhappiness: +20
Dangerous, will cause sickness.

Crafting

Main article: Cooking

What it can make

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

Product Ingredients Tools Requirements Workstation XP
HamSlices.png
Ham Slice ×6
One of:
KnifeChopping.png Kitchen Knife ×1
HuntingKnife.png Hunting Knife ×1
Cleaver.png Meat Cleaver ×1
KnifeFlint.png Stone Knife ×1
Machete.png Machete ×1
Each of:
Ham.png Ham ×1
none none none 0.75 Cooking

Distribution

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

Ham distribution Show / Hide
Containers
Building / Room Container Rolls Chance
all GroceryBag1 1 0.8
all fridge 4 1.0
all fridge 4 0.8
butcher displaycasebutcher 4 10.0
butcher displaycasebutcher 4 20.0
butcher freezer 4 8.0
dinerkitchen freezer 4 6.0
dinerkitchen fridge 4 6.0
kitchen freezer 4 6.0
kitchen_crepe fridge 4 10.0
restaurantkitchen freezer 4 6.0
restaurantkitchen fridge 4 6.0

Ham can be found inside refrigerators.

Code

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

Source: ProjectZomboid\media\scripts\items_food.txt

Retrieved: Build 41.78.16
item Ham
	{
		DisplayName = Ham,
		DisplayCategory = Food,
		Type = Food,
		Weight = 1,
		Icon = Ham,
		/*EvolvedRecipe = Omelette:10;Sandwich:10;Sandwich Baguette:10;Burger:10;Salad:10;RicePot:10;RicePan:10;PastaPot:10;PastaPan:10,*/
		FoodType = Meat,
		Packaged = TRUE,
		DaysFresh = 5,
		DaysTotallyRotten = 10,
		HungerChange = -60,
		Calories = 1560,
		Carbohydrates = 91,
		Lipids = 78,
		Proteins = 117,
		WorldStaticModel = Ham,
		Tooltip = Tooltip_item_NeedsSliced,
	}

See also