FixLeaks-command (still needs a sprite for the UI)

This commit is contained in:
Regalis11
2016-01-18 10:56:25 +02:00
parent eb20af622d
commit 19ec05c70e
3 changed files with 77 additions and 8 deletions
@@ -54,13 +54,6 @@ namespace Barotrauma
//sort objectives according to priority
objectives.Sort((x, y) => y.GetPriority(character).CompareTo(x.GetPriority(character)));
foreach (Gap gap in Gap.GapList)
{
if (gap.IsRoomToRoom || gap.ConnectedDoor != null || gap.Open<0.1f) continue;
AddObjective(new AIObjectiveFixLeak(gap, character));
}
}
public void DoCurrentObjective(float deltaTime)
@@ -87,6 +80,10 @@ namespace Barotrauma
case "wait":
currentObjective = new AIObjectiveGoTo(character.SimPosition, character, true);
break;
case "fixleaks":
case "fix leaks":
currentObjective = new AIObjectiveFixLeaks(character);
break;
default:
if (order.TargetItem == null) return;