Fix teleport cost estimation
This commit is contained in:
parent
a4d79079ba
commit
778ec2fa4d
@ -12,7 +12,6 @@ using FFXIVClientStructs.FFXIV.Component.GUI;
|
|||||||
using LLib.GameData;
|
using LLib.GameData;
|
||||||
using LLib.GameUI;
|
using LLib.GameUI;
|
||||||
using Lumina.Excel.GeneratedSheets;
|
using Lumina.Excel.GeneratedSheets;
|
||||||
using Microsoft.Extensions.Logging;
|
|
||||||
using Questionable.Controller;
|
using Questionable.Controller;
|
||||||
using Questionable.Controller.Steps.Interactions;
|
using Questionable.Controller.Steps.Interactions;
|
||||||
using Questionable.Data;
|
using Questionable.Data;
|
||||||
@ -32,7 +31,6 @@ internal sealed unsafe class QuestFunctions
|
|||||||
private readonly IDataManager _dataManager;
|
private readonly IDataManager _dataManager;
|
||||||
private readonly IClientState _clientState;
|
private readonly IClientState _clientState;
|
||||||
private readonly IGameGui _gameGui;
|
private readonly IGameGui _gameGui;
|
||||||
private readonly ILogger<QuestFunctions> _logger;
|
|
||||||
|
|
||||||
public QuestFunctions(
|
public QuestFunctions(
|
||||||
QuestRegistry questRegistry,
|
QuestRegistry questRegistry,
|
||||||
@ -41,8 +39,7 @@ internal sealed unsafe class QuestFunctions
|
|||||||
Configuration configuration,
|
Configuration configuration,
|
||||||
IDataManager dataManager,
|
IDataManager dataManager,
|
||||||
IClientState clientState,
|
IClientState clientState,
|
||||||
IGameGui gameGui,
|
IGameGui gameGui)
|
||||||
ILogger<QuestFunctions> logger)
|
|
||||||
{
|
{
|
||||||
_questRegistry = questRegistry;
|
_questRegistry = questRegistry;
|
||||||
_questData = questData;
|
_questData = questData;
|
||||||
@ -51,7 +48,6 @@ internal sealed unsafe class QuestFunctions
|
|||||||
_dataManager = dataManager;
|
_dataManager = dataManager;
|
||||||
_clientState = clientState;
|
_clientState = clientState;
|
||||||
_gameGui = gameGui;
|
_gameGui = gameGui;
|
||||||
_logger = logger;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public (ElementId? CurrentQuest, byte Sequence) GetCurrentQuest()
|
public (ElementId? CurrentQuest, byte Sequence) GetCurrentQuest()
|
||||||
@ -309,13 +305,10 @@ internal sealed unsafe class QuestFunctions
|
|||||||
|
|
||||||
private static int EstimateTeleportCosts(Quest quest)
|
private static int EstimateTeleportCosts(Quest quest)
|
||||||
{
|
{
|
||||||
/*
|
|
||||||
if (quest.Info.Expansion == EExpansionVersion.ARealmReborn)
|
if (quest.Info.Expansion == EExpansionVersion.ARealmReborn)
|
||||||
return 300 * quest.AllSteps().Count(x => x.Step.AetheryteShortcut != null);
|
return 300 * quest.AllSteps().Count(x => x.Step.AetheryteShortcut != null);
|
||||||
else
|
else
|
||||||
return 1000 * quest.AllSteps().Count(x => x.Step.AetheryteShortcut != null);
|
return 1000 * quest.AllSteps().Count(x => x.Step.AetheryteShortcut != null);
|
||||||
*/
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private List<ElementId> GetPriorityQuestsThatCanBeAccepted()
|
private List<ElementId> GetPriorityQuestsThatCanBeAccepted()
|
||||||
|
Loading…
Reference in New Issue
Block a user