Skip to content

Commit af070c1

Browse files
committed
Core: CastingHandler: remove NpcNameFinder dep
1 parent bd37f18 commit af070c1

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

Core/Goals/CastingHandler.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ public class CastingHandler
1818

1919
private readonly ClassConfiguration classConfig;
2020
private readonly IPlayerDirection direction;
21-
private readonly NpcNameFinder npcNameFinder;
2221
private readonly StopMoving stopMoving;
2322

2423
private readonly KeyAction defaultKeyAction = new KeyAction();
@@ -31,7 +30,7 @@ public class CastingHandler
3130
private const int MaxCastTimeMs = 15000;
3231
private const int MaxAirTimeMs = 10000;
3332

34-
public CastingHandler(ILogger logger, ConfigurableInput input, Wait wait, AddonReader addonReader, ClassConfiguration classConfig, IPlayerDirection direction, NpcNameFinder npcNameFinder, StopMoving stopMoving)
33+
public CastingHandler(ILogger logger, ConfigurableInput input, Wait wait, AddonReader addonReader, ClassConfiguration classConfig, IPlayerDirection direction, StopMoving stopMoving)
3534
{
3635
this.logger = logger;
3736
this.input = input;
@@ -42,7 +41,6 @@ public CastingHandler(ILogger logger, ConfigurableInput input, Wait wait, AddonR
4241

4342
this.classConfig = classConfig;
4443
this.direction = direction;
45-
this.npcNameFinder = npcNameFinder;
4644
this.stopMoving = stopMoving;
4745
}
4846

Core/Goals/GoalFactory.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public HashSet<GoapGoal> CreateGoals(ClassConfiguration classConfig, IBlacklist
4848
var playerDirection = new PlayerDirection(logger, input, addonReader.PlayerReader);
4949
var stopMoving = new StopMoving(input, addonReader.PlayerReader);
5050

51-
var castingHandler = new CastingHandler(logger, input, wait, addonReader, classConfig, playerDirection, npcNameFinder, stopMoving);
51+
var castingHandler = new CastingHandler(logger, input, wait, addonReader, classConfig, playerDirection, stopMoving);
5252

5353
var stuckDetector = new StuckDetector(logger, input, addonReader.PlayerReader, playerDirection, stopMoving);
5454
var combatUtil = new CombatUtil(logger, input, wait, addonReader.PlayerReader);

0 commit comments

Comments
 (0)