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
@@ -11,7 +11,7 @@ namespace Barotrauma
//Clear periodically, because we may ending up ignoring items when all deconstructors are full
protected override float IgnoreListClearInterval => 30;
public override bool AllowInFriendlySubs => true;
protected override bool AllowInFriendlySubs => true;
protected override int MaxTargets => 10;
@@ -47,7 +47,7 @@ namespace Barotrauma
checkedDeconstructorExists = false;
}
protected override float TargetEvaluation()
protected override float GetTargetPriority()
{
if (Targets.None()) { return 0; }
if (objectiveManager.IsOrder(this))
@@ -57,7 +57,7 @@ namespace Barotrauma
return AIObjectiveManager.RunPriority - 0.5f;
}
protected override bool Filter(Item target)
protected override bool IsValidTarget(Item target)
{
// If the target was selected as a valid target, we'll have to accept it so that the objective can be completed.
// The validity changes when a character picks the item up.