From 7db0734be035f651f465d1115391a519a62853b5 Mon Sep 17 00:00:00 2001 From: Rutherther Date: Sat, 31 Dec 2022 15:46:31 +0100 Subject: [PATCH] feat(combat): remove item selector from simple attack technique --- .../Techniques/SimpleAttackTechnique.cs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Extensions/NosSmooth.Extensions.Combat/Techniques/SimpleAttackTechnique.cs b/Extensions/NosSmooth.Extensions.Combat/Techniques/SimpleAttackTechnique.cs index 4b1d3723e0e94128d2417c6e8029c176f82430a7..de81bea9c7b18bf670da8854eea89b03d8ffd3b4 100644 --- a/Extensions/NosSmooth.Extensions.Combat/Techniques/SimpleAttackTechnique.cs +++ b/Extensions/NosSmooth.Extensions.Combat/Techniques/SimpleAttackTechnique.cs @@ -16,14 +16,13 @@ using Remora.Results; namespace NosSmooth.Extensions.Combat.Techniques; /// -/// A combat technique that will attack on the specified enemy. +/// A combat technique that will attack on the specified enemy, walk within range and use skill until the enemy is dead. /// public class SimpleAttackTechnique : ICombatTechnique { private readonly long _targetId; private readonly WalkManager _walkManager; private readonly ISkillSelector _skillSelector; - private readonly IItemSelector _itemSelector; private Skill? _currentSkill; private ILivingEntity? _target; @@ -34,19 +33,16 @@ public class SimpleAttackTechnique : ICombatTechnique /// The target entity id. /// The walk manager. /// The skill selector. - /// The item selector. public SimpleAttackTechnique ( long targetId, WalkManager walkManager, - ISkillSelector skillSelector, - IItemSelector itemSelector + ISkillSelector skillSelector ) { _targetId = targetId; _walkManager = walkManager; _skillSelector = skillSelector; - _itemSelector = itemSelector; } ///