Canned Beans: Difference between revisions

From PZwiki
m (Remove obsolete template)
(Update distribution file)
 
(27 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{Languages}}{{Header|Project Zomboid|Items|Food|Non-Perishable Food|Canned Food|type=Food|version=Version 41|incver=73}}{{Infobox food
{{Header|Project Zomboid|Items|Food|Canned food}}
|display_name=Canned Beans
{{Page version|41.78.16}}
|name_colour=Food
{{Infobox item
|name_text_colour=Food
|name=Canned Beans
|image=Beans.png
|model=BeansClosed_Model.png
|alternate_image=BeansOpen.png
|icon=Beans.png
|alternate_name=Opened Canned Beans
|icon_name=Canned Beans
|alternate_link=
|model2=BeansOpen_Model.png
<!--GENERAL-->
|icon2=BeansOpen.png
|icon_name2=Opened Canned Beans
|category=Food
|category=Food
|weight=0.8
|weight=0.8
|days_fresh=2
|days_fresh=2
|days_rotten=2
|days_rotten=4
|packaged = Yes
|packaged=Yes
<!--NUTRITION-->
<!--NUTRITION-->
|hunger_change=-24
|hunger_change=-24
Line 22: Line 23:
|unhappy_change=+10
|unhappy_change=+10
<!--TECHNICAL DETAILS-->
<!--TECHNICAL DETAILS-->
|class_name=Base.TinnedBeans<br>Base.OpenBeans
|item_id=Base.TinnedBeans<br>Base.OpenBeans
}}'''Canned beans''' is a [[Food#Non-Perishable|non-perishable]] food [[item]].  
}}
'''Canned beans''' (written as ''BEANS'' on the model) is a non-perishable [[food]] [[Items|item]].


==Usage==
==Usage==
Canned beans can only be opened with a [[Can Opener|can opener]], and once opened they become [[Food#Perishable|perishable]].
Canned beans can only be opened with a [[Can Opener|can opener]], and once opened they become [[Food#Perishable|perishable]].
{{Crafting header|ing=2}}
{{Crafting/sandbox2
{{Crafting cooking|009|ing=2}}
|opened_canned_beans
|}
}}


===Consumable properties===
===Consumable properties===
Opened canned beans can be eaten, providing the player with some positive effects, however these will become negative the longer it's left to perish.
Opened canned beans 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 = BeansOpen.png
|image = BeansOpen.png
|hunger = -24
|hunger = -24
|unhappiness = +10  
|unhappiness = +10
|perishable = 1
|perishable = 1
|cookable = 0
|cookable = 0
Line 48: Line 50:
}}
}}


== Crafting ==
==Crafting==
{{Main|Cooking}}
{{Main|Cooking}}


===What it can make===
===What it can make===
{{Crafting header|ing=3}}
{{Crafting/sandbox2
{{Crafting cooking|114|ing=3}}
|bowl_of_beans_uncooked
|}
}}


===Evolved recipes===
===Evolved recipes===
Canned beans is a [[cooking]] [[Recipe Ingredients|ingredient]].
Canned beans are a [[cooking]] [[Recipe ingredients|ingredient]].
{{EvolvedRecipesForItem|Omelette=8|Soup=24|Stew=24|Rice=24|Sandwich=8|Toast=8|Salad=8|}}
{{EvolvedRecipesForItem|omelette=8|soup=24|stew=24|rice=24|sandwich=8|toast=8|salad=8}}


