v1.5.7.0 (Summer Update)

This commit is contained in:
Regalis11
2024-06-18 16:49:51 +03:00
parent 4a63dacbce
commit 230d1b6e78
263 changed files with 7792 additions and 2845 deletions
@@ -12,7 +12,7 @@ namespace Barotrauma
public override Identifier Identifier { get; set; } = "pump water".ToIdentifier();
public override bool KeepDivingGearOn => true;
public override bool AllowAutomaticItemUnequipping => true;
public override bool AllowWhileHandcuffed => false;
protected override bool AllowWhileHandcuffed => false;
private List<Pump> pumpList;
@@ -25,7 +25,7 @@ namespace Barotrauma
base.FindTargets();
}
protected override bool Filter(Pump pump)
protected override bool IsValidTarget(Pump pump)
{
if (pump?.Item == null || pump.Item.Removed) { return false; }
if (pump.Item.IgnoreByAI(character)) { return false; }
@@ -62,7 +62,7 @@ namespace Barotrauma
return pumpList;
}
protected override float TargetEvaluation()
protected override float GetTargetPriority()
{
if (Targets.None()) { return 0; }
if (Option == "stoppumping")
@@ -90,7 +90,6 @@ namespace Barotrauma
protected override AIObjective ObjectiveConstructor(Pump pump)
=> new AIObjectiveOperateItem(pump, character, objectiveManager, Option, false)
{
IsLoop = false,
completionCondition = () => IsReady(pump)
};