Cigarettes: Difference between revisions
(Updated templates, still needs a version bump) |
(Updated to 41.78.16) |
||
Line 1: | Line 1: | ||
{{Languages}}{{Header|The Game World|Items|Consumables|Medical Items|type=Medical|version=Version | {{Languages}}{{Header|The Game World|Items|Consumables|Medical Items|type=Medical|version=Version 41|incver=78.16}}{{Infobox food | ||
|display_name=Cigarettes | |display_name=Cigarettes | ||
|name_colour=Medical | |name_colour=Medical | ||
Line 32: | Line 32: | ||
:''See [[Farming Guide#Plant Health.2C Diseases and Cures|Plant Health, Diseases and Cures]]'' | :''See [[Farming Guide#Plant Health.2C Diseases and Cures|Plant Health, Diseases and Cures]]'' | ||
The [[ | The player needs to have read [[The Farming Magazine]] or have the [[Traits#Hobbies|gardening trait]] or [[Occupation#Farmer|farmer profession]] to craft insecticide. | ||
{{Crafting header|ing=3}} | {{Crafting header|ing=3}} | ||
{{Crafting farming|001|ing=3}} | {{Crafting farming|001|ing=3}} | ||
Line 42: | Line 42: | ||
==Code== | ==Code== | ||
'''''From items.txt (Project Zomboid directory/media/scripts/)''''' | '''''From items.txt (Project Zomboid directory/media/scripts/)''''' | ||
{{Retrieved|version=41|incver=78.16}} | |||
<pre> | <pre> | ||
item Cigarettes | |||
Count | { | ||
HungerChange | DisplayCategory = Junk, | ||
Weight | Count = 20, | ||
RequireInHandOrInventory = Lighter | HungerChange = 0, | ||
Type | Weight = 0.005, | ||
DisplayName | RequireInHandOrInventory = Matches/Lighter, | ||
StressChange | Type = Food, | ||
Icon | DisplayName = Cigarettes, | ||
CustomContextMenu | StressChange = -5, | ||
CantBeFrozen | Icon = IckySticks, | ||
OnEat | CustomContextMenu = Smoke, | ||
CustomEatSound | CantBeFrozen = TRUE, | ||
OnEat = OnEat_Cigarettes, | |||
StaticModel = Cigarette, | |||
EatType = Cigarettes, | |||
WorldStaticModel = CigarettePack_Ground, | |||
CustomEatSound = , | |||
} | |||
</pre> | </pre> | ||
Revision as of 23:06, 4 April 2023
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).
Also reduces Unhappiness by -10 if the player has the Smoker negative trait (ten smokes will fully cure unhappiness).
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 | XP gained | Skill(s) | Recipe | Ingredient 1 | Ingredient 2 | Ingredient 3 |
---|---|---|---|---|---|---|
Insecticide Spray |
0 XP | none | OR |
Gardening Spray Can (Empty) (consumed) |
Water (3 units) (consumed) |
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/) 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 = , }