Canned Beans: Difference between revisions
(added model to infobox) |
(→Code: updated code to 41.68) |
||
Line 61: | Line 61: | ||
== Code == | == Code == | ||
'''''From | '''''From items_food.txt (Project Zomboid directory/media/scripts/)''''' | ||
''Canned Beans'' [[File:Beans.png|32px]] | ''Canned Beans'' [[File:Beans.png|32px]] | ||
{{Retrieved|version= | {{Retrieved|version=41|incver=68}} | ||
<pre> item TinnedBeans | <pre> item TinnedBeans | ||
Weight | { | ||
Type | DisplayCategory = Food, | ||
DisplayName = Canned Beans, | Weight = 0.8, | ||
Icon | Type = Food, | ||
Carbohydrates | DisplayName = Canned Beans, | ||
Proteins | Icon = Beans, | ||
Lipids | Carbohydrates = 33, | ||
Calories | Proteins = 7, | ||
Packaged | Lipids = 1, | ||
Calories = 170, | |||
Packaged = TRUE, | |||
StaticModel = CanClosed, | |||
CannedFood = TRUE, | |||
WorldStaticModel = CanClosed, | |||
}</pre> | |||
''Opened Canned Beans'' [[File:BeansOpen.png|32px]] | ''Opened Canned Beans'' [[File:BeansOpen.png|32px]] | ||
{{Retrieved|version= | {{Retrieved|version=41|incver=68}} | ||
<pre> item OpenBeans | <pre> item OpenBeans | ||
HungerChange | { | ||
Weight | DisplayCategory = Food, | ||
Type | HungerChange = -25, | ||
DaysTotallyRotten = 4, | Weight = 0.8, | ||
UnhappyChange | Type = Food, | ||
DisplayName | DaysTotallyRotten = 4, | ||
Icon | UnhappyChange = 10, | ||
DaysFresh | DisplayName = Opened Canned Beans, | ||
Carbohydrates | Icon = BeansOpen, | ||
Proteins | DaysFresh = 2, | ||
Lipids | Carbohydrates = 33, | ||
Calories | Proteins = 7, | ||
Packaged | Lipids = 1, | ||
ReplaceOnUse | Calories = 170, | ||
Packaged = TRUE, | |||
ReplaceOnUse = TinCanEmpty, | |||
StaticModel = CanOpen, | |||
EatType = can, | |||
CannedFood = TRUE, | |||
WorldStaticModel = CanOpen, | |||
}</pre> | |||
==See also== | ==See also== |
Revision as of 14:15, 12 March 2022
Canned beans are a non-perishable food item.
Usage
Canned beans can only be opened with a can opener, and once opened become perishable.
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. Template:Consumables2
Crafting
Cooking
- Main article: Cooking
Template:Cooking table header
|-
|
|
|
| ||
||
||
||
||
||
||
||
||
||
||
Template:Crafting table footer
Distribution
Canned beans is often found in kitchen counters.
Code
From items_food.txt (Project Zomboid directory/media/scripts/)
Canned Beans Retrieved: Build 41.68
item TinnedBeans { DisplayCategory = Food, Weight = 0.8, Type = Food, DisplayName = Canned Beans, Icon = Beans, Carbohydrates = 33, Proteins = 7, Lipids = 1, Calories = 170, Packaged = TRUE, StaticModel = CanClosed, CannedFood = TRUE, WorldStaticModel = CanClosed, }
Opened Canned Beans Retrieved: Build 41.68
item OpenBeans { DisplayCategory = Food, HungerChange = -25, Weight = 0.8, Type = Food, DaysTotallyRotten = 4, UnhappyChange = 10, DisplayName = Opened Canned Beans, Icon = BeansOpen, DaysFresh = 2, Carbohydrates = 33, Proteins = 7, Lipids = 1, Calories = 170, Packaged = TRUE, ReplaceOnUse = TinCanEmpty, StaticModel = CanOpen, EatType = can, CannedFood = TRUE, WorldStaticModel = CanOpen, }