Skip to content

Commit

Permalink
Make Max Pull Duration a constant
Browse files Browse the repository at this point in the history
  • Loading branch information
lionaneesh authored Dec 3, 2024
1 parent 72dfa36 commit 546b27a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Core/Goals/PullTargetGoal.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public sealed class PullTargetGoal : GoapGoal, IGoapEventListener
public override float Cost => 7f;

private const int AcquireTargetTimeMs = 5000;

private const int MAX_PULL_DURATION = 15_000;
private readonly ILogger<PullTargetGoal> logger;
private readonly ConfigurableInput input;
private readonly ClassConfiguration classConfig;
Expand Down Expand Up @@ -144,7 +144,7 @@ public override void Update()
return;
}

if (PullDurationMs > 15_000)
if (PullDurationMs > MAX_PULL_DURATION)
{
input.PressClearTarget();
Log("Pull taking too long. Clear target and face away!");
Expand Down Expand Up @@ -289,4 +289,4 @@ private void Log(string text)
{
logger.LogInformation(text);
}
}
}

0 comments on commit 546b27a

Please sign in to comment.