(d34fb2097) Major refactoring: - Replace custom logic regarding subobjectives with generic logic. - Ensure that all the objectives follow the same logic, reduce duplicate code where possible.

This commit is contained in:
Joonas Rikkonen
2019-05-16 05:32:56 +03:00
parent 05270aa165
commit a3db11876b
23 changed files with 555 additions and 865 deletions
@@ -7,6 +7,7 @@ using System.Linq;
namespace Barotrauma
{
// TODO: refactor
class AIObjectiveRescue : AIObjective
{
public override string DebugTag => "rescue";
@@ -93,6 +94,7 @@ namespace Barotrauma
}
}
// TODO: remove and replace with the priority system
protected override bool ShouldInterruptSubObjective(AIObjective subObjective)
{
if (subObjective is AIObjectiveFindSafety)