Beer Can: Difference between revisions
VaileasysBot (talk | contribs) (→top: New infobox upgrade - Food) |
(→Code: CodeBox update) |
||
Line 36: | Line 36: | ||
==Code== | ==Code== | ||
{{CodeBox | |||
| {{CodeSnip | |||
| lang = java | |||
| line = false | |||
| source = items_food.txt | |||
| retrieved = true | |||
| version = 41 | |||
| incver = 65 | |||
| code = | |||
item BeerCan | |||
{ | |||
DisplayCategory = Food, | |||
HungerChange = -8, | |||
Weight = 0.3, | |||
AlwaysWelcomeGift = TRUE, | |||
Type = Food, | |||
UnhappyChange = -15, | |||
ThirstChange = -13, | |||
DisplayName = Beer Can, | |||
ReplaceOnUse = BeerCanEmpty, | |||
Alcoholic = TRUE, | |||
Icon = BeerCan, | |||
CustomContextMenu = Drink, | |||
CustomEatSound = DrinkingFromCan, | |||
Carbohydrates = 39, | |||
Proteins = 0, | |||
Lipids = 0, | |||
Calories = 160, | |||
Packaged = TRUE, | |||
CantBeFrozen = TRUE, | |||
StaticModel = BeerCan, | |||
EatType = popcan, | |||
WorldStaticModel = BeerCan_Ground, | |||
} | |||
}} | |||
}} | |||
==See also== | ==See also== |
Revision as of 10:53, 31 January 2024
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
Beer Can can be found in kitchen and bar counters, or office desks.
Code
Source: ProjectZomboid\media\scripts\items_food.txt
item BeerCan
{
DisplayCategory = Food,
HungerChange = -8,
Weight = 0.3,
AlwaysWelcomeGift = TRUE,
Type = Food,
UnhappyChange = -15,
ThirstChange = -13,
DisplayName = Beer Can,
ReplaceOnUse = BeerCanEmpty,
Alcoholic = TRUE,
Icon = BeerCan,
CustomContextMenu = Drink,
CustomEatSound = DrinkingFromCan,
Carbohydrates = 39,
Proteins = 0,
Lipids = 0,
Calories = 160,
Packaged = TRUE,
CantBeFrozen = TRUE,
StaticModel = BeerCan,
EatType = popcan,
WorldStaticModel = BeerCan_Ground,
}