Don't adjust weapon rating according to weapon condition twice

pull/469/head
Capostrophic 7 years ago committed by GitHub
parent 2f44acafe2
commit d15dcaff68
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -79,7 +79,6 @@ namespace MWMechanics
{
if (item.getClass().getItemHealth(item) == 0)
return 0.f;
rating *= item.getClass().getItemHealth(item) / float(item.getClass().getItemMaxHealth(item));
}
if (weapon->mData.mType == ESM::Weapon::MarksmanBow)

Loading…
Cancel
Save