Quit Smoking
О материале
«Quit Smoking» — материал мастерской Project Zomboid. Карты, транспорт, оружие и моды для выживания. Данные Steam, описание автора и ссылка для установки через подписку. Совместимость редакцией не проверена.
Описание автора
Allows you to eventually lose the smoker trait over time from abstaining from cigarettes. The chance to quit increases as you approach 4 weeks. If you were a smoker, quit, and smoke again you will regain the smoker trait.
https://github.com/crispiboi/QuitSmoking
Update 2025-12-19: Backward compatibility fix for b41. 2025-12-17: Applied 42.13 API update and reduced log noise. Insert PR from nire-lisse on github for lucky fix 2025-01-01: B42 functional. 2020-12-22: fixed incremental operand issue and smoker trait not actually being removed. Added cross version compatibility. 2020-12-07: Fixed non-smoker gaining smoker trait bug. Made it more fair to quit as player approaches threshold. 2020-10-01: Fixed permanent stress bug
According to a LLM Monte Carlo simultion of 600,000 trials the odds are as follows: If your character is unlucky, you will quit in about 7.3 weeks (~51 days). If your character is neither lucky nor unlucky, you will quit in about 5.4 weeks (~38 days). This is the only option that applies for B42.13+ If your character is lucky, you will quit in about 3.4 weeks (~24 days).
Mechanics:
- 42.13+: Lucky/Unlucky removed; uses CharacterTrait API and nicotine withdrawal stat (CharacterStat.NICOTINE_WITHDRAWAL).
- 42.12 and lower: Legacy trait API; Lucky/Unlucky adjust quit chance and incremental growth; stress uses setStressFromCigarettes. Every hour, a tiny incremental value is added to the chance to quit, which grows over time at a rate based on the chart above. Every day, a selection roll is done based on the chance to quit. This value is rounded to the nearest whole number. formula : selection = 100 - math.floor(playerdata.chancetoquit * 100); Every day, a magic number is rolled based on a range from 0 to the selection number. formula : magicnumber = ZombRand(0,selection); If selection and magic number match, you quit smoking.
You will hear the level up sound if you quit smoking.
Workshop ID: 2142069709 Mod ID: QuitSmoking Mod ID: QuitSmoking Mod ID: QuitSmoking
Как установить и запустить
Откройте оригинальную страницу в Steam Workshop, проверьте версию игры, зависимости и порядок загрузки в описании автора. Нажмите «Подписаться» и дождитесь загрузки Steam. Включите материал в меню модификаций или контента игры, если это требуется. Совместимость и запуск редакцией не проверены.