(900eddc26) Take the priority modifier in account when calculating the priority, not the max value.
This commit is contained in:
@@ -39,10 +39,9 @@ namespace Barotrauma
|
||||
public override float GetPriority(AIObjectiveManager objectiveManager)
|
||||
{
|
||||
if (leak.Open == 0.0f) { return 0.0f; }
|
||||
float priority = AIObjectiveFixLeaks.GetLeakSeverity(leak);
|
||||
float maxMultiplier = MathHelper.Min(PriorityModifier, 1);
|
||||
float max = MathHelper.Min((AIObjectiveManager.OrderPriority - 1) * maxMultiplier, 90);
|
||||
return MathHelper.Clamp(Priority + priority, 0, max);
|
||||
float severity = AIObjectiveFixLeaks.GetLeakSeverity(leak);
|
||||
float max = MathHelper.Min((AIObjectiveManager.OrderPriority - 1), 90);
|
||||
return MathHelper.Clamp(Priority + severity * PriorityModifier, 0, max);
|
||||
}
|
||||
|
||||
public override bool IsDuplicate(AIObjective otherObjective)
|
||||
|
||||
Reference in New Issue
Block a user