(69874bfe5) Fix bots loading only half of the target items in the contain item objective.

This commit is contained in:
Joonas Rikkonen
2019-05-16 06:52:46 +03:00
parent 1be99e4904
commit 2e3d3b2adf
13 changed files with 251 additions and 185 deletions
@@ -12,13 +12,15 @@ namespace Barotrauma
public override string DebugTag => "get item";
private readonly bool equip;
private readonly HashSet<Item> ignoredItems = new HashSet<Item>();
public HashSet<Item> ignoredItems = new HashSet<Item>();
public Func<Item, float> GetItemPriority;
//can be either tags or identifiers
private string[] itemIdentifiers;
public IEnumerable<string> Identifiers => itemIdentifiers;
private Item targetItem, moveToTarget;
public Item TargetItem => targetItem;
private int currSearchIndex;
public string[] ignoredContainerIdentifiers;
private AIObjectiveGoTo goToObjective;