(40f4f67f8) Further changes to the calculations.
This commit is contained in:
+2
-1
@@ -25,7 +25,8 @@ namespace Barotrauma
|
||||
return AIObjectiveManager.OrderPriority;
|
||||
}
|
||||
float basePriority = MathHelper.Clamp(Priority, 0, 10);
|
||||
float max = MathHelper.Min(AIObjectiveManager.OrderPriority + 20, 100);
|
||||
float maxMultiplier = MathHelper.Min(PriorityModifier, 1);
|
||||
float max = MathHelper.Min((AIObjectiveManager.OrderPriority + 20) * maxMultiplier, 90);
|
||||
return MathHelper.Clamp(basePriority + fireCount * 20, 0, max);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user