From af070c14dbb8f3e544917e7595a748c1d68a6cff Mon Sep 17 00:00:00 2001 From: Xian55 <367101+Xian55@users.noreply.github.com> Date: Fri, 11 Feb 2022 23:57:30 +0100 Subject: [PATCH] Core: CastingHandler: remove NpcNameFinder dep --- Core/Goals/CastingHandler.cs | 4 +--- Core/Goals/GoalFactory.cs | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Core/Goals/CastingHandler.cs b/Core/Goals/CastingHandler.cs index 9b1c602bc..f3e6e1468 100644 --- a/Core/Goals/CastingHandler.cs +++ b/Core/Goals/CastingHandler.cs @@ -18,7 +18,6 @@ public class CastingHandler private readonly ClassConfiguration classConfig; private readonly IPlayerDirection direction; - private readonly NpcNameFinder npcNameFinder; private readonly StopMoving stopMoving; private readonly KeyAction defaultKeyAction = new KeyAction(); @@ -31,7 +30,7 @@ public class CastingHandler private const int MaxCastTimeMs = 15000; private const int MaxAirTimeMs = 10000; - public CastingHandler(ILogger logger, ConfigurableInput input, Wait wait, AddonReader addonReader, ClassConfiguration classConfig, IPlayerDirection direction, NpcNameFinder npcNameFinder, StopMoving stopMoving) + public CastingHandler(ILogger logger, ConfigurableInput input, Wait wait, AddonReader addonReader, ClassConfiguration classConfig, IPlayerDirection direction, StopMoving stopMoving) { this.logger = logger; this.input = input; @@ -42,7 +41,6 @@ public CastingHandler(ILogger logger, ConfigurableInput input, Wait wait, AddonR this.classConfig = classConfig; this.direction = direction; - this.npcNameFinder = npcNameFinder; this.stopMoving = stopMoving; } diff --git a/Core/Goals/GoalFactory.cs b/Core/Goals/GoalFactory.cs index bdcbe4b07..ff33bf8c8 100644 --- a/Core/Goals/GoalFactory.cs +++ b/Core/Goals/GoalFactory.cs @@ -48,7 +48,7 @@ public HashSet CreateGoals(ClassConfiguration classConfig, IBlacklist var playerDirection = new PlayerDirection(logger, input, addonReader.PlayerReader); var stopMoving = new StopMoving(input, addonReader.PlayerReader); - var castingHandler = new CastingHandler(logger, input, wait, addonReader, classConfig, playerDirection, npcNameFinder, stopMoving); + var castingHandler = new CastingHandler(logger, input, wait, addonReader, classConfig, playerDirection, stopMoving); var stuckDetector = new StuckDetector(logger, input, addonReader.PlayerReader, playerDirection, stopMoving); var combatUtil = new CombatUtil(logger, input, wait, addonReader.PlayerReader);