Canned Sardines: Difference between revisions

From PZwiki
m (Category Project: Canned food)
(→‎Distribution: Add table)
(19 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Languages}}
{{Header|Project Zomboid|Items|Food|Canned food}}
{{header/sandbox2|Project Zomboid|Items|Food|Canned food}}
{{Page version|41.78.16}}
{{page version|41.73}}
{{Infobox item
{{Infobox food
|name=Canned Sardines
|display_name=Canned Sardines
|model=CannedSardines_Model.png
|name_colour=Food
|icon=CannedSardines.png
|name_text_colour=Food
|icon_name=Canned Sardines
|image=CannedSardines_Model.png
|model2=CannedSardinesOpen_Model.png
|image_width=200px
|icon2=CannedSardinesOpen.png
|alternate_image=CannedSardines.png
|model3=CannedSardinesRottenOpen_Model.png
|alternate_name=Canned Sardines
|icon3=CannedSardinesOpen.png
|alternate_link=
|icon_name2=Opened Canned Sardines
|alternate_image2=CannedSardinesOpen.png
|alternate_link2=
|alternate_name2=Opened Canned Sardines
<!--GENERAL-->
<!--GENERAL-->
|category=Food
|category=Food
Line 19: Line 16:
|days_fresh=2
|days_fresh=2
|days_rotten=4
|days_rotten=4
|packaged = Yes
|packaged=Yes
<!--NUTRITION-->
<!--NUTRITION-->
|hunger_change=-14
|hunger_change=-14
|thirst_change=
|calories=150
|calories=150
|lipids=11
|lipids=11
Line 28: Line 24:
|carbohydrates=0
|carbohydrates=0
<!--TECHNICAL DETAILS-->
<!--TECHNICAL DETAILS-->
|class_name=Base.CannedSardines<br>Base.CannedSardinesOpen
|item_id=Base.CannedSardines<br>Base.CannedSardinesOpen
}}
}}
'''Canned sardines''' is a [[Food#Non-Perishable|non-perishable]] food [[item]].  
'''Canned sardines''' (written as ''SARDINES'' on the model) is a non-perishable [[food]] [[Items|item]].


==Usage==
==Usage==
Canned sardines can be opened without a [[Can Opener|can opener]], and once opened become [[Food#Perishable|perishable]].
Canned tuna can be opened without the need of a [[Can Opener|can opener]], however once opened it becomes [[Food#Perishable|perishable]].
{{Crafting header|ing=2}}
{{Crafting/sandbox2
{{Crafting cooking|019|ing=2}}
|opened_canned_sardines
|}
}}


===Consumable properties===
===Consumable properties===
Line 60: Line 56:


===Evolved recipes===
===Evolved recipes===
Canned sardines is a [[cooking]] [[Recipe Ingredients|ingredient]].
Canned sardines is a [[cooking]] [[Recipe ingredients|ingredient]].
{{EvolvedRecipesForItem|Pizza=14|Stew=14|StirFry=14|Rice=14|Sandwich=7|Omelette=7|Toast=7}}
{{EvolvedRecipesForItem|pizza=14|stew=14|stirfry=14|rice=14|sandwich=7|omelette=7|toast=7}}


==Distribution==
==Distribution==
The loot distributions can be found in the table(s) below.
<!--BOT FLAG|CannedSardines|41.78.16-->
{{clear}}
<div class="togglebox theme-red">
    <div>CannedSardines distribution
        <span class="mw-customtoggle-togglebox-CannedSardines" 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-CannedSardines">
    <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
    | 10.0
    |-
    | all
    | {{ll|GroceryBag1}}
    | 1
    | 1.0
    |-
    | garagestorage
    | {{ll|crate}}
    | 4
    | 10.0
    |-
    | generalstore
    | {{ll|crate}}
    | 4
    | 10.0
    |-
    | grocerystorage
    | {{ll|crate}}
    | 4
    | 1.0
    |-
    | kitchen
    | {{ll|counter}}
    | 4
    | 10.0
    |}
</div>
    </div><div style="clear:both;"></div>
    </div></div><div class="toggle large mw-customtoggle-togglebox-CannedSardines" title="{{int:show}}/{{int:hide}}"></div></div>
<!--END BOT FLAG|CannedSardines|41.78.16-->
Canned sardines can often be found in [[Containers#Kitchen Counter|kitchen counters]].
Canned sardines can often be found in [[Containers#Kitchen Counter|kitchen counters]].


==Gallery==
<gallery>
CannedSardines Model.png|Model for: [[File:CannedSardines.png]]
CannedSardinesOpen Model.png|Model for: [[File:CannedSardinesOpen.png]]
CannedSardinesRottenOpen_Model.png|Model for: [[File:CannedSardinesOpen.png]] (Rotten)
</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:CannedSardines.png]] {{ID|Base.CannedSardines}}<br>
''Canned Sardines'' [[File:CannedSardines.png|32px]]
{{CodeSnip
{{Retrieved|version=41.73}}
  | lang = java
<pre>
  | line = true
    item CannedSardines
  | start = 399
  | source = items_food.txt
  | retrieved = true
  | version = 41.78.16
  | code =
item CannedSardines
{
{
DisplayName = Canned Sardines,
DisplayName = Canned Sardines,
Line 95: Line 144:
StaticModel = CanClosed,
StaticModel = CanClosed,
WorldStaticModel = CannedSardines_Ground,
WorldStaticModel = CannedSardines_Ground,
Tags = HasMetal,
}
}
</pre>
}}
''Opened Canned Sardines'' [[File:CannedSardinesOpen.png|32px]]
 
{{Retrieved|version=41.73}}
[[File:CannedSardinesOpen.png]] {{ID|Base.CannedSardinesOpen}}<br>
<pre>
{{CodeSnip
    item CannedSardinesOpen
  | lang = java
  | line = true
  | start = 269
  | source = items_food.txt
  | retrieved = true
  | version = 41.78.16
  | code =
item CannedSardinesOpen
{
{
DisplayName = Opened Canned Sardines,
DisplayName = Opened Canned Sardines,
DisplayCategory = Food,
DisplayCategory = Food,
Type = Food,
Type = Food,
Weight = 0.8,
Weight = 0.3,
Icon = CannedSardinesOpen,
Icon = CannedSardinesOpen,
CannedFood = TRUE,
CannedFood = TRUE,
Line 124: Line 181:
StaticModel = CanOpen,
StaticModel = CanOpen,
WorldStaticModel = CannedSardines_Open_Ground,
WorldStaticModel = CannedSardines_Open_Ground,
Tags = HasMetal,
}
}
</pre>
}}
</div>
}}


==See also==
==See also==
Line 133: Line 191:
*[[Dog Food]]
*[[Dog Food]]


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

Revision as of 02:48, 25 April 2024

Project ZomboidItemsFoodCanned foodCanned Sardines
UI Tick.png
This page has been revised for the current stable version (41.78.16).
Help by adding any missing content. [edit]
Canned Sardines
CannedSardines Model.png
CannedSardinesOpen Model.png
CannedSardinesRottenOpen 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
-14
CaloriesCalories
150
CarbohydratesCarbohydrates
0
ProteinsProteins
14
FatFat
11
Technical
Item ID
Base.CannedSardines
Base.CannedSardinesOpen

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

Usage

Canned tuna can be opened without the need of a can opener, however once opened it becomes perishable.

Product Ingredients Tools Requirements Workstation XP
CannedSardinesOpen.png
Opened Canned Sardines
CannedSardines.png Canned Sardines ×1 none none none none

Consumable properties

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

CannedSardinesOpen.png
Hunger: -14


CannedSardinesOpen.png
Hunger: -10
Boredom: +10
Unhappiness: +10

CannedSardinesOpen.png
Hunger: -6
Boredom: +20
Unhappiness: +20
Dangerous, will cause sickness.

Crafting

Main article: Cooking

Evolved recipes

Canned sardines is a cooking ingredient.

Product Nutrition
Stew
Stew
14
Stir Fry
Stir Fry
14
Sandwich
Sandwich
7
Rice Pot/Saucepan
Rice Pot/Saucepan
14
Omelette
Omelette
7
Pizza
Pizza
14
Toast
Toast
7

Distribution

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

CannedSardines distribution Show / Hide
Containers
Building / Room Container Rolls Chance
all Bag_FoodCanned 2 20.0
all FoodBox 15 10.0
all GroceryBag1 1 1.0
garagestorage crate 4 10.0
generalstore crate 4 10.0
grocerystorage crate 4 1.0
kitchen counter 4 10.0

Canned sardines can often be found in kitchen counters.

Code

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

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

Retrieved: Build 41.78.16
item CannedSardines
	{
		DisplayName = Canned Sardines,
		DisplayCategory = Food,
		Type = Food,
		Weight = 0.8,
		Icon = CannedSardines,
		CannedFood = TRUE,
		CantEat = TRUE,
		Packaged = TRUE,
		Calories = 150,
		Carbohydrates = 0,
		Lipids = 11,
		Proteins = 14,
		StaticModel = CanClosed,
		WorldStaticModel = CannedSardines_Ground,
		Tags = HasMetal,
	}

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

Retrieved: Build 41.78.16
item CannedSardinesOpen
	{
		DisplayName = Opened Canned Sardines,
		DisplayCategory = Food,
		Type = Food,
		Weight = 0.3,
		Icon = CannedSardinesOpen,
		CannedFood = TRUE,
		EatType = can,
		EvolvedRecipe = Pizza:14;Stew:14;Stir fry Griddle Pan:14;Stir fry:14;RicePot:14;RicePan:14;Sandwich:7;Sandwich Baguette:7;Omelette:7;Toast:7,
		/*EvolvedRecipeName = Canned Sardines,*/
		EvolvedRecipeName = Sardine,
		FoodType = Fish,
		Packaged = TRUE,
		ReplaceOnUse = TinCanEmpty,
		DaysFresh = 2,
		DaysTotallyRotten = 4,
		HungerChange = -14,
		Calories = 150,
		Carbohydrates = 0,
		Lipids = 11,
		Proteins = 14,
		StaticModel = CanOpen,
		WorldStaticModel = CannedSardines_Open_Ground,
		Tags = HasMetal,
	}

See also