From dcf054a7635b5c6fb9463f4ace4767c8ec31498e Mon Sep 17 00:00:00 2001 From: Liza Carvelli Date: Sat, 24 Aug 2024 00:14:45 +0200 Subject: [PATCH] Fix teleport cost estimation --- Questionable/Functions/QuestFunctions.cs | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/Questionable/Functions/QuestFunctions.cs b/Questionable/Functions/QuestFunctions.cs index 6c51b2e5e..6fb34dda4 100644 --- a/Questionable/Functions/QuestFunctions.cs +++ b/Questionable/Functions/QuestFunctions.cs @@ -12,7 +12,6 @@ using FFXIVClientStructs.FFXIV.Component.GUI; using LLib.GameData; using LLib.GameUI; using Lumina.Excel.GeneratedSheets; -using Microsoft.Extensions.Logging; using Questionable.Controller; using Questionable.Controller.Steps.Interactions; using Questionable.Data; @@ -32,7 +31,6 @@ internal sealed unsafe class QuestFunctions private readonly IDataManager _dataManager; private readonly IClientState _clientState; private readonly IGameGui _gameGui; - private readonly ILogger _logger; public QuestFunctions( QuestRegistry questRegistry, @@ -41,8 +39,7 @@ internal sealed unsafe class QuestFunctions Configuration configuration, IDataManager dataManager, IClientState clientState, - IGameGui gameGui, - ILogger logger) + IGameGui gameGui) { _questRegistry = questRegistry; _questData = questData; @@ -51,7 +48,6 @@ internal sealed unsafe class QuestFunctions _dataManager = dataManager; _clientState = clientState; _gameGui = gameGui; - _logger = logger; } public (ElementId? CurrentQuest, byte Sequence) GetCurrentQuest() @@ -309,13 +305,10 @@ internal sealed unsafe class QuestFunctions private static int EstimateTeleportCosts(Quest quest) { - /* if (quest.Info.Expansion == EExpansionVersion.ARealmReborn) return 300 * quest.AllSteps().Count(x => x.Step.AetheryteShortcut != null); else return 1000 * quest.AllSteps().Count(x => x.Step.AetheryteShortcut != null); - */ - return 0; } private List GetPriorityQuestsThatCanBeAccepted()