mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-04-01 13:36:42 +00:00
Fix hit chance calculation
This commit is contained in:
parent
6195062d72
commit
a569ae367e
1 changed files with 1 additions and 1 deletions
|
@ -343,7 +343,7 @@ namespace MWClass
|
||||||
mageffects.get(MWMechanics::EffectKey(ESM::MagicEffect::Blind)).mMagnitude;
|
mageffects.get(MWMechanics::EffectKey(ESM::MagicEffect::Blind)).mMagnitude;
|
||||||
hitchance -= othercls.getEvasion(victim);
|
hitchance -= othercls.getEvasion(victim);
|
||||||
|
|
||||||
if((::rand()/(RAND_MAX+1.0)) > hitchance)
|
if((::rand()/(RAND_MAX+1.0)) > hitchance/100.0f)
|
||||||
{
|
{
|
||||||
// Missed
|
// Missed
|
||||||
MWBase::SoundManager *sndMgr = MWBase::Environment::get().getSoundManager();
|
MWBase::SoundManager *sndMgr = MWBase::Environment::get().getSoundManager();
|
||||||
|
|
Loading…
Reference in a new issue