Beer Can

From PZwiki
Revision as of 02:52, 12 March 2022 by Vaileasys (talk | contribs) (added item model)
Beer Can
Beer Can
Beer Can
General
Category Food
Encumbrance
Heavy Load
0.3
Can't be frozen True
Packaged True
Nutrition
Hunger
Hunger
-8
Thirst
Thirst
-13
Calories
Calories
160
Carbohydrates
Carbohydrates
39
Proteins
Proteins
0
Fat
Fat
0
Effect
Unhappiness
Unhappiness
-15
Alcohol
Drunk
?
Technical details
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

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

Code

From items_food.txt (Project Zomboid directory/media/scripts/) Retrieved: Build 41.65

    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

Template:Navbox/Consumables