mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-12 22:14:42 +00:00
Fix hand-to-hand health damage reduction
This commit is contained in:
parent
39507e3f0f
commit
3744850545
@ -448,7 +448,7 @@ namespace MWClass
|
||||
if(object.isEmpty())
|
||||
{
|
||||
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);
|
||||
}
|
||||
else if(ishealth)
|
||||
|
Loading…
x
Reference in New Issue
Block a user