(95bf20e92) Disable watchman and mechanic variants for the build, because they are not yet quite there.

This commit is contained in:
Joonas Rikkonen
2019-05-16 06:17:11 +03:00
parent 5d38344efc
commit 306e3575a8
23 changed files with 452 additions and 176 deletions
@@ -1,5 +1,4 @@
using System;
using System.Collections.Generic;
using System.Collections.Generic;
using System.Linq;
using Barotrauma.Extensions;
using Microsoft.Xna.Framework;
@@ -88,7 +87,7 @@ namespace Barotrauma
}
}
// the timer is set between 1 and 10 seconds, depending on the priority modifier and a random +-25%
// the timer is set between 1 and 10 seconds, depending on the priority
private float SetTargetUpdateTimer() => targetUpdateTimer = 1 / MathHelper.Clamp(PriorityModifier * Rand.Range(0.75f, 1.25f), 0.1f, 1);
public override void Reset()
@@ -159,18 +158,13 @@ namespace Barotrauma
if (!Objectives.TryGetValue(target, out AIObjective objective))
{
objective = ObjectiveConstructor(target);
objective.Completed += () => OnObjectiveCompleted(objective, target);
objective.Completed += () => ReportedTargets.Remove(target);
Objectives.Add(target, objective);
if (!subObjectives.Contains(objective))
{
subObjectives.Add(objective);
}
AddSubObjective(objective);
}
}
}
protected abstract void OnObjectiveCompleted(AIObjective objective, T target);
/// <summary>
/// List of all possible items of the specified type. Used for filtering the removed objectives.
/// </summary>