Dog Food: Difference between revisions

From PZwiki
mNo edit summary
(Add distro table)
 
(24 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{{languages|Dog Food}}
{{Header|Project Zomboid|Items|Food|Canned food}}
{{header|Project Zomboid|Items|Food|Non-Perishable Food|Canned Food|type=Food|version=Version 40|incver=14}}{{Infobox food
{{Page version|41.78.16}}
|display_name=Dog Food
{{Infobox item
|name_colour=Food
|name=Dog Food
|name_text_colour=Food
|model=TinnedDogFood_Model.png
|image=Dogfood_120px.png
|icon=Dogfood.png
|alternate_image=DogfoodOpen.png
|icon_name=Dog Food
|alternate_link=
|model2=TinnedDogFoodOpen_Model.png
|alternate_name=Opened Dog Food
|icon2=DogfoodOpen.png
|icon_name2=Opened Dog Food
<!--GENERAL-->
<!--GENERAL-->
|category=Food
|category=Food
|weight=1.0
|weight=0.8
|days_fresh=5
|days_fresh=5
|days_rotten=7
|days_rotten=7
|packaged=True
|packaged=Yes
<!--NUTRITION-->
<!--NUTRITION-->
|hunger_change=-30
|hunger_change=-30
|thirst_change=
|calories=498
|calories=260
|lipids=12.58
|lipids=7
|proteins=16.04
|proteins=16
|carbohydrates=77.56
|carbohydrates=33
<!--EFFECT-->
<!--EFFECT-->
|unhappy_change=50
|unhappy_change=+50
<!--TECHNICAL DETAILS-->
<!--TECHNICAL DETAILS-->
|class_name=Base.Dogfood<br>Base.DogfoodOpen
|item_id=Base.Dogfood<br>Base.DogfoodOpen
}}'''Dog food''' is a [[Food#Non-Perishable|non-perishable]] food [[item]].  
}}
'''Dog food''' (written as ''DOG FOOD'' on the model) is a non-perishable [[food]] [[Items|item]].


==Usage==
==Usage==
Dog food can only be opened with a [[Can Opener|can opener]], and once opened becomes [[Food#Perishable|perishable]].  
Dog food can only be opened with a [[Can Opener|can opener]], and once opened becomes [[Food#Perishable|perishable]].
{{Crafting/sandbox2
|opened_dog_food
}}
 
===Consumable properties===
===Consumable properties===
Opened Dog food can be eaten, providing the player with some positive effects, however these will become negative the longer it's left to perish.
Opened dog food 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 = DogfoodOpen.png
|image = DogfoodOpen.png
|hunger = -30
|hunger = -30
|thirst = 0
|thirst = 0
|unhappiness = +50
|unhappiness = +50
|unrotten hunger = -11
|unrotten hunger = -23
|unrotten boredom = +10
|unrotten boredom = +10
|unrotten unhappiness = +50
|unrotten unhappiness = +60
|unrotten thirst = 0
|unrotten thirst = 0
|rotten hunger = -7
|rotten hunger = -13
|rotten boredom = +20
|rotten boredom = +20
|rotten unhappiness = +50
|rotten unhappiness = +70
|rotten thirst = 0
|rotten thirst = 0
|perishable = 1
|perishable = 1
Line 49: Line 54:


==Distribution==
==Distribution==
Dog food is often found in [[Containers#Kitchen Counter|kitchen counters]].
Dog food can often be found in [[Containers#Kitchen Counter|kitchen counters]].
The distributions can be found in the following table(s):
<!--BOT FLAG|Dogfood|41.78.16-->
{{Clear}}
<div class="togglebox theme-red">
    <div>Dogfood distribution
        <span class="mw-customtoggle-togglebox-Dogfood" 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-Dogfood">
    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 sortable" style="margin-right: 15px; width: 95%;"
    |+ {{ll|Containers}}
    ! Building/Room
    ! Container
    ! Effective chance
    |-
    | FoodCache1
    | {{ll|FoodBox}}
    | 62.98%
    |-
    | SafehouseLoot
    | {{ll|counter}}
    | 23.28%
    |-
    | SurvivorCache1
    | {{ll|counter}}
    | 23.28%
    |-
    | SurvivorCache2
    | {{ll|counter}}
    | 23.28%
    |-
    | closet
    | {{ll|crate}}
    | 23.28%
    |-
    | closet
    | {{ll|crate}}
    | 41.14%
    |-
    | dogfoodfactory
    | {{ll|crate}}
    | 23.28%
    |-
    | dogfoodfactory
    | {{ll|crate}}
    | 41.14%
    |-
    | dogfoodfactory
    | {{ll|crate}}
    | 76.55%
    |-
    | dogfoodfactory
    | {{ll|metal_shelves}}
    | 23.28%
    |-
    | dogfoodfactory
    | {{ll|metal_shelves}}
    | 41.14%
    |-
    | dogfoodfactory
    | {{ll|metal_shelves}}
    | 76.55%
    |-
    | dogfoodshipping
    | {{ll|crate}}
    | 23.28%
    |-
    | dogfoodshipping
    | {{ll|crate}}
    | 41.14%
    |-
    | dogfoodshipping
    | {{ll|crate}}
    | 76.55%
    |-
    | dogfoodshipping
    | {{ll|metal_shelves}}
    | 23.28%
    |-
    | dogfoodshipping
    | {{ll|metal_shelves}}
    | 41.14%
    |-
    | dogfoodshipping
    | {{ll|metal_shelves}}
    | 76.55%
    |-
    | dogfoodstorage
    | {{ll|crate}}
    | 23.28%
    |-
    | dogfoodstorage
    | {{ll|crate}}
    | 41.14%
    |-
    | dogfoodstorage
    | {{ll|crate}}
    | 76.55%
    |-
    | garagestorage
    | {{ll|crate}}
    | 23.28%
    |-
    | garagestorage
    | {{ll|crate}}
    | 41.14%
    |-
    | kennels
    | {{ll|counter}}
    | 23.28%
    |-
    | kennels
    | {{ll|counter}}
    | 41.14%
    |-
    | kitchen
    | {{ll|counter}}
    | 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%
    |-
    | storageunit
    | {{ll|crate}}
    | 41.14%
    |-
    | storageunit
    | {{ll|metal_shelves}}
    | 23.28%
    |-
    | storageunit
    | {{ll|metal_shelves}}
    | 41.14%
    |}
</div>
    </div><div style="clear: both;"></div>
    </div></div><div class="toggle large mw-customtoggle-togglebox-Dogfood" title="{{int:show}}/{{int:hide}}"></div></div>
<!--END BOT FLAG|Dogfood|41.78.16-->


== Code ==
==Code==
'''''From newitems.txt (Project Zomboid directory/media/scripts/)'''''
{{CodeBox|[[File:Dogfood.png]] {{ID|Base.Dogfood}}<br>
{{CodeSnip
  | lang = java
  | line = true
  | start = 31
  | source = items_food.txt
  | retrieved = true
  | version = 41.78.16
  | code =
item Dogfood
{
DisplayName = Dog Food,
DisplayCategory = Food,
Type = Food,
Weight = 0.8,
Icon = Dogfood,
CannedFood = TRUE,
CantEat = TRUE,
Packaged = TRUE,
Calories = 498,
Carbohydrates = 77.56,
Lipids = 12.58,
Proteins = 16.04,
WorldStaticModel = CanClosedDogFood,
Tags = HasMetal,
}
}}


''Dog Food'' [[File:Dogfood.png|32px]]
[[File:DogfoodOpen.png]] {{ID|Base.DogfoodOpen}}<br>
{{Retrieved|version=40|incver=14}}
{{CodeSnip
<pre> item Dogfood
  | lang = java
Weight = 1,
  | line = true
Type = Food,
  | start = 5
DisplayName = Dog Food,
  | source = items_food.txt
Icon = Dogfood,
  | retrieved = true
        Carbohydrates = 77.56,
  | version = 41.78.16
        Proteins = 16.04,
  | code =
        Lipids = 12.58,
item DogfoodOpen
        Calories = 498,
{
        Packaged = TRUE,</pre>
DisplayName = Opened Dog Food,
 
DisplayCategory = Food,
''Opened Dog Food'' [[File:DogfoodOpen.png|32px]]
Type = Food,
{{Retrieved|version=40|incver=14}}
Weight = 0.8,
<pre> item DogfoodOpen
Icon = DogfoodOpen,
HungerChange = -30,
FoodType = Meat,
Weight = 1,
CannedFood = TRUE,
Type = Food,
EatType = can,
DaysFresh = 5,
Packaged = TRUE,
DaysTotallyRotten = 7,
ReplaceOnUse = TinCanEmpty,
UnhappyChange = 50,
DaysFresh = 5,
DisplayName = Opened Dog Food,
DaysTotallyRotten = 7,
Icon = DogfoodOpen,
HungerChange = -30,
        Carbohydrates = 77.56,
UnhappyChange = 50,
        Proteins = 16.04,
Calories = 498,
        Lipids = 12.58,
Carbohydrates = 77.56,
        Calories = 498,
Lipids = 12.58,
        Packaged = TRUE,
Proteins = 16.04,
        ReplaceOnUse    = TinCanEmpty,</pre>
StaticModel = CanOpen,
WorldStaticModel = CanOpenDogFood,
EvolvedRecipeName = Dog Food,
Tags = HasMetal,
}
}}
}}


==See also==
==See also==
Line 90: Line 283:
*[[Canned Tuna]]
*[[Canned Tuna]]


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

Latest revision as of 14:46, 4 May 2024

UI Tick.png
This page has been revised for the current stable version (41.78.16).
Help by adding any missing content. [edit]
Dog Food
TinnedDogFood Model.png
TinnedDogFoodOpen Model.png
General
Category
Food
Encumbrance
Moodle Icon HeavyLoad.png
0.8
Properties
Packaged
Yes
Days fresh
5 days
Days until rotten
7 days
Nutrition
HungerMoodle Icon Hungry.png
-30
CaloriesCalories
498
CarbohydratesCarbohydrates
77.56
ProteinsProteins
16.04
FatFat
12.58
Effect
UnhappinessMoodle Icon Unhappy.png
+50
Technical
Item ID
Base.Dogfood
Base.DogfoodOpen

Dog food (written as DOG FOOD on the model) is a non-perishable food item.

Usage

Dog food can only be opened with a can opener, and once opened becomes perishable.

Product Ingredients Tools Requirements Workstation XP
DogfoodOpen.png
Opened Dog Food
Dogfood.png Dog Food ×1 CanOpener.png
Can Opener
none none none

Consumable properties

Opened dog food 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

DogfoodOpen.png
Hunger: -30

Unhappiness: +50

DogfoodOpen.png
Hunger: -23
Boredom: +10
Unhappiness: +60

DogfoodOpen.png
Hunger: -13
Boredom: +20
Unhappiness: +70
Dangerous, will cause sickness.

Distribution

Dog food can often be found in kitchen counters. The distributions can be found in the following table(s):

Dogfood 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
FoodCache1 FoodBox 62.98%
SafehouseLoot counter 23.28%
SurvivorCache1 counter 23.28%
SurvivorCache2 counter 23.28%
closet crate 23.28%
closet crate 41.14%
dogfoodfactory crate 23.28%
dogfoodfactory crate 41.14%
dogfoodfactory crate 76.55%
dogfoodfactory metal_shelves 23.28%
dogfoodfactory metal_shelves 41.14%
dogfoodfactory metal_shelves 76.55%
dogfoodshipping crate 23.28%
dogfoodshipping crate 41.14%
dogfoodshipping crate 76.55%
dogfoodshipping metal_shelves 23.28%
dogfoodshipping metal_shelves 41.14%
dogfoodshipping metal_shelves 76.55%
dogfoodstorage crate 23.28%
dogfoodstorage crate 41.14%
dogfoodstorage crate 76.55%
garagestorage crate 23.28%
garagestorage crate 41.14%
kennels counter 23.28%
kennels counter 41.14%
kitchen counter 23.28%
kitchen overhead 23.28%
kitchen shelves 23.28%
livingroom counter 23.28%
livingroom overhead 23.28%
storageunit crate 23.28%
storageunit crate 41.14%
storageunit metal_shelves 23.28%
storageunit metal_shelves 41.14%

Code

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

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

Retrieved: Build 41.78.16
item Dogfood
	{
		DisplayName = Dog Food,
		DisplayCategory = Food,
		Type = Food,
		Weight = 0.8,
		Icon = Dogfood,
		CannedFood = TRUE,
		CantEat = TRUE,
		Packaged = TRUE,
		Calories = 498,
		Carbohydrates = 77.56,
		Lipids = 12.58,
		Proteins = 16.04,
		WorldStaticModel = CanClosedDogFood,
		Tags = HasMetal,
	}

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

Retrieved: Build 41.78.16
item DogfoodOpen
	{
		DisplayName = Opened Dog Food,
		DisplayCategory = Food,
		Type = Food,
		Weight = 0.8,
		Icon = DogfoodOpen,
		FoodType = Meat,
		CannedFood = TRUE,
		EatType = can,
		Packaged = TRUE,
		ReplaceOnUse = TinCanEmpty,
		DaysFresh = 5,
		DaysTotallyRotten = 7,
		HungerChange = -30,
		UnhappyChange = 50,
		Calories = 498,
		Carbohydrates = 77.56,
		Lipids = 12.58,
		Proteins = 16.04,
		StaticModel = CanOpen,
		WorldStaticModel = CanOpenDogFood,
		EvolvedRecipeName = Dog Food,
		Tags = HasMetal,
	}

See also