muffin v7.5.13
This commit is contained in:
parent
911ed68baa
commit
acf3e3cb18
69 changed files with 2731 additions and 1425 deletions
|
|
@ -338,30 +338,27 @@ internal sealed class QuestSequenceComponent
|
|||
ImGui.Spacing();
|
||||
try
|
||||
{
|
||||
Lumina.Excel.Sheets.Quest? quest = _dataManager.GetExcelSheet<Lumina.Excel.Sheets.Quest>()?.GetRowOrDefault((uint)(questId.Value + 65536));
|
||||
if (!quest.HasValue)
|
||||
if (!(_dataManager.GetExcelSheet<Lumina.Excel.Sheets.Quest>()?.GetRowOrDefault((uint)(questId.Value + 65536))).HasValue)
|
||||
{
|
||||
DrawErrorState("Quest Not Found in Game Data", "Unable to load quest information from Lumina.");
|
||||
return;
|
||||
}
|
||||
List<int> list = (from result in quest.Value.TodoParams.Where((Lumina.Excel.Sheets.Quest.TodoParamsStruct todoParamsStruct) => todoParamsStruct.ToDoCompleteSeq > 0 && todoParamsStruct.ToDoCompleteSeq < byte.MaxValue).Select((Func<Lumina.Excel.Sheets.Quest.TodoParamsStruct, int>)((Lumina.Excel.Sheets.Quest.TodoParamsStruct todoParamsStruct) => todoParamsStruct.ToDoCompleteSeq)).Distinct()
|
||||
orderby result
|
||||
select result).ToList();
|
||||
if (list.Count == 0)
|
||||
List<int> completionSequences = GameQuestSequences.GetCompletionSequences(_dataManager, questId);
|
||||
if (completionSequences.Count == 0)
|
||||
{
|
||||
DrawErrorState("No Sequence Data Available", "This quest may not have traditional sequences.");
|
||||
return;
|
||||
}
|
||||
int num8 = list.Max();
|
||||
int num8 = completionSequences.Where((int num13) => num13 != 255).DefaultIfEmpty(0).Max();
|
||||
int num9 = num8 + 1;
|
||||
Questionable.Model.Quest quest2;
|
||||
bool flag = _questRegistry.TryGetQuest(questElementId, out quest2);
|
||||
Questionable.Model.Quest quest;
|
||||
bool flag = _questRegistry.TryGetQuest(questElementId, out quest);
|
||||
HashSet<int> hashSet = new HashSet<int>();
|
||||
Dictionary<int, (int, string)> dictionary = new Dictionary<int, (int, string)>();
|
||||
bool flag2 = false;
|
||||
if (flag && quest2 != null && quest2.Root.QuestSequence.Count > 0)
|
||||
if (flag && quest != null && quest.Root.QuestSequence.Count > 0)
|
||||
{
|
||||
foreach (QuestSequence item in quest2.Root.QuestSequence)
|
||||
foreach (QuestSequence item in quest.Root.QuestSequence)
|
||||
{
|
||||
if (item.Sequence == byte.MaxValue)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue