Beer Can: Difference between revisions

From PZwiki
(added item model)
(→‎Distribution: Add table)
 
(24 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{languages}}
{{Header|Project Zomboid|Items|Food|Drinks}}
{{header|Project Zomboid|Items|Food|Non-Perishable Food|type=Food|version=Version 41|incver=65}}{{Infobox food
{{Page version|41.65}}
|display_name=Beer Can
{{Infobox item
|name_colour=Food
|name=Beer Can
|name_text_colour=Food
|model=BeerCan_Model.png
|image=BeerCan_Model.png
|icon=BeerCan.png
|image_width=300px
|icon_name=Beer Can
|alternate_image=BeerCan.png
|alternate_name=Beer Can
|alternate_link=
<!--GENERAL-->
<!--GENERAL-->
|category=Food
|category=Food
|weight=0.3
|weight=0.3
|always_welcome_gift=true
|always_welcome_gift=true
|function=
|packaged=True
|packaged=True
|cant_be_frozen=True
|cant_be_frozen=True
Line 27: Line 23:
|alcohol_power=?
|alcohol_power=?
<!--TECHNICAL DETAILS-->
<!--TECHNICAL DETAILS-->
|class_name={{ID|Base.BeerCan}}
|item_id={{ID|Base.BeerCan}}
}}'''Beer Can''', is an alcoholic [[Food#Non-Perishable|non-perishable]] food [[item]].  
}}
'''Beer Can''', is an alcoholic non-perishable [[food]] [[Items|item]].


==Usage==
==Usage==
===Alcohol===
===Alcohol===
Beer Can is an alcoholic beverage, and will therefore increase the player's [[Moodles#Drunk|drunkenness]] as it is consumed. Being drunk will affect the player's coordination ([[controls]]), both on foot and in a [[vehicles|vehicle]], and [[weapon]] accuracy.
Beer Can is an alcoholic beverage, and will therefore increase the player's [[Drunk|drunkenness]] as it is consumed. Being drunk will affect the player's coordination ([[controls]]), both on foot and in a [[vehicles|vehicle]], and [[weapon]] accuracy.


==Distribution==
==Distribution==
The loot distributions can be found in the table(s) below.
<!--BOT FLAG|BeerCan|41.78.16-->
{{clear}}
<div class="togglebox theme-red">
    <div>BeerCan distribution
        <span class="mw-customtoggle-togglebox-BeerCan" 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-BeerCan">
    <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|Outfit_Biker}}
    | 1
    | 10.0
    |-
    | all
    | {{ll|fridge}}
    | 4
    | 1.0
    |-
    | all
    | {{ll|fridge}}
    | 4
    | 4.0
    |-
    | bandkitchen
    | {{ll|counter}}
    | 4
    | 10.0
    |-
    | bandkitchen
    | {{ll|counter}}
    | 4
    | 20.0
    |-
    | bandkitchen
    | {{ll|fridge}}
    | 4
    | 10.0
    |-
    | bandkitchen
    | {{ll|fridge}}
    | 4
    | 20.0
    |-
    | bar
    | {{ll|counter}}
    | 4
    | 20.0
    |-
    | bar
    | {{ll|counter}}
    | 4
    | 10.0
    |-
    | bar
    | {{ll|fridge}}
    | 4
    | 20.0
    |-
    | bar
    | {{ll|fridge}}
    | 4
    | 10.0
    |-
    | brewery
    | {{ll|crate}}
    | 4
    | 10.0
    |-
    | brewery
    | {{ll|crate}}
    | 4
    | 20.0
    |-
    | brewery
    | {{ll|crate}}
    | 4
    | 50.0
    |-
    | drugshack
    | {{ll|counter}}
    | 4
    | 20.0
    |-
    | drugshack
    | {{ll|counter}}
    | 4
    | 10.0
    |-
    | kitchen
    | {{ll|counter}}
    | 4
    | 2.0
    |-
    | liquorstore
    | {{ll|crate}}
    | 4
    | 10.0
    |-
    | liquorstore
    | {{ll|crate}}
    | 4
    | 20.0
    |}
</div>
    </div><div style="clear:both;"></div>
    </div></div><div class="toggle large mw-customtoggle-togglebox-BeerCan" title="{{int:show}}/{{int:hide}}"></div></div>
<!--END BOT FLAG|BeerCan|41.78.16-->
<!--BOT FLAG|BeerCanEmpty|41.78.16-->
{{clear}}
<div class="togglebox theme-red">
    <div>BeerCanEmpty distribution
        <span class="mw-customtoggle-togglebox-BeerCanEmpty" 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-BeerCanEmpty">
    <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|bin}}
    | 4
    | 2.0
    |-
    | bar
    | {{ll|bin}}
    | 4
    | 10.0
    |-
    | bar
    | {{ll|bin}}
    | 4
    | 20.0
    |-
    | motelroomoccupied
    | {{ll|bin}}
    | 4
    | 2.0
    |}
</div>
    </div><div style="clear:both;"></div>
    </div></div><div class="toggle large mw-customtoggle-togglebox-BeerCanEmpty" title="{{int:show}}/{{int:hide}}"></div></div>
<!--END BOT FLAG|BeerCanEmpty|41.78.16-->
Beer Can can be found in kitchen and bar [[Containers#Counters|counters]], or [[Containers#Desks|office desks]].
Beer Can can be found in kitchen and bar [[Containers#Counters|counters]], or [[Containers#Desks|office desks]].


== Code ==
==Code==
'''''From items_food.txt (Project Zomboid directory/media/scripts/)'''''
{{CodeBox
{{Retrieved|version=41|incver=65}}
| {{CodeSnip
<pre>    item BeerCan
  | lang = java
  | line = true
  | start = 3523
  | source = items_food.txt
  | retrieved = true
  | version = 41.78.16
  | code =
item BeerCan
{
{
    DisplayCategory = Food,
DisplayName = Beer Can,
HungerChange = -8,
DisplayCategory = Food,
Weight = 0.3,
Type = Food,
AlwaysWelcomeGift = TRUE,
Weight = 0.3,
Type = Food,
Icon = BeerCan,
UnhappyChange = -15,
EvolvedRecipe = Soup:8;Stew:8;Beer:9;Beer2:9,
ThirstChange = -13,
FoodType = Beer,
DisplayName = Beer Can,
Alcoholic = TRUE,
ReplaceOnUse = BeerCanEmpty,
CantBeFrozen = TRUE,
Alcoholic = TRUE,
EatType = popcan,
Icon = BeerCan,
Packaged = TRUE,
ReplaceOnUse = BeerCanEmpty,
HungerChange = -8,
ThirstChange = -13,
UnhappyChange = -15,
Calories = 160,
Carbohydrates = 39,
Lipids = 0,
Proteins = 0,
CustomContextMenu = Drink,
CustomContextMenu = Drink,
CustomEatSound = DrinkingFromCan,
CustomEatSound = DrinkingFromCan,
        Carbohydrates = 39,
StaticModel = BeerCan,
        Proteins = 0,
WorldStaticModel = BeerCan_Ground,
        Lipids = 0,
Tags = LowAlcohol;HasMetal,
        Calories = 160,
EvolvedRecipeName = Beer,
        Packaged = TRUE,
 
        CantBeFrozen = TRUE,
}
        StaticModel = BeerCan,
}}
        EatType = popcan,
}}
        WorldStaticModel = BeerCan_Ground,
}</pre>


==See also==
==See also==
*[[Chardonnay]]
*[[Beer Bottle]]
*[[Red Wine]]
*[[Red Wine]]
*[[Beer Bottle]]
*[[White Wine]]
 
{{Navbox items|drinks}}
 


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

Latest revision as of 02:27, 25 April 2024

Project ZomboidItemsFoodDrinksBeer Can
Spiffo controlyourself.png
This page was last updated for an older version (41.65).
The current stable version is 41.78.16, released 2022-12-12, so information on this page may be inaccurate. Help get this page updated by adding any missing content. [edit]
Please update the version after updating the page.
Beer Can
BeerCan Model.png
General
Category
Food
Encumbrance
Moodle Icon HeavyLoad.png
0.3
Properties
Packaged
True
Nutrition
HungerMoodle Icon Hungry.png
-8
ThirstMoodle Icon Thirsty.png
-13
CaloriesCalories
160
CarbohydratesCarbohydrates
39
ProteinsProteins
0
FatFat
0
Effect
UnhappinessMoodle Icon Unhappy.png
-15
Sterilize powerDisinfection
?
Technical
Item ID
Base.BeerCan

Beer Can, is an alcoholic non-perishable food item.

Usage

Alcohol

Beer Can is an alcoholic beverage, and will therefore increase the player's drunkenness as it is consumed. Being drunk will affect the player's coordination (controls), both on foot and in a vehicle, and weapon accuracy.

Distribution

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

BeerCan distribution Show / Hide
Containers
Building / Room Container Rolls Chance
all Outfit_Biker 1 10.0
all fridge 4 1.0
all fridge 4 4.0
bandkitchen counter 4 10.0
bandkitchen counter 4 20.0
bandkitchen fridge 4 10.0
bandkitchen fridge 4 20.0
bar counter 4 20.0
bar counter 4 10.0
bar fridge 4 20.0
bar fridge 4 10.0
brewery crate 4 10.0
brewery crate 4 20.0
brewery crate 4 50.0
drugshack counter 4 20.0
drugshack counter 4 10.0
kitchen counter 4 2.0
liquorstore crate 4 10.0
liquorstore crate 4 20.0
BeerCanEmpty distribution Show / Hide
Containers
Building / Room Container Rolls Chance
all bin 4 2.0
bar bin 4 10.0
bar bin 4 20.0
motelroomoccupied bin 4 2.0

Beer Can can be found in kitchen and bar counters, or office desks.

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 BeerCan
	{
		DisplayName = Beer Can,
		DisplayCategory = Food,
		Type = Food,
		Weight = 0.3,
		Icon = BeerCan,
		EvolvedRecipe = Soup:8;Stew:8;Beer:9;Beer2:9,
		FoodType = Beer,
		Alcoholic = TRUE,
		CantBeFrozen = TRUE,
		EatType = popcan,
		Packaged = TRUE,
		ReplaceOnUse = BeerCanEmpty,
		HungerChange = -8,
		ThirstChange = -13,
		UnhappyChange = -15,
		Calories = 160,
		Carbohydrates = 39,
		Lipids = 0,
		Proteins = 0,
		CustomContextMenu = Drink,
		CustomEatSound = DrinkingFromCan,
		StaticModel = BeerCan,
		WorldStaticModel = BeerCan_Ground,
		Tags = LowAlcohol;HasMetal,
		EvolvedRecipeName = Beer,

	}

See also