(fbfb76aeb) Implement automatic extinguishing. TODO: should use the AIObjectiveLoop class.

This commit is contained in:
Joonas Rikkonen
2019-05-16 05:13:21 +03:00
parent ab2ca90d08
commit 7fb7c13198
14 changed files with 156 additions and 68 deletions
@@ -277,7 +277,7 @@ namespace Barotrauma
Priority = MathHelper.Clamp(Priority, 0, 100);
if (divingGearObjective != null && !divingGearObjective.IsCompleted() && divingGearObjective.CanBeCompleted)
{
Priority = Math.Max(Priority, Math.Min(AIObjectiveManager.OrderPriority + 10, 100));
Priority = Math.Max(Priority, Math.Min(AIObjectiveManager.OrderPriority + 20, 100));
}
}
}