From 1ae5bd19e1ab933cb27f609dd32569260e8e48b2 Mon Sep 17 00:00:00 2001 From: David Cernat Date: Sat, 10 Jun 2017 15:29:09 +0300 Subject: [PATCH] [Client] Don't set difficulty based on client settings --- apps/openmw/mwmechanics/difficultyscaling.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/apps/openmw/mwmechanics/difficultyscaling.cpp b/apps/openmw/mwmechanics/difficultyscaling.cpp index 693587eda..83dd41e52 100644 --- a/apps/openmw/mwmechanics/difficultyscaling.cpp +++ b/apps/openmw/mwmechanics/difficultyscaling.cpp @@ -15,6 +15,16 @@ float scaleDamage(float damage, const MWWorld::Ptr& attacker, const MWWorld::Ptr // [-100, 100] int difficultySetting = Settings::Manager::getInt("difficulty", "Game"); + /* + Start of tes3mp change (major) + + Don't set difficulty based on client settings + */ + difficultySetting = 0; + /* + End of tes3mp change (major) + */ + static const float fDifficultyMult = MWBase::Environment::get().getWorld()->getStore().get().find("fDifficultyMult")->getFloat(); float difficultyTerm = 0.01f * difficultySetting;