Cigarettes: Difference between revisions

From PZwiki
m (Added how the smoker trait affects cigarettes)
m (Simplified redundant links)
(42 intermediate revisions by 12 users not shown)
Line 1: Line 1:
__NOTOC__
{{Header|Project Zomboid|Items|Medical items}}
{{languages|Cigarettes}}
{{Page version|41.78.16}}
<div class="header" style="margin: 5px; align: right; background: #C3E4ED; padding: 13px; text-align: left; font-size: 100%; color:#000000; border: 1px solid #9AC0CD"> <!-- Code for Background Colour -->
{{Infobox item
<div style="float: right;background: #C3E4ED;border: 1px solid #9AC0CD; margin: -30pt -10.5pt">    '''Page Updated @ Version: 34.28'''    </div><!-- Code for Version Tag at top -->
|name=Cigarettes
<div style="float: left;background: #C3E4ED;border: 1px solid #9AC0CD; margin: -30pt -10.5pt">   '''Navigation''' - [[:Category:Main|Main Index]] -> [[:Category:The_Game_World|The Game World]] -> [[:Category:Items|Items]] -> [[:Category:Consumables|Consumables]] -> [[:Category:Medical Items|Medical Items]] -> [[{{PAGENAME}}]]   </div><!-- Code for Navigation Bar at top, special blank char's before '''Navigation''' to give space -->
|model=Cigarette_Model.png
{{Medical
|icon=IckySticks.png
|image = Cigarettes.png
|icon_name=Cigarettes
|primaryuse= Reduce Stress Level (Penalty Happiness)
<!--GENERAL-->
|stress = -25
|category=Item
|unhappiness = 10
|weight=0.005
|bandagepower = 0.0
|function=Reduce [[Stressed|Stress]]
|alcoholpower = 0.0
<!--EFFECT-->
|weight = 0.0
|stress_change=-5
<!--TECHNICAL DETAILS-->
|item_id=Base.Cigarettes
}}
}}
'''Cigarettes''' are a consumable [[Items|item]].


==Usage==
'''Cigarettes''' are consumable items which reduce the stress of the player character while causing unhappiness. Cigarettes spawn in stacks of twenty at a time, and they may be found in cabinets, crates, desks, garbage cans, zombies, and dumpsters.
A [[lighter]] or [[matches]] are required to smoke a cigarette.


As of build 36.4, the smoker trait negates the unhappiness effect but requires smoking periodically. Not smoking can cause anxiety and eventually unhappiness.  
===Effect===
Cigarettes can be used to reduce some [[stress]] of the [[player]] in exchange for causing some [[Sick|sickness]].


Cigarettes can also be used to make Insect Spray to combat Pest Flies in your garden - see [[Farming_Guide#Plant_Health.2C_Diseases_and_Cures|Plant Health, Diseases and Cures]].
If the player has the [[Traits#Negative|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 completely relieve all stress accumulated (only -5 without the trait).


As of the current build (34.28), cigarettes do not have any weight.
Cigarettes also reduce Unhappiness by -10 if the player has the [[Traits#Negative|Smoker]] negative trait (ten smokes will fully cure unhappiness).


== Effects ==
Ideally, one with the smoker trait should only smoke when stress is at "Agitated", as the previous level, "Anxious", does nothing, and cigarettes cure all stress (But only with the smoker trait).
Gives a penalty of 10 to [[Moodles#Unhappiness|unhappiness]] but reduces [[Moodles#Stress|stress]] by 25.  
<br><br><br>


== Farming ==
Smoking to the point of [[Sickness|Fever]] Can poison the player to [[Dead|Death]].


As of Build 32, you either need the gardening trait or the farmer profession to craft insecticide.
Outside of starting with the smoker trait, there is no way to get addicted to cigarettes when smoking them in-game.
{| class="wikitable sortable" style="text-align:center;"
|-
! Output
! class="unsortable" | Ingredients
! class="unsortable" | Description
! Level
{{RecipeLookup|5017}}
|}
<br />


== Code ==
===Farming===
<nowiki>
Cigarettes can be used to make [[Insecticide Spray|insecticide spray]] to combat [[Farming#Plant diseases|pest flies]].
item Cigarettes
Count = 20,
HungerChange = 0,
Weight = 0.0,
RequireInHandOrInventory = Lighter,
Type = Food,
UnhappyChange = 10,
DisplayName = Cigarettes,
StressChange = -25,
Icon = IckySticks,
CustomContextMenu = Smoke,
CantBeFrozen = TRUE,
CustomEatSound =
</nowiki>
== Future ==
{{Notice|Unconfirmed}}
It is speculated that in a future version, the player character may become addicted to cigarettes if used too often.  


{{Navbox/Consumables}}
The player needs to have read [[The Farming Magazine]] or have the [[Traits#Hobbies|gardening trait]] or [[Occupation#Farmer|farmer profession]] to craft insecticide.
[[Category:Consumables]]
{{Crafting/sandbox2
[[Category:Medical Items]]
|insecticide_spray
[[Category:Items]]
}}
[[Category:Version 34.28]]
 
==Distribution==
The loot distributions can be found in the table(s) below.
 
<!--BOT FLAG|Cigarettes|41.78.16-->
{{clear}}
<div class="togglebox theme-red">
    <div>Cigarettes distribution
        <span class="mw-customtoggle-togglebox-Cigarettes" 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-Cigarettes">
    <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
    |-
    | Not referenced
    | {{ll|PlankStashGun}}
    | 4
    | 8.0
    |-
    | all
    | {{ll|Bag_ALICEpack}}
    | 1
    | 1.0
    |-
    | all
    | {{ll|Bag_GolfBag}}
    | 1
    | 4.0
    |-
    | all
    | {{ll|Outfit_ArmyCamoDesert}}
    | 1
    | 8.0
    |-
    | all
    | {{ll|desk}}
    | 4
    | 8.0
    |-
    | all
    | {{ll|inventoryfemale}}
    | 1
    | 0.5
    |-
    | all
    | {{ll|other}}
    | 1
    | 8.0
    |-
    | all
    | {{ll|plankstash}}
    | 4
    | 8.0
    |-
    | bar
    | {{ll|counter}}
    | 4
    | 20.0
    |-
    | bar
    | {{ll|counter}}
    | 4
    | 10.0
    |-
    | bar
    | {{ll|crate}}
    | 4
    | 10.0
    |-
    | bar
    | {{ll|crate}}
    | 4
    | 20.0
    |-
    | bar
    | {{ll|crate}}
    | 4
    | 50.0
    |-
    | bedroom
    | {{ll|desk}}
    | 4
    | 8.0
    |-
    | bedroom
    | {{ll|plankstash}}
    | 4
    | 8.0
    |-
    | conveniencestore
    | {{ll|shelves}}
    | 4
    | 10.0
    |-
    | conveniencestore
    | {{ll|shelves}}
    | 4
    | 20.0
    |-
    | conveniencestore
    | {{ll|shelves}}
    | 4
    | 50.0
    |-
    | drugshack
    | {{ll|counter}}
    | 4
    | 8.0
    |-
    | drugshack
    | {{ll|counter}}
    | 4
    | 20.0
    |-
    | drugshack
    | {{ll|counter}}
    | 4
    | 10.0
    |-
    | empty
    | {{ll|crate}}
    | 4
    | 8.0
    |-
    | gasstorage
    | {{ll|counter}}
    | 4
    | 8.0
    |-
    | gasstorage
    | {{ll|crate}}
    | 4
    | 10.0
    |-
    | gasstorage
    | {{ll|crate}}
    | 4
    | 20.0
    |-
    | kitchen
    | {{ll|counter}}
    | 4
    | 8.0
    |-
    | mechanic
    | {{ll|wardrobe}}
    | 4
    | 8.0
    |-
    | office
    | {{ll|desk}}
    | 4
    | 8.0
    |-
    | prisoncells
    | {{ll|wardrobe}}
    | 4
    | 8.0
    |}
</div>
<div style="float:left;">
    {| class="wikitable theme-red" style="margin-right:15px; width:95%;"
    |+ {{ll|Vehicles}}
    ! Vehicle Type/Location
    ! Rolls
    ! Chance
    |-
    | AmbulanceGloveBox
    | 4
    | 8
    |-
    | CarpenterGloveBox
    | 4
    | 8
    |-
    | ConstructionWorkerGloveBox
    | 4
    | 8
    |-
    | DistilleryGloveBox
    | 4
    | 8
    |-
    | DoctorGloveBox
    | 4
    | 8
    |-
    | ElectricianGloveBox
    | 4
    | 8
    |-
    | FarmerGloveBox
    | 4
    | 8
    |-
    | FireGloveBox
    | 4
    | 8
    |-
    | FishermanGloveBox
    | 4
    | 8
    |-
    | FossoilGloveBox
    | 4
    | 8
    |-
    | GloveBox
    | 4
    | 8
    |-
    | GolfGloveBox
    | 4
    | 8
    |-
    | HeraldsGloveBox
    | 4
    | 8
    |-
    | HunterGloveBox
    | 4
    | 8
    |-
    | MassGenFacGloveBox
    | 4
    | 8
    |-
    | McCoyGloveBox
    | 4
    | 8
    |-
    | MetalWelderGloveBox
    | 4
    | 8
    |-
    | PainterGloveBox
    | 4
    | 8
    |-
    | PoliceGloveBox
    | 4
    | 8
    |-
    | PostalGloveBox
    | 4
    | 8
    |-
    | RadioGloveBox
    | 4
    | 8
    |-
    | RangerGloveBox
    | 4
    | 8
    |-
    | SpiffoGloveBox
    | 4
    | 8
    |-
    | SurvivalistGlovebox
    | 4
    | 8
    |-
    | TransitGloveBox
    | 4
    | 8
    |}
</div>
    </div><div style="clear:both;"></div>
    </div></div><div class="toggle large mw-customtoggle-togglebox-Cigarettes" title="{{int:show}}/{{int:hide}}"></div></div>
<!--END BOT FLAG|Cigarettes|41.78.16-->
 
==Code==
 
{{CodeBox
| {{CodeSnip
  | lang = java
  | line = true
  | start = 620
  | source = items.txt
  | retrieved = true
  | version = 41.78.16
  | code =
item Cigarettes
{
    DisplayCategory = Junk,
Count = 20,
HungerChange = 0,
Weight = 0.005,
RequireInHandOrInventory = Matches/Lighter,
Type = Food,
DisplayName = Cigarettes,
StressChange = -5,
Icon = IckySticks,
CustomContextMenu = Smoke,
CantBeFrozen = TRUE,
OnEat = OnEat_Cigarettes,
StaticModel = Cigarette,
EatType = Cigarettes,
WorldStaticModel = CigarettePack_Ground,
CustomEatSound = ,
}
}}
}}
 
==See also==
*[[Traits]]
*[[Farming]]
*[[Occupation]]
*[[First Aid]]
 
{{Navbox items|medical}}

Revision as of 11:17, 25 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]
Cigarettes
Cigarette Model.png
General
Category
Item
Encumbrance
Moodle Icon HeavyLoad.png
0.005
Function
Reduce Stress
Effect
StressMoodle Icon Stressed.png
-5
Technical
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 completely relieve all stress accumulated (only -5 without the trait).

Cigarettes also reduce Unhappiness by -10 if the player has the Smoker negative trait (ten smokes will fully cure unhappiness).

Ideally, one with the smoker trait should only smoke when stress is at "Agitated", as the previous level, "Anxious", does nothing, and cigarettes cure all stress (But only with the smoker trait).

Smoking to the point of Fever Can poison the player to Death.

Outside of starting with the smoker trait, there is no way to get addicted to cigarettes when smoking them in-game.

Farming

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

The player needs to have read The Farming Magazine or have the gardening trait or farmer profession to craft insecticide.

Product Ingredients Tools Requirements Workstation XP
TZ GardeningSprayCan.png
Insecticide Spray
TZ GardeningSprayCan.png Gardening Spray Can (Empty) ×1
WaterDrop.png Water ×3 unit(s)
IckySticks.png Cigarettes ×5
none
Profession farmer2.png
Farmer occupation
(or)
MagazineFish.png
The Farming Magazine
none none

Distribution

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

Cigarettes distribution Show / Hide
Containers
Building / Room Container Rolls Chance
Not referenced PlankStashGun 4 8.0
all Bag_ALICEpack 1 1.0
all Bag_GolfBag 1 4.0
all Outfit_ArmyCamoDesert 1 8.0
all desk 4 8.0
all inventoryfemale 1 0.5
all other 1 8.0
all plankstash 4 8.0
bar counter 4 20.0
bar counter 4 10.0
bar crate 4 10.0
bar crate 4 20.0
bar crate 4 50.0
bedroom desk 4 8.0
bedroom plankstash 4 8.0
conveniencestore shelves 4 10.0
conveniencestore shelves 4 20.0
conveniencestore shelves 4 50.0
drugshack counter 4 8.0
drugshack counter 4 20.0
drugshack counter 4 10.0
empty crate 4 8.0
gasstorage counter 4 8.0
gasstorage crate 4 10.0
gasstorage crate 4 20.0
kitchen counter 4 8.0
mechanic wardrobe 4 8.0
office desk 4 8.0
prisoncells wardrobe 4 8.0
Vehicles
Vehicle Type/Location Rolls Chance
AmbulanceGloveBox 4 8
CarpenterGloveBox 4 8
ConstructionWorkerGloveBox 4 8
DistilleryGloveBox 4 8
DoctorGloveBox 4 8
ElectricianGloveBox 4 8
FarmerGloveBox 4 8
FireGloveBox 4 8
FishermanGloveBox 4 8
FossoilGloveBox 4 8
GloveBox 4 8
GolfGloveBox 4 8
HeraldsGloveBox 4 8
HunterGloveBox 4 8
MassGenFacGloveBox 4 8
McCoyGloveBox 4 8
MetalWelderGloveBox 4 8
PainterGloveBox 4 8
PoliceGloveBox 4 8
PostalGloveBox 4 8
RadioGloveBox 4 8
RangerGloveBox 4 8
SpiffoGloveBox 4 8
SurvivalistGlovebox 4 8
TransitGloveBox 4 8

Code

Code icon.png Code snippet! This section contains source code from Project ZomboidShow / Hide

Source: ProjectZomboid\media\scripts\items.txt

Retrieved: Build 41.78.16
item Cigarettes
	{
	    DisplayCategory = Junk,
		Count	=	20,
		HungerChange	=	0,
		Weight	=	0.005,
		RequireInHandOrInventory	=	Matches/Lighter,
		Type	=	Food,
		DisplayName	=	Cigarettes,
		StressChange	=	-5,
		Icon	=	IckySticks,
		CustomContextMenu = Smoke,
		CantBeFrozen = TRUE,
		OnEat = OnEat_Cigarettes,
		StaticModel = Cigarette,
		EatType = Cigarettes,
		WorldStaticModel = CigarettePack_Ground,
		CustomEatSound = ,
	}

See also