==Distribution==
==Distribution==
The loot distributions can be found in the table(s) below.
<!--BOT FLAG|TinnedBeans|41.78.16-->
{{Clear}}
<div class="togglebox theme-red">
    <div>TinnedBeans distribution
        <span class="mw-customtoggle-togglebox-TinnedBeans" 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-TinnedBeans">
    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
    |-
    | Bag_FoodCanned
    | {{ll|Bag_FoodCanned}}
    | 23.28%
    |-
    | Bag_SurvivorBag
    | {{ll|Bag_SurvivorBag}}
    | 23.28%
    |-
    | FoodCache1
    | {{ll|FoodBox}}
    | 62.98%
    |-
    | GroceryBag1
    | {{ll|GroceryBag1}}
    | 1.01%
    |-
    | GroceryBag3
    | {{ll|GroceryBag3}}
    | 6.41%
    |-
    | SafehouseLoot
    | {{ll|counter}}
    | 23.28%
    |-
    | SurvivorCache1
    | {{ll|SurvivorCrate}}
    | 23.28%
    |-
    | SurvivorCache1
    | {{ll|counter}}
    | 23.28%
    |-
    | SurvivorCache2
    | {{ll|SurvivorCrate}}
    | 23.28%
    |-
    | SurvivorCache2
    | {{ll|counter}}
    | 23.28%
    |-
    | garagestorage
    | {{ll|crate}}
    | 23.28%
    |-
    | generalstore
    | {{ll|crate}}
    | 23.28%
    |-
    | generalstore
    | {{ll|shelves}}
    | 23.28%
    |-
    | generalstorestorage
    | {{ll|crate}}
    | 23.28%
    |-
    | generalstorestorage
    | {{ll|shelves}}
    | 23.28%
    |-
    | gigamart
    | {{ll|crate}}
    | 23.28%
    |-
    | gigamart
    | {{ll|shelves}}
    | 23.28%
    |-
    | grocery
    | {{ll|crate}}
    | 23.28%
    |-
    | grocery
    | {{ll|shelves}}
    | 23.28%
    |-
    | grocery
    | {{ll|smallcrate}}
    | 23.28%
    |-
    | grocerystorage
    | {{ll|crate}}
    | 3.98%
    |-
    | grocerystorage
    | {{ll|metal_shelves}}
    | 3.98%
    |-
    | grocerystorage
    | {{ll|smallcrate}}
    | 3.98%
    |-
    | kitchen
    | {{ll|counter}}
    | 23.28%
    |-
    | kitchen
    | {{ll|crate}}
    | 23.28%
    |-
    | kitchen
    | {{ll|overhead}}
    | 23.28%
    |-
    | kitchen
    | {{ll|shelves}}
    | 23.28%
    |-
    | livingroom
    | {{ll|counter}}
    | 23.28%
    |-
    | livingroom
    | {{ll|overhead}}
    | 23.28%
    |-
    | storageunit
    | {{ll|crate}}
    | 23.28%
    |}
</div>
    </div><div style="clear: both;"></div>
    </div></div><div class="toggle large mw-customtoggle-togglebox-TinnedBeans" title="{{int:show}}/{{int:hide}}"></div></div>
