mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-30 08:35:52 -04:00
Don't adjust weapon rating according to weapon condition twice
This commit is contained in:
parent
2f44acafe2
commit
d15dcaff68
@ -79,7 +79,6 @@ namespace MWMechanics
|
|||||||
{
|
{
|
||||||
if (item.getClass().getItemHealth(item) == 0)
|
if (item.getClass().getItemHealth(item) == 0)
|
||||||
return 0.f;
|
return 0.f;
|
||||||
rating *= item.getClass().getItemHealth(item) / float(item.getClass().getItemMaxHealth(item));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (weapon->mData.mType == ESM::Weapon::MarksmanBow)
|
if (weapon->mData.mType == ESM::Weapon::MarksmanBow)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user