mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-04-02 12:06:41 +00:00
Don't clamp final actor fight rating to 0 (bug #5105)
Fix werewolf aggro distance
This commit is contained in:
parent
3d5d5d8b44
commit
ff133bd740
2 changed files with 3 additions and 2 deletions
|
@ -115,6 +115,7 @@
|
||||||
Bug #5092: NPCs with enchanted weapons play sound when out of charges
|
Bug #5092: NPCs with enchanted weapons play sound when out of charges
|
||||||
Bug #5093: Hand to hand sound plays on knocked out enemies
|
Bug #5093: Hand to hand sound plays on knocked out enemies
|
||||||
Bug #5099: Non-swimming enemies will enter water if player is water walking
|
Bug #5099: Non-swimming enemies will enter water if player is water walking
|
||||||
|
Bug #5105: NPCs start combat with werewolves from any distance
|
||||||
Bug #5110: ModRegion with a redundant numerical argument breaks script execution
|
Bug #5110: ModRegion with a redundant numerical argument breaks script execution
|
||||||
Feature #1774: Handle AvoidNode
|
Feature #1774: Handle AvoidNode
|
||||||
Feature #2229: Improve pathfinding AI
|
Feature #2229: Improve pathfinding AI
|
||||||
|
|
|
@ -1785,8 +1785,8 @@ namespace MWMechanics
|
||||||
if (ptr.getClass().isNpc())
|
if (ptr.getClass().isNpc())
|
||||||
disposition = getDerivedDisposition(ptr, true);
|
disposition = getDerivedDisposition(ptr, true);
|
||||||
|
|
||||||
int fight = std::max(0, ptr.getClass().getCreatureStats(ptr).getAiSetting(CreatureStats::AI_Fight).getModified()
|
int fight = ptr.getClass().getCreatureStats(ptr).getAiSetting(CreatureStats::AI_Fight).getModified()
|
||||||
+ static_cast<int>(getFightDistanceBias(ptr, target) + getFightDispositionBias(static_cast<float>(disposition))));
|
+ static_cast<int>(getFightDistanceBias(ptr, target) + getFightDispositionBias(static_cast<float>(disposition)));
|
||||||
|
|
||||||
if (ptr.getClass().isNpc() && target.getClass().isNpc())
|
if (ptr.getClass().isNpc() && target.getClass().isNpc())
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue