Allow Separate GrayCon Flee rate.

Added following Rules:

Combat:FleeGray - If true FleeGrayHPRatio will be used.
Combat:FleeGrayHPRatio - HP % when a Gray NPC begins to flee.
This commit is contained in:
Trust
2018-07-22 18:22:07 -04:00
parent f15ba46c24
commit 6b02d50a8c
5 changed files with 83 additions and 48 deletions
+1 -1
View File
@@ -1414,7 +1414,7 @@ void Merc::AI_Process() {
if(DivineAura())
return;
int hateCount = entity_list.GetHatedCount(this, nullptr);
int hateCount = entity_list.GetHatedCount(this, nullptr, false);
if(GetHatedCount() < hateCount) {
SetHatedCount(hateCount);