(4efa46ffe) Limit the base priority due to devotion to 10.

This commit is contained in:
Joonas Rikkonen
2019-05-16 05:10:42 +03:00
parent cdeb6d40b3
commit 781fd44a8c
13 changed files with 113 additions and 78 deletions
@@ -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);
}