Cigarettes: Difference between revisions
(PZ Updater automated execution(task: deploy entity fix, eid: 3bd1d128a9cb4070861baf250e7a2c68)) |
No edit summary |
||
Line 10: | Line 10: | ||
| alternate_name = Cigarettes | | alternate_name = Cigarettes | ||
| alternate_link = | | alternate_link = | ||
<!--GENERAL--> | |||
|category=Item | |category=Item | ||
|weight=0.005 | |weight=0.005 | ||
|function=Reduce [[Moodles#Stressed|Stress]] | |function=Reduce [[Moodles#Stressed|Stress]] | ||
<!--EFFECT--> | |||
|stress_change=-5 | |stress_change=-5 | ||
<!--TECHNICAL DETAILS--> | |||
|class_name=Base.Cigarettes | |class_name=Base.Cigarettes | ||
}}'''Cigarettes''' are a consumable [[items|item]]. | }}'''Cigarettes''' are a consumable [[items|item]]. | ||
Line 39: | Line 39: | ||
! class="unsortable" | Description | ! class="unsortable" | Description | ||
! Level | ! Level | ||
{{RecipeLookup|5017}} | |||
{{ | |||
|} | |} | ||
Line 58: | Line 47: | ||
==Code== | ==Code== | ||
'''''From items.txt (Project Zomboid directory/media/scripts/)''''' | '''''From items.txt (Project Zomboid directory/media/scripts/)''''' | ||
<pre> | |||
item Cigarettes | item Cigarettes | ||
Count = 20, | Count = 20, | ||
Line 72: | Line 61: | ||
OnEat = OnEat_Cigarettes, | OnEat = OnEat_Cigarettes, | ||
CustomEatSound = | CustomEatSound = | ||
</pre> | |||
==See also== | ==See also== |
Revision as of 15:02, 21 March 2022
Cigarettes | ||
---|---|---|
| ||
General | ||
Category | Item | |
Encumbrance | 0.005 | |
Function | Reduce Stress | |
Effect | ||
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.
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 =