mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-29 21:45:32 +00:00
Merge pull request #1832
This commit is contained in:
commit
0c507b74bc
1 changed files with 3 additions and 1 deletions
|
@ -12,8 +12,10 @@ float scaleDamage(float damage, const MWWorld::Ptr& attacker, const MWWorld::Ptr
|
|||
{
|
||||
const MWWorld::Ptr& player = MWMechanics::getPlayer();
|
||||
|
||||
// [-100, 100]
|
||||
// [-500, 500]
|
||||
int difficultySetting = Settings::Manager::getInt("difficulty", "Game");
|
||||
difficultySetting = std::min(difficultySetting, 500);
|
||||
difficultySetting = std::max(difficultySetting, -500);
|
||||
|
||||
static const float fDifficultyMult = MWBase::Environment::get().getWorld()->getStore().get<ESM::GameSetting>().find("fDifficultyMult")->getFloat();
|
||||
|
||||
|
|
Loading…
Reference in a new issue