Cigarettes: Difference between revisions

From PZwiki
m (clean up, replaced: wikitable → pztable)
(added header template, and new infobox, reorganised content)
Line 1: Line 1:
__NOTOC__
{{languages}}
{{languages|Cigarettes}}
{{header|The Game World|Items|Consumables|Medical Items|type=Medical|version=Version 40|incver=43}}
<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 food
<div style="float: right;background: #C3E4ED;border: 1px solid #9AC0CD; margin: -30pt -10.5pt">    '''Page Updated @ Version: 39.50'''    </div><!-- Code for Version Tag at top -->
|display_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]] -> [[Cigarettes]]   </div><!-- Code for Navigation Bar at top, special blank char's before '''Navigation''' to give space -->
|name_colour=Medical
{{Medical
|name_text_colour=Medical
|image = Cigarettes_120px.png
|image=Cigarettes_120px.png
|primaryuse= Reduce Stress (Sickness Penalty)
<!--GENERAL-->
|stress = -5
|category=Item
|unhappiness = 0.0
|weight=0.005
|bandagepower = 0.0
|function=Reduce [[Moodles#Stressed|Stress]]
|alcoholpower = 0.0
<!--EFFECT-->
|weight = 0.005
|stress_change=-5
}}
<!--TECHNICAL DETAILS-->
|class_name=Base.Cigarettes
}}'''Cigarettes''' are a consumable [[items|item]].


'''Cigarettes''' are consumable [[items]] which reduce the [[Moodles#Stress|stress]] of the [[player]] in the exchange for causing some [[Moodles#Sick|sickness]]. Cigarettes spawn in stacks of twenty at a time, and they may be found in [[Containers#Counters|counters]], [[Containers#Wooden Crate|crates]], [[Containers#Desks|desks]], [[Containers#Bins|garbage cans]] and [[Containers#Corpses|zombies]].
==Usage==
===Effect===
Cigarettes can be used to reduce some [[Moodles#Stress|stress]] of the [[player]] in exchange for causing some [[Moodles#Sick|sickness]].  


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 [[Moodles#Unhappiness|unhappiness]]. By having a smoke, they will receive a stress relief bonus (greater than without the trait).  
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 [[Moodles#Unhappiness|unhappiness]]. By having a smoke, they will receive a stress relief bonus (greater than without the trait).  


Cigarettes can be used to make [[Insecticide Spray|insecticide spray]] to combat [[Farming#Plant Diseases|pest flies]] in your garden - see [[Farming Guide#Plant Health.2C Diseases and Cures|Plant Health, Diseases and Cures]].
===Farming===
Cigarettes can be used to make [[Insecticide Spray|insecticide spray]] to combat [[Farming#Plant Diseases|pest flies]].
:''See [[Farming Guide#Plant Health.2C Diseases and Cures|Plant Health, Diseases and Cures]]''


As of [[Build 35#IWBUMS Build 35.22|build 35.22]], cigarettes weigh 0.005 each (meaning 20 cigarettes weigh 0.1).
== Effects ==
As of [[Build 35#IWBUMS Build 35.16|build 35.16]], cigarettes reduce stress by 5, however also causing some sickness.
== Farming ==
The [[Professions#Farmer|farmer profession]] or [[Traits#Hobbies|gardener trait]] are required to craft insecticide.
The [[Professions#Farmer|farmer profession]] or [[Traits#Hobbies|gardener trait]] are required to craft insecticide.
{| class="pztable sortable" style="text-align:center;"  
{| class="pztable sortable" style="text-align:center;"  
Line 38: Line 35:
{{RecipeLookup|5017}}
{{RecipeLookup|5017}}
|}
|}
<br />


== Code ==
==Distribution==
Cigarettes can be found in stacks of twenty at a time, and they may be found in [[Containers#Counters|counters]], [[Containers#Wooden Crate|crates]], [[Containers#Desks|desks]], [[Containers#Bins|garbage bins]] and [[Containers#Corpses|zombies]].
 
==Code==
'''''From items.txt (Project Zomboid directory/media/scripts/)'''''
'''''From items.txt (Project Zomboid directory/media/scripts/)'''''
<nowiki>
<pre>
     item Cigarettes
     item Cigarettes
Count = 20,
Count = 20,
Line 56: Line 55:
OnEat = OnEat_Cigarettes,
OnEat = OnEat_Cigarettes,
CustomEatSound =
CustomEatSound =
</nowiki>
</pre>
== Future ==
{{Notice|Unconfirmed}}
It is speculated that in a future version, the player character may become addicted to cigarettes if used too often.
<br><small>*'''''This is now unlikely since the addition of the smoker trait in Build 35, along with cigarettes causing sickness if player does not have the trait'''''*</small>
 
 


== See also ==
==See also==
* [[Traits]]
* [[Traits]]
* [[Farming]]
* [[Farming]]
Line 72: Line 65:


{{Navbox/Consumables}}
{{Navbox/Consumables}}
[[Category:Consumables]]
[[Category:Medical Items]]
[[Category:Items]]

Revision as of 13:17, 29 September 2019

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

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.

Output Ingredients Description Level












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