(c48cb7804) Change the operate item priority calculation so that it starts from 25 and increases with devotion and is multiplied by the priority modifier. Clamp the result.
This commit is contained in:
+2
-1
@@ -49,7 +49,8 @@ namespace Barotrauma
|
||||
{
|
||||
return AIObjectiveManager.OrderPriority;
|
||||
}
|
||||
return base.GetPriority(objectiveManager);
|
||||
float value = (Priority + (AIObjectiveManager.OrderPriority / 2)) * PriorityModifier;
|
||||
return MathHelper.Clamp(value, 0, AIObjectiveManager.OrderPriority);
|
||||
}
|
||||
|
||||
public AIObjectiveOperateItem(ItemComponent item, Character character, string option, bool requireEquip, Entity operateTarget = null, bool useController = false, float priorityModifier = 1) : base (character, option, priorityModifier)
|
||||
|
||||
Reference in New Issue
Block a user