Project Zomboid

Project Zomboid

337 ratings
Smokers Delight 1.1 [41.77+]
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
7.468 MB
Sep 29, 2022 @ 2:42pm
Dec 11, 2022 @ 7:39am
3 Change Notes ( view )

Subscribe to download
Smokers Delight 1.1 [41.77+]

Description
Description
Mod adds cigars devided by 3 most common colours (From Claro the lightest and the weakest to Maduro the darkest and the strongest and Colorado in between) boxes with 10 cigars in each box included.

Stats
Maduro cigar -15 stress, +15 happines
Colorado cigar -15 stress, +10 happines
Claro cigar -10 stress, +10 happines

Updates:
Version 1.1
-Changed colorado and claro stats
-Fixed conflicts with other mods with SuburbanDestribution (probably)

Compability:
It's relatively compatable with any mod.
But badly works with mods that change spawn rates, so the amount of cigars\cigar boxes would stick to vanilla settings (rare/common/abundant/etc.)
Smoker mod doesn't add any new functionality to cigars nor crafting recipies.

Mod Pack integration:
if you're making a mod pack for single player or multplayer server you're free to add and tweak the original mod to your liking.

How to manually change spawn rates
In order to change spawn chances you need to do the following
1. Go to mod folder Steam/steamapps\workshop\content\108600\2869248721\mods\Smokers Delight
(If Project Zomboid installed on another HDD/SSD search for "steamapps" folder and start from there)
2. Open this file "Smokers Delight\media\lua\server\items\SDelight-Distributions.lua" (Make a copy as a backup file)
(You can open it with Notepad or Notepad++)
3. After you opened SDelight-Distributions.lua, you have to manually set the spawn chances (I'll show you how, there are not much to change).

Here's the example, let's say we have a hiking bag spawn chance

Bag_BigHikingBag = {
rolls = 5,
items = {
"SDelight.MaduroCigarSingle", 2,
},
},

The only number you need to change is that after item name "SDelight.MaduroCigarSingle" in this case
Here we have 2% spawn chance, you can change it to any number from 0 to 100 including 0.1, 0.2 and etc.
Not necessary to change but you can also change rolls number
("rolls = 5" means how much times spawn chance is checked)
So if we have 5 rolls with 100% spawn chance

Bag_BigHikingBag = {
rolls = 5,
items = {
"SDelight.MaduroCigarSingle", 100,
},
},

We will have 5 Maduro Cigars in a bag. Basicly the number of rolls difines the maximum amount of one item (but you probably never find the maximum amount since the percentage I'v set is 10% at most)
There is also these lines of code

table.insert(ProceduralDistributions["list"]["BarCounterGlasses"].items, "SDelight.MaduroCigarBox");
table.insert(ProceduralDistributions["list"]["BarCounterGlasses"].items, 5);

But here it's even simplier you have the only number and thats the percentage
After finishing edits just save the file. It's safe to continue play in your world\server from now on any NEW found container should have a new spawn chances you've set
Hope that was clear enough. (Don't delete any commas, dots, brackets)


Workshop ID: 2869248721
Mod ID: SDelight
88 Comments
tilarium Mar 13 @ 1:14am 
Follow-up: I just checked https://steamcommunity.com/sharedfiles/filedetails/?id=3154853514&searchtext=smoke+length and it does list this mod as compatible.
tilarium Mar 13 @ 1:12am 
The only problem with things like that is the game is limited to one action at a time. So while you're smoking for those 30 in game minutes, you literally can not do anything else. Not sure if the mods that effect smoking time length work with these or not but I imagine they would. Worth a shot at least.
mosman Mar 13 @ 12:48am 
I was happy because I could finally smoke a cigar and sad that the smoking time would end up being so short!
They should require 30 minutes of in-game time.
jkm Jan 3 @ 8:18am 
one of the greates albums of all time!!!
WanderSeth Nov 6, 2023 @ 12:27pm 
Error magnifier shows that, with unaltered spawn rates, I'm getting spawn errors. Haven't seen a single item from this mod in the natural spawning list. Probably a conflict, but still posting it here.
HighCastle Oct 4, 2023 @ 3:45am 
Can I add this mod mid-game?
Bit.Byte Sep 4, 2023 @ 10:16am 
75 AK47 Mags!?!?!? :O
High Voltage Aug 15, 2023 @ 4:38am 
Hi, I just got one question:
Are the stats of the cigars affected by the smoker trait (if yes how)?
Ghoma Aug 4, 2023 @ 11:07am 
hello, a question is this mod compatible with the compulsive smoking dog?
Mini Evilness Aug 3, 2023 @ 1:26pm 
Thank you so much!