(4efa46ffe) Limit the base priority due to devotion to 10.
This commit is contained in:
+2
-1
@@ -49,7 +49,8 @@ namespace Barotrauma
|
||||
{
|
||||
return AIObjectiveManager.OrderPriority;
|
||||
}
|
||||
float value = (Priority + (AIObjectiveManager.OrderPriority / 2)) * PriorityModifier;
|
||||
float devotion = MathHelper.Min(10, Priority);
|
||||
float value = (devotion + (AIObjectiveManager.OrderPriority / 2)) * PriorityModifier;
|
||||
float maxMultiplier = MathHelper.Min(PriorityModifier, 1);
|
||||
float max = MathHelper.Min((AIObjectiveManager.OrderPriority - 1) * maxMultiplier, 90);
|
||||
return MathHelper.Clamp(value, 0, max);
|
||||
|
||||
Reference in New Issue
Block a user