muffin v6.16
This commit is contained in:
parent
29d735e936
commit
1a1e8d9042
4 changed files with 193 additions and 280 deletions
|
@ -59,31 +59,12 @@ internal sealed class QuestJournalUtils
|
|||
{
|
||||
return;
|
||||
}
|
||||
bool flag = _questFunctions.IsQuestComplete(questInfo.QuestId);
|
||||
bool flag2 = _questFunctions.IsQuestAccepted(questInfo.QuestId);
|
||||
bool flag3 = _questFunctions.IsReadyToAcceptQuest(questInfo.QuestId);
|
||||
using (ImRaii.Disabled(quest == null || flag || (!flag3 && !flag2)))
|
||||
using (ImRaii.Disabled(!_questFunctions.IsReadyToAcceptQuest(questInfo.QuestId)))
|
||||
{
|
||||
if (ImGui.MenuItem("Start as next quest"))
|
||||
{
|
||||
if (quest == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (flag2)
|
||||
{
|
||||
QuestProgressInfo questProgressInfo = _questFunctions.GetQuestProgressInfo(questInfo.QuestId);
|
||||
if (questProgressInfo != null)
|
||||
{
|
||||
_questController.SetStartedQuest(quest, questProgressInfo.Sequence);
|
||||
_questController.Start(label);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
_questController.SetNextQuest(quest);
|
||||
_questController.Start(label);
|
||||
}
|
||||
_questController.SetNextQuest(quest);
|
||||
_questController.Start(label);
|
||||
}
|
||||
}
|
||||
List<ElementId> incompletePrerequisiteQuests = GetIncompletePrerequisiteQuests(questInfo);
|
||||
|
@ -110,8 +91,8 @@ internal sealed class QuestJournalUtils
|
|||
ImGui.SetTooltip((incompletePrerequisiteQuests.Count == 1) ? "Add this quest to the priority list" : $"Add this quest and {incompletePrerequisiteQuests.Count - 1} required quest(s) to the priority list in completion order");
|
||||
}
|
||||
}
|
||||
bool flag4 = _commandManager.Commands.ContainsKey("/questinfo");
|
||||
using (ImRaii.Disabled(!(questInfo.QuestId is QuestId) || !flag4))
|
||||
bool flag = _commandManager.Commands.ContainsKey("/questinfo");
|
||||
using (ImRaii.Disabled(!(questInfo.QuestId is QuestId) || !flag))
|
||||
{
|
||||
if (ImGui.MenuItem("View in Quest Map"))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue