forked from teamnwah/openmw-tes3coop
Fix hand-to-hand health damage reduction
This commit is contained in:
parent
39507e3f0f
commit
3744850545
1 changed files with 1 additions and 1 deletions
|
@ -448,7 +448,7 @@ namespace MWClass
|
||||||
if(object.isEmpty())
|
if(object.isEmpty())
|
||||||
{
|
{
|
||||||
if(ishealth)
|
if(ishealth)
|
||||||
damage /= getArmorRating(ptr);
|
damage /= std::min(1.0f + getArmorRating(ptr)/std::max(1.0f, damage), 4.0f);
|
||||||
sndMgr->playSound3D(ptr, "Hand To Hand Hit", 1.0f, 1.0f);
|
sndMgr->playSound3D(ptr, "Hand To Hand Hit", 1.0f, 1.0f);
|
||||||
}
|
}
|
||||||
else if(ishealth)
|
else if(ishealth)
|
||||||
|
|
Loading…
Reference in a new issue