Cigarettes

From PZwiki
Revision as of 12:15, 10 April 2022 by VaileasysBot (talk | contribs) ([BOT] duplicate file fix, replaced: Cigarettes.png → IckySticks.png)
Cigarettes
Cigarettes
Cigarettes
General
Category Item
Encumbrance
Heavy Load
0.005
Function Reduce Stress
Effect
Stress
Stress
-5
Technical details
Item ID Base.Cigarettes

Cigarettes are a consumable item.

Usage

A lighter or matches are required to smoke a cigarette.

Effect

Cigarettes can be used to reduce some stress of the player in exchange for causing some sickness.

If the player has the smoker trait, they will require having a regular cigarette, else they'll start to gain stress and eventually unhappiness. By having a smoke, they will receive a stress relief bonus (greater than without the trait).

Farming

Cigarettes can be used to make insecticide spray to combat pest flies.

See Plant Health, Diseases and Cures

The farmer profession or gardener trait are required to craft insecticide.

Product XP gained Skill(s) Recipe Ingredient 1 Ingredient 2 Ingredient 3
Insecticide Spray
Insecticide Spray x1
none The Farming Magazine Gardening Spray Can
Gardening Spray Can x1
Water
Water (3 untis)
(consumed)
Cigarettes
Cigarettes x5
(consumed)


Distribution

Cigarettes can be found in stacks of twenty at a time, and they may be found in counters, crates, desks, garbage bins and zombies.

Code

From items.txt (Project Zomboid directory/media/scripts/)

	
    item Cigarettes
		Count				= 20,
		HungerChange			= 0,
		Weight				= 0.005,
		RequireInHandOrInventory	= Lighter/Matches,
		Type				= Food,
		DisplayName			= Cigarettes,
		StressChange			= -5,
		Icon				= IckySticks,
		CustomContextMenu 		= Smoke,
		CantBeFrozen 			= TRUE,
		OnEat 				= OnEat_Cigarettes,
		CustomEatSound 			=

See also

Template:Navbox/Consumables