Project Zomboid
Оценок: 89
True Music improves Mood
   
Наградить
В избранное
В избранном
Удалить
Размер файла
Добавлен
Изменён
106.907 KB
10 окт. 2023 г. в 13:36
7 ноя. 2023 г. в 9:45
Обновлений: 9 (просмотреть)

Подпишитесь, чтобы загрузить
True Music improves Mood

Описание
Music lowers stress, boredom and unhapiness. ~ now with 100% more sandbox options!
Fork of Poltergeist's mod with some new features.

The effects are triggered every 10 in game minutes while listening to True Music.
Adjust your settings as needed. Default balancing expects a 1 hour day.
Can be safely added/removed with existing saves.

Optional Modifiers:
- Boredom
- Happiness
- Stress
- Panic
- Fatigue
- Pain (Reduction only)

If you want to disable something, set it to zero.

If zomboid ever adds Morale/Sanity this will get an update too.

Workshop ID: 3048902085
Mod ID: TrueMusicMoodImprovement
Комментариев: 37
T I L T 21 июн в 16:42 
Could you please update this to fix the bug with the Smoker trait? Half of the people on our server run that trait and we'd love to use this mod, but it causes us to go through our cigarettes way too fast.
The Stellar Engineer 9 мая в 8:26 
Can confirm Shal's bug report! The mod only makes a check if noise is being played aloud. If youre using headphones it wont make a check until you make noise. Perhaps the mod could instead check if the player can hear it instead of if the player is making noise? Im not sure.
11 мар в 16:22 
god tier mod that improves immersion by 1000%. so good it should be in the base game
D R V A P O R 24 фев в 8:32 
works real nice. But doesn't work with the true music radio mod i don't think. will still work with tapes and vinyls tho
Shal 10 окт. 2024 г. в 12:29 
Are you using any other mods that reduce stress? I found the same issue with several others.
Baleur 10 окт. 2024 г. в 6:19 
Nope, applied the fix and im still getting max stress.
Baleur 9 окт. 2024 г. в 22:16 
Also waitting for smoker fix.
Shal 2 окт. 2024 г. в 22:01 
Also found a different bug in this mod: if you're listening to a music player with headphones, you don't seem to be creating any world sound, so this mod only triggers when your character does something else that makes noise. If you're just standing around listening to music from the player, or listening while you read, this mod has no effect. You'd need to shout every ten minutes to get it to make its check.
Zenith  [создатель] 2 окт. 2024 г. в 21:46 
You wonderful man. I'll look into applying this soon.
Shal 2 окт. 2024 г. в 21:23 
Nope, the bug is real. I've been experiencing the same issue with music maxing out stress, so I checked it out in debug mode. I figured out how to recreate the smoker stress spike bug running only this mod, its dependencies, and a music library mod, and how to fix it.

I'm not sure if it's a bug in the base game or just unexpected a badly named function, but when you use setStress(), you are actually setting the stress to the sum of the given stress value and the character's current stressFromCigarettes. So if the character has 0.5 stressFromCigarettes and you try to setStress to a value 0.1 lower than the current stress, you end up increasing it by 0.4 instead.

So you just need to change

stats:setStress(stats:getStress() - SandboxVars.TrueMusicMoodImprovement_stressMod)

to

stats:setStress(stats:getStress() - stats:getStressFromCigarettes() - SandboxVars.TrueMusicMoodImprovement_stressMod)