Coffee: Difference between revisions

From PZwiki
(updated to 41.68 + added model + navbox)
m (Automated Formatting)
(32 intermediate revisions by 9 users not shown)
Line 1: Line 1:
{{languages}}
{{Header|Project Zomboid|Items|Food|Miscellaneous food}}
{{header|Project Zomboid|Items|Food|Non-Perishable Food|type=Food|version=Version 41|incver=68}}
{{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_Model.png
|icon_name=Coffee
|image_width=250px
|alternate_image=Coffee.png
|alternate_name=Coffee
|alternate_link=
<!--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 25: Line 21:
|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|hot drink]], 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}}
{{Crafting header|ing=4}}
 
{{Crafting cooking|115|ing=4}}
===Evolved recipes===
{{Crafting cooking|116|ing=4}}
{{EvolvedRecipesForItem|beverage=5}}
 
==Distribution==
The loot distributions can be found in the table(s) below.
 
{| class="mw-collapsible mw-collapsed wikitable theme-red" data-expandtext="{{int:show}}" data-collapsetext="{{int:hide}}" style="text-align:center; min-width:24em;"
! colspan="4" | Containers
|-
! Building/Room
! Container
! style="width: 3.2em;" | Rolls
! style="width: 3.2em;" | Chance
|-
|rowspan="2"|bakerykitchen
|[[counter]]
|4
|1
|-
|[[counter]]
|4
|2
|-
|rowspan="2"|breakroom
|[[counter]]
|4
|1
|-
|[[overhead]]
|4
|1
|-
|rowspan="5"|dinerkitchen
|[[crate]]
|4
|1
|-
|[[crate]]
|4
|1
|-
|[[crate]]
|4
|2
|-
|[[crate]]
|4
|2
|-
|[[crate]]
|4
|5
|-
|generalstore
|[[shelves]]
|4
|1
|-
|grocerystorage
|[[crate]]
|4
|1
|-
|kitchen
|[[counter]]
|4
|6
|}
|}
Coffee can often be found in [[Containers#Kitchen Counter|kitchen counters]].


=== Evolved recipes ===
==Code==
{{EvolvedRecipesForItem|hotdrink=5|hotdrinktea=5}}
{{CodeBox
 
| {{CodeSnip
== Distribution ==
  | lang = java
Coffee can be found in [[Containers#Kitchen Counter|kitchen counters]].
  | 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,
}
}}
}}


== Code ==
==See also==
'''''From items_food.txt (Project Zomboid directory/media/scripts/)'''''
*[[Tea Bag]]
{{Retrieved|version=41|incver=68}}
*[[Milk]]
<pre>    item Coffee2
*[[Honey]]
    {
        DisplayCategory = Food,
        Weight = 1,
        Type = Food,
        HungerChange    =  -30,
        UnhappyChange  =  20,
        ThirstChange    =  60,
        FatigueChange = -50,
        DisplayName = Coffee,
        Icon = InstantCoffee,
        EvolvedRecipe  =  HotDrink:5;HotDrinkRed:5;HotDrinkWhite:5;HotDrinkSpiffo:5;HotDrinkTea:5,
        FoodType    =  Coffee,
        Carbohydrates = 0,
        Proteins = 1,
        Lipids = 0,
        Calories = 2,
        Packaged = TRUE,
        WorldStaticModel = Coffee,
    }</pre>


== See also ==
{{Navbox items|food}}
* [[Tea Bag]]
* [[Milk]]
* [[Honey]]


{{Navbox_food}}
[[Category:Non-perishable food]]

Revision as of 07:39, 14 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.

Containers
Building/Room Container Rolls Chance
bakerykitchen counter 4 1
counter 4 2
breakroom counter 4 1
overhead 4 1
dinerkitchen crate 4 1
crate 4 1
crate 4 2
crate 4 2
crate 4 5
generalstore shelves 4 1
grocerystorage crate 4 1
kitchen counter 4 6

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