Coffee: Difference between revisions

From PZwiki
No edit summary
(Update distribution file)
 
(36 intermediate revisions by 9 users not shown)
Line 1: Line 1:
{{languages|Coffee}}
{{Header|Project Zomboid|Items|Food|Miscellaneous food}}
{{header|Project Zomboid|Items|Food|Non-Perishable Food|type=Food|version=Version 40|incver=7}}
{{Page version|41.78.16}}
{{Infobox food
{{Infobox item
|display_name=Coffee
|name=Coffee
|name_colour=Food
|model=Coffee_Model.png
|name_text_colour=Food
|icon=Coffee.png
|image=Coffee_120px.png
|icon_name=Coffee
<!--GENERAL-->
<!--GENERAL-->
|category=Food
|category=Food
|weight=1
|weight=1
|packaged=True
|packaged=Yes
<!--NUTRITION-->
<!--NUTRITION-->
|hunger_change=-30
|hunger_change=-30
|thirst_change=60
|thirst_change=-20
|calories=2
|calories=2
|lipids=0
|lipids=0
Line 18: Line 18:
|carbohydrates=0
|carbohydrates=0
<!--EFFECT-->
<!--EFFECT-->
|unhappy_change=20
|unhappy_change=+20
|fatigue_change=-50
|fatigue_change=-50
<!--TECHNICAL DETAILS-->
<!--TECHNICAL DETAILS-->
|class_name=Base.Coffee2
|item_id=Base.Coffee2
}}
}}
'''Coffee''' is a [[Food#Non-Perishable|non-perishable]] food [[item]].  
'''Coffee''' is a non-perishable [[food]] [[Items|item]].


== Usage ==
==Usage==
Coffee can be eaten, providing the player with some positive and negative effects. As it is non-perishable, coffee will never go stale or rotten. Coffee is more effective when used in making a [[Hot Cuppa|hot cuppa]] or [[Recipe Ingredients#Beverage Ingredients|beverage]], as all negative effects are removed.
Coffee can be eaten raw, providing the player with some positive and negative effects. As it is non-perishable, coffee will never go stale or rotten. Coffee is more effective when used in making [[Recipe ingredients#Beverage ingredients|beverage]], as all negative effects are removed.


== Crafting ==
==Crafting==
Coffee is a [[cooking]] [[Recipe Ingredients|ingredient]].
{{Main|Cooking}}
{{Cooking table header}}
{{RecipeLookup|2003}}
{{RecipeLookup|2091}}
{{Crafting table footer}}


=== Evolved recipes ===
===Evolved recipes===
{{EvolvedRecipesForItem|hotdrink=5}}
{{EvolvedRecipesForItem|beverage=5}}


== Distribution ==
==Distribution==
Coffee can be found in [[Containers#Kitchen Counter|kitchen counters]].
The loot distributions can be found in the table(s) below.


== Code ==
<!--BOT FLAG|Coffee2|41.78.16-->
'''''From newitems.txt (Project Zomboid directory/media/scripts/)'''''
{{Clear}}
{{Retrieved|version=40|incver=7}}
<div class="togglebox theme-red">
<pre> item Coffee2
    <div>Coffee2 distribution
        Weight = 1,
        <span class="mw-customtoggle-togglebox-Coffee2" 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>
        Type = Food,
    <div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-togglebox-Coffee2">
        HungerChange    = -30,
    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">
        UnhappyChange  = 20,
<div class="pz-container">
        ThirstChange    = 60,
<div id="containers" style="flex-basis:30%">
FatigueChange = -50,
    {| class="wikitable theme-red" style="margin-right: 15px; width: 95%;"
        DisplayName = Coffee,
    |+ {{ll|Containers}}
        Icon = InstantCoffee,
    ! Building/Room
        EvolvedRecipe  = HotDrink:5,
    ! Container
        FoodType    = Coffee,
    ! Effective chance
        Carbohydrates = 0,
    |-
        Proteins = 1,
    | GroceryBag1
        Lipids = 0,
    | {{ll|GroceryBag1}}
Calories = 2,
    | 1.01%
        Packaged = TRUE,</pre>
    |-
    | bakerykitchen
    | {{ll|counter}}
    | 23.28%
    |-
    | bakerykitchen
    | {{ll|counter}}
    | 41.14%
    |-
    | breakroom
    | {{ll|counter}}
    | 23.28%
    |-
    | breakroom
    | {{ll|overhead}}
    | 23.28%
    |-
    | breakroom
    | {{ll|shelves}}
    | 23.28%
    |-
    | cafekitchen
    | {{ll|counter}}
    | 23.28%
    |-
    | cafekitchen
    | {{ll|counter}}
    | 41.14%
    |-
    | cafekitchen
    | {{ll|shelves}}
    | 23.28%
    |-
    | cafekitchen
    | {{ll|shelves}}
    | 41.14%
    |-
    | dinerkitchen
    | {{ll|counter}}
    | 23.28%
    |-
    | dinerkitchen
    | {{ll|counter}}
    | 41.14%
    |-
    | dinerkitchen
    | {{ll|crate}}
    | 23.28%
    |-
    | dinerkitchen
    | {{ll|crate}}
    | 41.14%
    |-
    | dinerkitchen
    | {{ll|crate}}
    | 76.55%
    |-
    | dinerkitchen
    | {{ll|metal_shelves}}
    | 23.28%
    |-
    | dinerkitchen
    | {{ll|metal_shelves}}
    | 41.14%
    |-
    | dinerkitchen
    | {{ll|metal_shelves}}
    | 76.55%
    |-
    | donut_dining
    | {{ll|counter}}
    | 23.28%
    |-
    | donut_dining
    | {{ll|counter}}
    | 41.14%
    |-
    | donut_kitchen
    | {{ll|counter}}
    | 23.28%
    |-
    | donut_kitchen
    | {{ll|counter}}
    | 41.14%
    |-
    | generalstore
    | {{ll|shelves}}
    | 23.28%
    |-
    | generalstorestorage
    | {{ll|crate}}
    | 23.28%
    |-
    | generalstorestorage
    | {{ll|shelves}}
    | 23.28%
    |-
    | gigamart
    | {{ll|shelves}}
    | 23.28%
    |-
    | grocery
    | {{ll|shelves}}
    | 23.28%
    |-
    | grocerystorage
    | {{ll|crate}}
    | 3.98%
    |-
    | grocerystorage
    | {{ll|metal_shelves}}
    | 3.98%
    |-
    | grocerystorage
    | {{ll|smallcrate}}
    | 3.98%
    |-
    | kitchen
    | {{ll|counter}}
    | 15.1%
    |-
    | kitchen
    | {{ll|overhead}}
    | 15.1%
    |-
    | kitchen_crepe
    | {{ll|counter}}
    | 23.28%
    |-
    | kitchen_crepe
    | {{ll|counter}}
    | 41.14%
    |-
    | livingroom
    | {{ll|counter}}
    | 15.1%
    |-
    | livingroom
    | {{ll|overhead}}
    | 15.1%
    |-
    | restaurantkitchen
    | {{ll|counter}}
    | 23.28%
    |-
    | restaurantkitchen
    | {{ll|counter}}
    | 41.14%
    |-
    | restaurantkitchen
    | {{ll|crate}}
    | 23.28%
    |-
    | restaurantkitchen
    | {{ll|crate}}
    | 41.14%
    |-
    | restaurantkitchen
    | {{ll|crate}}
    | 76.55%
    |-
    | restaurantkitchen
    | {{ll|metal_shelves}}
    | 23.28%
    |-
    | restaurantkitchen
    | {{ll|metal_shelves}}
    | 41.14%
    |-
    | restaurantkitchen
    | {{ll|metal_shelves}}
    | 76.55%
    |}
</div>
    </div><div style="clear: both;"></div>
    </div></div><div class="toggle large mw-customtoggle-togglebox-Coffee2" title="{{int:show}}/{{int:hide}}"></div></div>
<!--END BOT FLAG|Coffee2|41.78.16-->
Coffee can often be found in [[Containers#Kitchen Counter|kitchen counters]].


== See also ==
==Code==
* [[Tea Bag]]
{{CodeBox
* [[Milk]]
| {{CodeSnip
* [[Honey]]
  | lang = java
  | line = true
  | start = 4877
  | source = items_food.txt
  | retrieved = true
  | version = 41.78.16
  | code =
item Coffee2
{
DisplayName = Coffee,
DisplayCategory = Food,
Type = Food,
Weight = 1,
Icon = InstantCoffee,
EvolvedRecipe = HotDrink:5;HotDrinkRed:5;HotDrinkWhite:5;HotDrinkSpiffo:5;HotDrinkTea:5,
FoodType = Coffee,
Packaged = TRUE,
FatigueChange = -50,
HungerChange = -30,
ThirstChange = 60,
UnhappyChange = 20,
Calories = 2,
Carbohydrates = 0,
Lipids = 0,
Proteins = 1,
WorldStaticModel = Coffee,
}
}}
}}
 
==See also==
*[[Tea Bag]]
*[[Milk]]
*[[Honey]]
 
{{Navbox items|food}}


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

Latest revision as of 12:26, 30 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]
Coffee
Coffee Model.png
General
Category
Food
Encumbrance
Moodle Icon HeavyLoad.png
1
Properties
Packaged
Yes
Nutrition
HungerMoodle Icon Hungry.png
-30
ThirstMoodle Icon Thirsty.png
-20
CaloriesCalories
2
CarbohydratesCarbohydrates
0
ProteinsProteins
1
FatFat
0
Effect
UnhappinessMoodle Icon Unhappy.png
+20
FatigueMoodle Icon Tired.png
-50
Technical
Item ID
Base.Coffee2

Coffee is a non-perishable food item.

Usage

Coffee can be eaten raw, providing the player with some positive and negative effects. As it is non-perishable, coffee will never go stale or rotten. Coffee is more effective when used in making beverage, as all negative effects are removed.

Crafting

Main article: Cooking

Evolved recipes

Product Nutrition
Beverage
Beverage
5

Distribution

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

Coffee2 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
GroceryBag1 GroceryBag1 1.01%
bakerykitchen counter 23.28%
bakerykitchen counter 41.14%
breakroom counter 23.28%
breakroom overhead 23.28%
breakroom shelves 23.28%
cafekitchen counter 23.28%
cafekitchen counter 41.14%
cafekitchen shelves 23.28%
cafekitchen shelves 41.14%
dinerkitchen counter 23.28%
dinerkitchen counter 41.14%
dinerkitchen crate 23.28%
dinerkitchen crate 41.14%
dinerkitchen crate 76.55%
dinerkitchen metal_shelves 23.28%
dinerkitchen metal_shelves 41.14%
dinerkitchen metal_shelves 76.55%
donut_dining counter 23.28%
donut_dining counter 41.14%
donut_kitchen counter 23.28%
donut_kitchen counter 41.14%
generalstore shelves 23.28%
generalstorestorage crate 23.28%
generalstorestorage shelves 23.28%
gigamart shelves 23.28%
grocery shelves 23.28%
grocerystorage crate 3.98%
grocerystorage metal_shelves 3.98%
grocerystorage smallcrate 3.98%
kitchen counter 15.1%
kitchen overhead 15.1%
kitchen_crepe counter 23.28%
kitchen_crepe counter 41.14%
livingroom counter 15.1%
livingroom overhead 15.1%
restaurantkitchen counter 23.28%
restaurantkitchen counter 41.14%
restaurantkitchen crate 23.28%
restaurantkitchen crate 41.14%
restaurantkitchen crate 76.55%
restaurantkitchen metal_shelves 23.28%
restaurantkitchen metal_shelves 41.14%
restaurantkitchen metal_shelves 76.55%

Coffee can often be found in kitchen counters.

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 Coffee2
	{
		DisplayName = Coffee,
		DisplayCategory = Food,
		Type = Food,
		Weight = 1,
		Icon = InstantCoffee,
		EvolvedRecipe = HotDrink:5;HotDrinkRed:5;HotDrinkWhite:5;HotDrinkSpiffo:5;HotDrinkTea:5,
		FoodType = Coffee,
		Packaged = TRUE,
		FatigueChange = -50,
		HungerChange = -30,
		ThirstChange = 60,
		UnhappyChange = 20,
		Calories = 2,
		Carbohydrates = 0,
		Lipids = 0,
		Proteins = 1,
		WorldStaticModel = Coffee,
	}

See also