(d7e59613a) Ignore broken items.

This commit is contained in:
Joonas Rikkonen
2019-05-16 05:16:47 +03:00
parent 6bdd0ab8c0
commit 6c777aa91e
11 changed files with 187 additions and 238 deletions
@@ -45,6 +45,7 @@ namespace Barotrauma
public override float GetPriority()
{
if (gotoObjective != null && !gotoObjective.CanBeCompleted) { return 0; }
if (component.Item.ConditionPercentage <= 0) { return 0; }
if (objectiveManager.CurrentOrder == this)
{
return AIObjectiveManager.OrderPriority;