Client LuaCsForBarotrauma
ShipIssueWorkerSteer.cs
2 
3 namespace Barotrauma
4 {
6  {
7  // The AI could be set to steer automatically through a specialized job or autonomous objectives
8  // but the logic involved doesn't really allow that without some annoyingly specific changes
9  // hence the AI will command itself to steer if steering is not being taken care of or the target location is wrong
11  public override void CalculateImportanceSpecific()
12  {
14  if (TargetItemComponent is Powered { HasPower: false }) { return; }
15  if (TargetItem.Condition <= 0f) { return; }
16 
17  Importance = 70f;
18  }
19  }
20 }
ItemComponent TargetItemComponent
readonly ShipCommandManager shipCommandManager
ShipIssueWorkerSteer(ShipCommandManager shipCommandManager, Order order)