Skip to content

Commit

Permalink
Added notification SFX volume
Browse files Browse the repository at this point in the history
  • Loading branch information
Jouca committed Jul 16, 2024
1 parent e0445b2 commit 6b2d25b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Notifications/EventsPush.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -864,8 +864,9 @@ bool EventsPush::init(sio::message::ptr const& data) {
nullptr
));

if (Mod::get()->getSettingValue<bool>("sfx") && type != 3 && type != 4) FMODAudioEngine::sharedEngine()->playEffect("crystal01.ogg");
if (Mod::get()->getSettingValue<bool>("sfx") && (type == 3 || type == 4)) FMODAudioEngine::sharedEngine()->playEffect("reward01.ogg");
auto volume = GameManager::get()->m_sfxVolume;
if (Mod::get()->getSettingValue<bool>("sfx") && type != 3 && type != 4) FMODAudioEngine::sharedEngine()->playEffect("crystal01.ogg", 1, 1, volume);
if (Mod::get()->getSettingValue<bool>("sfx") && (type == 3 || type == 4)) FMODAudioEngine::sharedEngine()->playEffect("reward01.ogg", 1, 1, volume);

return true;
}
Expand Down

0 comments on commit 6b2d25b

Please sign in to comment.