(32eb82193) Fix: bots not using the oxygen tanks found in their inventory when the find safety objective is active.
This commit is contained in:
+1
-2
@@ -122,9 +122,8 @@ namespace Barotrauma
|
|||||||
goToObjective = null;
|
goToObjective = null;
|
||||||
}
|
}
|
||||||
TryAddSubObjective(ref goToObjective,
|
TryAddSubObjective(ref goToObjective,
|
||||||
constructor: () => new AIObjectiveGoTo(currentSafeHull, character, objectiveManager, getDivingGearIfNeeded: false)
|
constructor: () => new AIObjectiveGoTo(currentSafeHull, character, objectiveManager, getDivingGearIfNeeded: true)
|
||||||
{
|
{
|
||||||
// If we need diving gear, we should already have it, if possible.
|
|
||||||
AllowGoingOutside = HumanAIController.HasDivingSuit(character)
|
AllowGoingOutside = HumanAIController.HasDivingSuit(character)
|
||||||
},
|
},
|
||||||
onAbandon: () => unreachable.Add(goToObjective.Target as Hull));
|
onAbandon: () => unreachable.Add(goToObjective.Target as Hull));
|
||||||
|
|||||||
Reference in New Issue
Block a user