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