mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-29 08:00:56 -04:00
Combat AI: take ranged weapon speed in account
This commit is contained in:
parent
62f6f174cf
commit
6f4f6a155f
@ -119,7 +119,7 @@ namespace MWMechanics
|
|||||||
|
|
||||||
rating *= getHitChance(actor, enemy, value) / 100.f;
|
rating *= getHitChance(actor, enemy, value) / 100.f;
|
||||||
|
|
||||||
if (weapon->mData.mType < ESM::Weapon::MarksmanBow)
|
if (weapon->mData.mType < ESM::Weapon::Arrow)
|
||||||
rating *= weapon->mData.mSpeed;
|
rating *= weapon->mData.mSpeed;
|
||||||
|
|
||||||
return rating * ratingMult;
|
return rating * ratingMult;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user