Smokers Delight 1.1 [Update 41]
Изображение 1 из 4. Материалы автора из Steam Workshop.
О материале
«Smokers Delight 1.1 [Update 41]» — материал мастерской Project Zomboid. Карты, транспорт, оружие и моды для выживания. Данные Steam, описание автора и ссылка для установки через подписку. Совместимость редакцией не проверена.
Описание автора
Update 42
Since new update 42 have cigars and cigar boxes this mode becomes kinda obsolete. It depends if cigars are a craftable item now. Maybe mod will be updated and with proper code when stable version of 42 is released.
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
- 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)
- 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++)
- 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
Как установить и запустить
Откройте оригинальную страницу в Steam Workshop, проверьте версию игры, зависимости и порядок загрузки в описании автора. Нажмите «Подписаться» и дождитесь загрузки Steam. Включите материал в меню модификаций или контента игры, если это требуется. Совместимость и запуск редакцией не проверены.