<!--END BOT FLAG|TinnedBeans|41.78.16-->
Canned beans can often be found in [[Containers#Kitchen Counter|kitchen counters]].
Canned beans can often be found in [[Containers#Kitchen Counter|kitchen counters]].


==Gallery==
<gallery>
BeansClosed_Model.png|Model for: [[File:Beans.png]]
BeansOpen_Model.png|Model for: [[File:BeansOpen.png]]
</gallery>
<div class="mw-collapsible mw-collapsed">
==Code==
==Code==
<div class="mw-collapsible-content">'''''From items_food.txt (Project Zomboid directory/media/scripts/)'''''
{{CodeBox|[[File:Beans.png]] {{ID|Base.TinnedBeans}}<br>
''Canned Beans'' [[File:Beans.png|32px]]
{{CodeSnip
{{Retrieved|version=41|incver=73}}
  | lang = java
<pre>    item TinnedBeans
  | line = true
  | start = 614
  | source = items_food.txt
  | retrieved = true
  | version = 41.78.16
  | code =
item TinnedBeans
{
{
DisplayName = Canned Beans,
DisplayName = Canned Beans,
Line 90: Line 233:
StaticModel = CanClosed,
StaticModel = CanClosed,
WorldStaticModel = CanClosed,
WorldStaticModel = CanClosed,
}</pre>
Tags = HasMetal,
}
}}


''Opened Canned Beans'' [[File:BeansOpen.png|32px]]
[[File:BeansOpen.png]] {{ID|Base.OpenBeans}}<br>
{{Retrieved|version=41|incver=73}}
{{CodeSnip
<pre>    item OpenBeans
  | lang = java
  | line = true
  | start = 587
  | source = items_food.txt
  | retrieved = true
  | version = 41.78.16
  | code =
item OpenBeans
{
{
DisplayName = Opened Canned Beans,
DisplayName = Opened Canned Beans,
Line 118: Line 270:
StaticModel = CanOpen,
StaticModel = CanOpen,
WorldStaticModel = CanOpen,
WorldStaticModel = CanOpen,
}</pre>
Tags = HasMetal,
</div>
}
}}
}}


==See also==
==See also==
Line 126: Line 280:
*[[Canned Soup]]
*[[Canned Soup]]


{{Navbox food}}
{{Navbox items|preserved_food}}
 
 
[[Category:Non-perishable food]]

Latest revision as of 12:15, 30 April 2024

Project ZomboidItemsFoodCanned foodCanned Beans
UI Tick.png
This page has been revised for the current stable version (41.78.16).
Help by adding any missing content. [edit]
Canned Beans
BeansClosed Model.png
BeansOpen 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
-24
CaloriesCalories
170
CarbohydratesCarbohydrates
33
ProteinsProteins
7
FatFat
1
Effect
UnhappinessMoodle Icon Unhappy.png
+10
Technical
Item ID
Base.TinnedBeans
Base.OpenBeans

Canned beans (written as BEANS on the model) is a non-perishable food item.

Usage

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

Product Ingredients Tools Requirements Workstation XP
BeansOpen.png
Opened Canned Beans
Beans.png Canned Beans ×1 CanOpener.png
Can Opener
none none none

Consumable properties

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

BeansOpen.png
Hunger: -24

Unhappiness: +10

BeansOpen.png
Hunger: -18
Boredom: +10
Unhappiness: +20

BeansOpen.png
Hunger: -10
Boredom: +20
Unhappiness: +30
Dangerous, will cause sickness.

Crafting

Main article: Cooking

What it can make

Product Ingredients Tools Requirements Workstation XP
BowlFull.png
Bowl of Beans (Uncooked)

Bowl.png Bowl ×1
Beans.png Canned Beans ×1
CanOpener.png
Can Opener
none none 0.75 Cooking

Evolved recipes

Canned beans are a cooking ingredient.

Product Nutrition
Soup
Soup
24
Stew
Stew
24
Salad
Salad
8
Sandwich
Sandwich
8
Rice Pot/Saucepan
Rice Pot/Saucepan
24
Omelette
Omelette
8
Toast
Toast
8

Distribution

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

TinnedBeans 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
Bag_FoodCanned Bag_FoodCanned 23.28%
Bag_SurvivorBag Bag_SurvivorBag 23.28%
FoodCache1 FoodBox 62.98%
GroceryBag1 GroceryBag1 1.01%
GroceryBag3 GroceryBag3 6.41%
SafehouseLoot counter 23.28%
SurvivorCache1 SurvivorCrate 23.28%
SurvivorCache1 counter 23.28%
SurvivorCache2 SurvivorCrate 23.28%
SurvivorCache2 counter 23.28%
garagestorage crate 23.28%
generalstore crate 23.28%
generalstore shelves 23.28%
generalstorestorage crate 23.28%
generalstorestorage shelves 23.28%
gigamart crate 23.28%
gigamart shelves 23.28%
grocery crate 23.28%
grocery shelves 23.28%
grocery smallcrate 23.28%
grocerystorage crate 3.98%
grocerystorage metal_shelves 3.98%
grocerystorage smallcrate 3.98%
kitchen counter 23.28%
kitchen crate 23.28%
kitchen overhead 23.28%
kitchen shelves 23.28%
livingroom counter 23.28%
livingroom overhead 23.28%
storageunit crate 23.28%

Canned beans can often be found in kitchen counters.

Code

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

Beans.png Base.TinnedBeans
Source: ProjectZomboid\media\scripts\items_food.txt

Retrieved: Build 41.78.16
item TinnedBeans
	{
		DisplayName = Canned Beans,
		DisplayCategory = Food,
		Type = Food,
		Weight = 0.8,
		Icon = Beans,
		CannedFood = TRUE,
		CantEat = TRUE,
		Packaged = TRUE,
		Calories = 170,
		Carbohydrates = 33,
		Lipids = 1,
		Proteins = 7,
		StaticModel = CanClosed,
		WorldStaticModel = CanClosed,
		Tags = HasMetal,
	}

BeansOpen.png Base.OpenBeans
Source: ProjectZomboid\media\scripts\items_food.txt

Retrieved: Build 41.78.16
item OpenBeans
	{
		DisplayName = Opened Canned Beans,
		DisplayCategory = Food,
		Type = Food,
		Weight = 0.8,
		Icon = BeansOpen,
		EvolvedRecipe = Omelette:8;Soup:24;Stew:24;RicePot:24;RicePan:24;Sandwich:8;Sandwich Baguette:8;Toast:8;Salad:8,
		EvolvedRecipeName = Bean,
		FoodType = Bean,
		CannedFood = TRUE,
		EatType = can,
		Packaged = TRUE,
		ReplaceOnUse = TinCanEmpty,
		DaysFresh = 2,
		DaysTotallyRotten = 4,
		HungerChange = -24,
		UnhappyChange = 10,
		Calories = 170,
		Carbohydrates = 33,
		Lipids = 1,
		Proteins = 7,
		StaticModel = CanOpen,
		WorldStaticModel = CanOpen,
		Tags = HasMetal,
	}

See also