mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-16 08:42:23 +00:00
Fixes #1205: apparently creature and hand-to-hand (health) attacks should also level up armor skill (tested in vanilla)
This commit is contained in:
parent
61955111f1
commit
d08394bf78
@ -673,12 +673,7 @@ namespace MWClass
|
||||
else
|
||||
getCreatureStats(ptr).setHitRecovery(true); // Is this supposed to always occur?
|
||||
|
||||
if(object.isEmpty())
|
||||
{
|
||||
if(ishealth)
|
||||
damage /= std::min(1.0f + getArmorRating(ptr)/std::max(1.0f, damage), 4.0f);
|
||||
}
|
||||
else if(ishealth)
|
||||
{
|
||||
// Hit percentages:
|
||||
// cuirass = 30%
|
||||
|
Loading…
x
Reference in New Issue
Block a user