From 7b2473362e562ed7eaa26710c3fb4b18223532bc Mon Sep 17 00:00:00 2001 From: alydev Date: Thu, 9 Oct 2025 08:30:06 +1000 Subject: [PATCH] muffin v6.13 --- .../AssemblyQuestLoader.cs | 1839 +++++++++-------- .../QuestController.cs | 220 +- .../PluginConfigComponent.cs | 19 +- .../QuestJournalUtils.cs | 144 +- 4 files changed, 1244 insertions(+), 978 deletions(-) diff --git a/QuestPaths/Questionable.QuestPaths/AssemblyQuestLoader.cs b/QuestPaths/Questionable.QuestPaths/AssemblyQuestLoader.cs index 4931410..bb2249d 100644 --- a/QuestPaths/Questionable.QuestPaths/AssemblyQuestLoader.cs +++ b/QuestPaths/Questionable.QuestPaths/AssemblyQuestLoader.cs @@ -425413,7 +425413,22 @@ public static class AssemblyQuestLoader CollectionsMarshal.SetCount(list17, index2); span3 = CollectionsMarshal.AsSpan(list17); num2 = 0; - span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051195u, new Vector3(383.29138f, -154.50243f, -420.49292f), 1187); + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051195u, new Vector3(383.29138f, -154.50243f, -420.49292f), 1187) + { + AetheryteShortcut = EAetheryteLocation.UrqopachaWachunpelo, + SkipConditions = new SkipConditions + { + AetheryteShortcutIf = new SkipAetheryteCondition + { + NearPosition = new NearPositionCondition + { + Position = new Vector3(383.29138f, -154.50243f, -420.49292f), + MaximumDistance = 100f, + TerritoryId = 1187 + } + } + } + }; obj11.Steps = list17; reference11 = obj11; num++; @@ -425510,7 +425525,22 @@ public static class AssemblyQuestLoader span3 = CollectionsMarshal.AsSpan(list24); index2 = 0; ref QuestStep reference17 = ref span3[index2]; - QuestStep questStep = new QuestStep(EInteractionType.AcceptQuest, 1051195u, new Vector3(383.29138f, -154.50243f, -420.49292f), 1187); + QuestStep obj17 = new QuestStep(EInteractionType.AcceptQuest, 1051195u, new Vector3(383.29138f, -154.50243f, -420.49292f), 1187) + { + AetheryteShortcut = EAetheryteLocation.UrqopachaWachunpelo, + SkipConditions = new SkipConditions + { + AetheryteShortcutIf = new SkipAetheryteCondition + { + NearPosition = new NearPositionCondition + { + Position = new Vector3(383.29138f, -154.50243f, -420.49292f), + MaximumDistance = 100f, + TerritoryId = 1187 + } + } + } + }; num4 = 1; List list25 = new List(num4); CollectionsMarshal.SetCount(list25, num4); @@ -425522,13 +425552,13 @@ public static class AssemblyQuestLoader Prompt = new ExcelRef("TEXT_KINGZB203_05053_Q1_000_000"), Answer = new ExcelRef("TEXT_KINGZB203_05053_A1_000_003") }; - questStep.DialogueChoices = list25; - reference17 = questStep; + obj17.DialogueChoices = list25; + reference17 = obj17; obj16.Steps = list24; reference16 = obj16; num++; ref QuestSequence reference18 = ref span2[num]; - QuestSequence obj17 = new QuestSequence + QuestSequence obj18 = new QuestSequence { Sequence = 1 }; @@ -425538,7 +425568,7 @@ public static class AssemblyQuestLoader span3 = CollectionsMarshal.AsSpan(list26); num2 = 0; ref QuestStep reference19 = ref span3[num2]; - QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 1048629u, new Vector3(353.35315f, -158.06824f, -423.72784f), 1187); + QuestStep questStep = new QuestStep(EInteractionType.Interact, 1048629u, new Vector3(353.35315f, -158.06824f, -423.72784f), 1187); num3 = 6; List list27 = new List(num3); CollectionsMarshal.SetCount(list27, num3); @@ -425555,11 +425585,11 @@ public static class AssemblyQuestLoader span4[num4] = null; num4++; span4[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - questStep2.CompletionQuestVariablesFlags = list27; - reference19 = questStep2; + questStep.CompletionQuestVariablesFlags = list27; + reference19 = questStep; num2++; ref QuestStep reference20 = ref span3[num2]; - QuestStep obj18 = new QuestStep(EInteractionType.Interact, 1051202u, new Vector3(338.55188f, -160.20284f, -450.9804f), 1187) + QuestStep obj19 = new QuestStep(EInteractionType.Interact, 1051202u, new Vector3(338.55188f, -160.20284f, -450.9804f), 1187) { Fly = true }; @@ -425579,11 +425609,11 @@ public static class AssemblyQuestLoader span4[num3] = null; num3++; span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - obj18.CompletionQuestVariablesFlags = list28; - reference20 = obj18; + obj19.CompletionQuestVariablesFlags = list28; + reference20 = obj19; num2++; ref QuestStep reference21 = ref span3[num2]; - QuestStep obj19 = new QuestStep(EInteractionType.Interact, 1051203u, new Vector3(283.22266f, -168.30641f, -452.26215f), 1187) + QuestStep obj20 = new QuestStep(EInteractionType.Interact, 1051203u, new Vector3(283.22266f, -168.30641f, -452.26215f), 1187) { Fly = true }; @@ -425603,11 +425633,11 @@ public static class AssemblyQuestLoader span4[num4] = null; num4++; span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - obj19.CompletionQuestVariablesFlags = list29; - reference21 = obj19; + obj20.CompletionQuestVariablesFlags = list29; + reference21 = obj20; num2++; ref QuestStep reference22 = ref span3[num2]; - QuestStep obj20 = new QuestStep(EInteractionType.Interact, 1048660u, new Vector3(246.3263f, -168.27f, -487.20532f), 1187) + QuestStep obj21 = new QuestStep(EInteractionType.Interact, 1048660u, new Vector3(246.3263f, -168.27f, -487.20532f), 1187) { Fly = true }; @@ -425627,13 +425657,13 @@ public static class AssemblyQuestLoader span4[num3] = null; num3++; span4[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - obj20.CompletionQuestVariablesFlags = list30; - reference22 = obj20; - obj17.Steps = list26; - reference18 = obj17; + obj21.CompletionQuestVariablesFlags = list30; + reference22 = obj21; + obj18.Steps = list26; + reference18 = obj18; num++; ref QuestSequence reference23 = ref span2[num]; - QuestSequence obj21 = new QuestSequence + QuestSequence obj22 = new QuestSequence { Sequence = byte.MaxValue }; @@ -425643,7 +425673,7 @@ public static class AssemblyQuestLoader span3 = CollectionsMarshal.AsSpan(list31); index2 = 0; ref QuestStep reference24 = ref span3[index2]; - QuestStep obj22 = new QuestStep(EInteractionType.CompleteQuest, 1051195u, new Vector3(383.29138f, -154.50243f, -420.49292f), 1187) + QuestStep obj23 = new QuestStep(EInteractionType.CompleteQuest, 1051195u, new Vector3(383.29138f, -154.50243f, -420.49292f), 1187) { Fly = true }; @@ -425657,11 +425687,11 @@ public static class AssemblyQuestLoader Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGZB203_05053_Q2_000_000") }; - obj22.DialogueChoices = list32; - obj22.NextQuestId = new QuestId(5054); - reference24 = obj22; - obj21.Steps = list31; - reference23 = obj21; + obj23.DialogueChoices = list32; + obj23.NextQuestId = new QuestId(5054); + reference24 = obj23; + obj22.Steps = list31; + reference23 = obj22; questRoot4.QuestSequence = list23; AddQuest(questId4, questRoot4); QuestId questId5 = new QuestId(5054); @@ -425679,7 +425709,7 @@ public static class AssemblyQuestLoader span2 = CollectionsMarshal.AsSpan(list34); num = 0; ref QuestSequence reference25 = ref span2[num]; - QuestSequence obj23 = new QuestSequence + QuestSequence obj24 = new QuestSequence { Sequence = 0 }; @@ -425688,12 +425718,27 @@ public static class AssemblyQuestLoader CollectionsMarshal.SetCount(list35, index2); span3 = CollectionsMarshal.AsSpan(list35); num2 = 0; - span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051195u, new Vector3(383.29138f, -154.50243f, -420.49292f), 1187); - obj23.Steps = list35; - reference25 = obj23; + span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051195u, new Vector3(383.29138f, -154.50243f, -420.49292f), 1187) + { + AetheryteShortcut = EAetheryteLocation.UrqopachaWachunpelo, + SkipConditions = new SkipConditions + { + AetheryteShortcutIf = new SkipAetheryteCondition + { + NearPosition = new NearPositionCondition + { + Position = new Vector3(383.29138f, -154.50243f, -420.49292f), + MaximumDistance = 100f, + TerritoryId = 1187 + } + } + } + }; + obj24.Steps = list35; + reference25 = obj24; num++; ref QuestSequence reference26 = ref span2[num]; - QuestSequence obj24 = new QuestSequence + QuestSequence obj25 = new QuestSequence { Sequence = 1 }; @@ -425706,11 +425751,11 @@ public static class AssemblyQuestLoader { Fly = true }; - obj24.Steps = list36; - reference26 = obj24; + obj25.Steps = list36; + reference26 = obj25; num++; ref QuestSequence reference27 = ref span2[num]; - QuestSequence obj25 = new QuestSequence + QuestSequence obj26 = new QuestSequence { Sequence = 2 }; @@ -425720,7 +425765,7 @@ public static class AssemblyQuestLoader span3 = CollectionsMarshal.AsSpan(list37); num2 = 0; ref QuestStep reference28 = ref span3[num2]; - QuestStep obj26 = new QuestStep(EInteractionType.Interact, 2014271u, new Vector3(560.9064f, -54.459473f, 22.781677f), 1187) + QuestStep obj27 = new QuestStep(EInteractionType.Interact, 2014271u, new Vector3(560.9064f, -54.459473f, 22.781677f), 1187) { DisableNavmesh = true }; @@ -425734,13 +425779,13 @@ public static class AssemblyQuestLoader Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGZB204_05054_Q1_000_000") }; - obj26.DialogueChoices = list38; - reference28 = obj26; - obj25.Steps = list37; - reference27 = obj25; + obj27.DialogueChoices = list38; + reference28 = obj27; + obj26.Steps = list37; + reference27 = obj26; num++; ref QuestSequence reference29 = ref span2[num]; - QuestSequence obj27 = new QuestSequence + QuestSequence obj28 = new QuestSequence { Sequence = 3 }; @@ -425753,11 +425798,11 @@ public static class AssemblyQuestLoader { StopDistance = 5f }; - obj27.Steps = list39; - reference29 = obj27; + obj28.Steps = list39; + reference29 = obj28; num++; ref QuestSequence reference30 = ref span2[num]; - QuestSequence obj28 = new QuestSequence + QuestSequence obj29 = new QuestSequence { Sequence = byte.MaxValue }; @@ -425770,8 +425815,8 @@ public static class AssemblyQuestLoader { AetheryteShortcut = EAetheryteLocation.UrqopachaWachunpelo }; - obj28.Steps = list40; - reference30 = obj28; + obj29.Steps = list40; + reference30 = obj29; questRoot5.QuestSequence = list34; AddQuest(questId5, questRoot5); QuestId questId6 = new QuestId(5055); @@ -425789,7 +425834,7 @@ public static class AssemblyQuestLoader span2 = CollectionsMarshal.AsSpan(list42); num = 0; ref QuestSequence reference31 = ref span2[num]; - QuestSequence obj29 = new QuestSequence + QuestSequence obj30 = new QuestSequence { Sequence = 0 }; @@ -425802,11 +425847,11 @@ public static class AssemblyQuestLoader { StopDistance = 5f }; - obj29.Steps = list43; - reference31 = obj29; + obj30.Steps = list43; + reference31 = obj30; num++; ref QuestSequence reference32 = ref span2[num]; - QuestSequence obj30 = new QuestSequence + QuestSequence obj31 = new QuestSequence { Sequence = 1 }; @@ -425821,11 +425866,11 @@ public static class AssemblyQuestLoader { StopDistance = 5f }; - obj30.Steps = list44; - reference32 = obj30; + obj31.Steps = list44; + reference32 = obj31; num++; ref QuestSequence reference33 = ref span2[num]; - QuestSequence obj31 = new QuestSequence + QuestSequence obj32 = new QuestSequence { Sequence = 2 }; @@ -425835,7 +425880,7 @@ public static class AssemblyQuestLoader span3 = CollectionsMarshal.AsSpan(list45); index2 = 0; ref QuestStep reference34 = ref span3[index2]; - QuestStep obj32 = new QuestStep(EInteractionType.Combat, 2014272u, new Vector3(133.53162f, 22.2323f, 295.9182f), 1187) + QuestStep obj33 = new QuestStep(EInteractionType.Combat, 2014272u, new Vector3(133.53162f, 22.2323f, 295.9182f), 1187) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; @@ -425845,13 +425890,13 @@ public static class AssemblyQuestLoader Span span6 = CollectionsMarshal.AsSpan(list46); num4 = 0; span6[num4] = 17652u; - obj32.KillEnemyDataIds = list46; - reference34 = obj32; - obj31.Steps = list45; - reference33 = obj31; + obj33.KillEnemyDataIds = list46; + reference34 = obj33; + obj32.Steps = list45; + reference33 = obj32; num++; ref QuestSequence reference35 = ref span2[num]; - QuestSequence obj33 = new QuestSequence + QuestSequence obj34 = new QuestSequence { Sequence = 3 }; @@ -425866,11 +425911,11 @@ public static class AssemblyQuestLoader }; num2++; span3[num2] = new QuestStep(EInteractionType.Interact, 1051208u, new Vector3(210.92542f, 21.49294f, 246.6925f), 1187); - obj33.Steps = list47; - reference35 = obj33; + obj34.Steps = list47; + reference35 = obj34; num++; ref QuestSequence reference36 = ref span2[num]; - QuestSequence obj34 = new QuestSequence + QuestSequence obj35 = new QuestSequence { Sequence = byte.MaxValue }; @@ -425884,8 +425929,8 @@ public static class AssemblyQuestLoader StopDistance = 5f, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho }; - obj34.Steps = list48; - reference36 = obj34; + obj35.Steps = list48; + reference36 = obj35; questRoot6.QuestSequence = list42; AddQuest(questId6, questRoot6); QuestId questId7 = new QuestId(5056); @@ -425903,7 +425948,7 @@ public static class AssemblyQuestLoader span2 = CollectionsMarshal.AsSpan(list50); num = 0; ref QuestSequence reference37 = ref span2[num]; - QuestSequence obj35 = new QuestSequence + QuestSequence obj36 = new QuestSequence { Sequence = 0 }; @@ -425913,9 +425958,22 @@ public static class AssemblyQuestLoader span3 = CollectionsMarshal.AsSpan(list51); num2 = 0; ref QuestStep reference38 = ref span3[num2]; - QuestStep obj36 = new QuestStep(EInteractionType.AcceptQuest, 1051207u, new Vector3(425.07043f, 118.935005f, 606.13403f), 1187) + QuestStep obj37 = new QuestStep(EInteractionType.AcceptQuest, 1051207u, new Vector3(425.07043f, 118.935005f, 606.13403f), 1187) { - StopDistance = 5f + StopDistance = 5f, + AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, + SkipConditions = new SkipConditions + { + AetheryteShortcutIf = new SkipAetheryteCondition + { + NearPosition = new NearPositionCondition + { + Position = new Vector3(425.07043f, 118.935005f, 606.13403f), + MaximumDistance = 100f, + TerritoryId = 1187 + } + } + } }; num4 = 1; List list52 = new List(num4); @@ -425928,13 +425986,13 @@ public static class AssemblyQuestLoader Prompt = new ExcelRef("TEXT_KINGZB302_05056_Q1_000_000"), Answer = new ExcelRef("TEXT_KINGZB302_05056_A1_000_001") }; - obj36.DialogueChoices = list52; - reference38 = obj36; - obj35.Steps = list51; - reference37 = obj35; + obj37.DialogueChoices = list52; + reference38 = obj37; + obj36.Steps = list51; + reference37 = obj36; num++; ref QuestSequence reference39 = ref span2[num]; - QuestSequence obj37 = new QuestSequence + QuestSequence obj38 = new QuestSequence { Sequence = 1 }; @@ -425947,11 +426005,11 @@ public static class AssemblyQuestLoader { Fly = true }; - obj37.Steps = list53; - reference39 = obj37; + obj38.Steps = list53; + reference39 = obj38; num++; ref QuestSequence reference40 = ref span2[num]; - QuestSequence obj38 = new QuestSequence + QuestSequence obj39 = new QuestSequence { Sequence = 2 }; @@ -425961,7 +426019,7 @@ public static class AssemblyQuestLoader span3 = CollectionsMarshal.AsSpan(list54); num2 = 0; ref QuestStep reference41 = ref span3[num2]; - QuestStep obj39 = new QuestStep(EInteractionType.Interact, 2014275u, new Vector3(673.2433f, 124.40674f, 416.28137f), 1187) + QuestStep obj40 = new QuestStep(EInteractionType.Interact, 2014275u, new Vector3(673.2433f, 124.40674f, 416.28137f), 1187) { StopDistance = 0.25f, Fly = true @@ -425982,11 +426040,11 @@ public static class AssemblyQuestLoader span4[num4] = null; num4++; span4[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - obj39.CompletionQuestVariablesFlags = list55; - reference41 = obj39; + obj40.CompletionQuestVariablesFlags = list55; + reference41 = obj40; num2++; ref QuestStep reference42 = ref span3[num2]; - QuestStep obj40 = new QuestStep(EInteractionType.Interact, 2014273u, new Vector3(631.58606f, 124.833984f, 405.7527f), 1187) + QuestStep obj41 = new QuestStep(EInteractionType.Interact, 2014273u, new Vector3(631.58606f, 124.833984f, 405.7527f), 1187) { StopDistance = 0.25f, Fly = true @@ -426007,11 +426065,11 @@ public static class AssemblyQuestLoader span4[num3] = null; num3++; span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - obj40.CompletionQuestVariablesFlags = list56; - reference42 = obj40; + obj41.CompletionQuestVariablesFlags = list56; + reference42 = obj41; num2++; ref QuestStep reference43 = ref span3[num2]; - QuestStep obj41 = new QuestStep(EInteractionType.Interact, 2014274u, new Vector3(637.93384f, 120.80554f, 352.34607f), 1187) + QuestStep obj42 = new QuestStep(EInteractionType.Interact, 2014274u, new Vector3(637.93384f, 120.80554f, 352.34607f), 1187) { StopDistance = 0.25f, Fly = true @@ -426032,13 +426090,13 @@ public static class AssemblyQuestLoader span4[num4] = null; num4++; span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - obj41.CompletionQuestVariablesFlags = list57; - reference43 = obj41; - obj38.Steps = list54; - reference40 = obj38; + obj42.CompletionQuestVariablesFlags = list57; + reference43 = obj42; + obj39.Steps = list54; + reference40 = obj39; num++; ref QuestSequence reference44 = ref span2[num]; - QuestSequence obj42 = new QuestSequence + QuestSequence obj43 = new QuestSequence { Sequence = 3 }; @@ -426051,11 +426109,11 @@ public static class AssemblyQuestLoader { StopDistance = 5f }; - obj42.Steps = list58; - reference44 = obj42; + obj43.Steps = list58; + reference44 = obj43; num++; ref QuestSequence reference45 = ref span2[num]; - QuestSequence obj43 = new QuestSequence + QuestSequence obj44 = new QuestSequence { Sequence = 4 }; @@ -426069,11 +426127,11 @@ public static class AssemblyQuestLoader Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho }; - obj43.Steps = list59; - reference45 = obj43; + obj44.Steps = list59; + reference45 = obj44; num++; ref QuestSequence reference46 = ref span2[num]; - QuestSequence obj44 = new QuestSequence + QuestSequence obj45 = new QuestSequence { Sequence = byte.MaxValue }; @@ -426088,8 +426146,8 @@ public static class AssemblyQuestLoader Fly = true, NextQuestId = new QuestId(5057) }; - obj44.Steps = list60; - reference46 = obj44; + obj45.Steps = list60; + reference46 = obj45; questRoot7.QuestSequence = list50; AddQuest(questId7, questRoot7); QuestId questId8 = new QuestId(5057); @@ -426107,7 +426165,7 @@ public static class AssemblyQuestLoader span2 = CollectionsMarshal.AsSpan(list62); num = 0; ref QuestSequence reference47 = ref span2[num]; - QuestSequence obj45 = new QuestSequence + QuestSequence obj46 = new QuestSequence { Sequence = 0 }; @@ -426117,9 +426175,22 @@ public static class AssemblyQuestLoader span3 = CollectionsMarshal.AsSpan(list63); num2 = 0; ref QuestStep reference48 = ref span3[num2]; - QuestStep obj46 = new QuestStep(EInteractionType.AcceptQuest, 1051207u, new Vector3(425.07043f, 118.935005f, 606.13403f), 1187) + QuestStep obj47 = new QuestStep(EInteractionType.AcceptQuest, 1051207u, new Vector3(425.07043f, 118.935005f, 606.13403f), 1187) { - StopDistance = 5f + StopDistance = 5f, + AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, + SkipConditions = new SkipConditions + { + AetheryteShortcutIf = new SkipAetheryteCondition + { + NearPosition = new NearPositionCondition + { + Position = new Vector3(425.07043f, 118.935005f, 606.13403f), + MaximumDistance = 100f, + TerritoryId = 1187 + } + } + } }; num4 = 1; List list64 = new List(num4); @@ -426132,13 +426203,13 @@ public static class AssemblyQuestLoader Prompt = new ExcelRef("TEXT_KINGZB303_05057_Q1_000_000"), Answer = new ExcelRef("TEXT_KINGZB303_05057_A1_000_001") }; - obj46.DialogueChoices = list64; - reference48 = obj46; - obj45.Steps = list63; - reference47 = obj45; + obj47.DialogueChoices = list64; + reference48 = obj47; + obj46.Steps = list63; + reference47 = obj46; num++; ref QuestSequence reference49 = ref span2[num]; - QuestSequence obj47 = new QuestSequence + QuestSequence obj48 = new QuestSequence { Sequence = 1 }; @@ -426151,11 +426222,11 @@ public static class AssemblyQuestLoader { Fly = true }; - obj47.Steps = list65; - reference49 = obj47; + obj48.Steps = list65; + reference49 = obj48; num++; ref QuestSequence reference50 = ref span2[num]; - QuestSequence obj48 = new QuestSequence + QuestSequence obj49 = new QuestSequence { Sequence = 2 }; @@ -426186,7 +426257,7 @@ public static class AssemblyQuestLoader }; num2++; ref QuestStep reference51 = ref span3[num2]; - QuestStep obj49 = new QuestStep(EInteractionType.Combat, null, new Vector3(194.26257f, 47.196045f, 45.853394f), 1187) + QuestStep obj50 = new QuestStep(EInteractionType.Combat, null, new Vector3(194.26257f, 47.196045f, 45.853394f), 1187) { Mount = false, Sprint = false, @@ -426198,15 +426269,15 @@ public static class AssemblyQuestLoader span6 = CollectionsMarshal.AsSpan(list67); num4 = 0; span6[num4] = 17654u; - obj49.KillEnemyDataIds = list67; - reference51 = obj49; + obj50.KillEnemyDataIds = list67; + reference51 = obj50; num2++; span3[num2] = new QuestStep(EInteractionType.Interact, 2014276u, new Vector3(194.26257f, 47.196045f, 45.853394f), 1187); - obj48.Steps = list66; - reference50 = obj48; + obj49.Steps = list66; + reference50 = obj49; num++; ref QuestSequence reference52 = ref span2[num]; - QuestSequence obj50 = new QuestSequence + QuestSequence obj51 = new QuestSequence { Sequence = 3 }; @@ -426230,11 +426301,11 @@ public static class AssemblyQuestLoader }; index2++; span3[index2] = new QuestStep(EInteractionType.Interact, 2014277u, new Vector3(248.98132f, 29.587158f, -67.73486f), 1187); - obj50.Steps = list68; - reference52 = obj50; + obj51.Steps = list68; + reference52 = obj51; num++; ref QuestSequence reference53 = ref span2[num]; - QuestSequence obj51 = new QuestSequence + QuestSequence obj52 = new QuestSequence { Sequence = 4 }; @@ -426247,11 +426318,11 @@ public static class AssemblyQuestLoader { StopDistance = 5f }; - obj51.Steps = list69; - reference53 = obj51; + obj52.Steps = list69; + reference53 = obj52; num++; ref QuestSequence reference54 = ref span2[num]; - QuestSequence obj52 = new QuestSequence + QuestSequence obj53 = new QuestSequence { Sequence = byte.MaxValue }; @@ -426266,8 +426337,8 @@ public static class AssemblyQuestLoader AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, NextQuestId = new QuestId(5058) }; - obj52.Steps = list70; - reference54 = obj52; + obj53.Steps = list70; + reference54 = obj53; questRoot8.QuestSequence = list62; AddQuest(questId8, questRoot8); QuestId questId9 = new QuestId(5058); @@ -426285,7 +426356,7 @@ public static class AssemblyQuestLoader span2 = CollectionsMarshal.AsSpan(list72); num = 0; ref QuestSequence reference55 = ref span2[num]; - QuestSequence obj53 = new QuestSequence + QuestSequence obj54 = new QuestSequence { Sequence = 0 }; @@ -426296,13 +426367,26 @@ public static class AssemblyQuestLoader num2 = 0; span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051207u, new Vector3(425.07043f, 118.935005f, 606.13403f), 1187) { - StopDistance = 5f + StopDistance = 5f, + AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, + SkipConditions = new SkipConditions + { + AetheryteShortcutIf = new SkipAetheryteCondition + { + NearPosition = new NearPositionCondition + { + Position = new Vector3(425.07043f, 118.935005f, 606.13403f), + MaximumDistance = 100f, + TerritoryId = 1187 + } + } + } }; - obj53.Steps = list73; - reference55 = obj53; + obj54.Steps = list73; + reference55 = obj54; num++; ref QuestSequence reference56 = ref span2[num]; - QuestSequence obj54 = new QuestSequence + QuestSequence obj55 = new QuestSequence { Sequence = 1 }; @@ -426315,11 +426399,11 @@ public static class AssemblyQuestLoader { Fly = true }; - obj54.Steps = list74; - reference56 = obj54; + obj55.Steps = list74; + reference56 = obj55; num++; ref QuestSequence reference57 = ref span2[num]; - QuestSequence obj55 = new QuestSequence + QuestSequence obj56 = new QuestSequence { Sequence = 2 }; @@ -426332,11 +426416,11 @@ public static class AssemblyQuestLoader { Fly = true }; - obj55.Steps = list75; - reference57 = obj55; + obj56.Steps = list75; + reference57 = obj56; num++; ref QuestSequence reference58 = ref span2[num]; - QuestSequence obj56 = new QuestSequence + QuestSequence obj57 = new QuestSequence { Sequence = 3 }; @@ -426350,11 +426434,11 @@ public static class AssemblyQuestLoader StopDistance = 0.25f, Fly = true }; - obj56.Steps = list76; - reference58 = obj56; + obj57.Steps = list76; + reference58 = obj57; num++; ref QuestSequence reference59 = ref span2[num]; - QuestSequence obj57 = new QuestSequence + QuestSequence obj58 = new QuestSequence { Sequence = 4 }; @@ -426364,7 +426448,7 @@ public static class AssemblyQuestLoader span3 = CollectionsMarshal.AsSpan(list77); num2 = 0; ref QuestStep reference60 = ref span3[num2]; - QuestStep obj58 = new QuestStep(EInteractionType.Combat, null, new Vector3(-779.43585f, 61.86622f, 198.07907f), 1187) + QuestStep obj59 = new QuestStep(EInteractionType.Combat, null, new Vector3(-779.43585f, 61.86622f, 198.07907f), 1187) { StopDistance = 0.25f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -426375,13 +426459,13 @@ public static class AssemblyQuestLoader span6 = CollectionsMarshal.AsSpan(list78); num3 = 0; span6[num3] = 17655u; - obj58.KillEnemyDataIds = list78; - reference60 = obj58; - obj57.Steps = list77; - reference59 = obj57; + obj59.KillEnemyDataIds = list78; + reference60 = obj59; + obj58.Steps = list77; + reference59 = obj58; num++; ref QuestSequence reference61 = ref span2[num]; - QuestSequence obj59 = new QuestSequence + QuestSequence obj60 = new QuestSequence { Sequence = 5 }; @@ -426394,11 +426478,11 @@ public static class AssemblyQuestLoader { StopDistance = 8f }; - obj59.Steps = list79; - reference61 = obj59; + obj60.Steps = list79; + reference61 = obj60; num++; ref QuestSequence reference62 = ref span2[num]; - QuestSequence obj60 = new QuestSequence + QuestSequence obj61 = new QuestSequence { Sequence = 6 }; @@ -426411,11 +426495,11 @@ public static class AssemblyQuestLoader { StopDistance = 5f }; - obj60.Steps = list80; - reference62 = obj60; + obj61.Steps = list80; + reference62 = obj61; num++; ref QuestSequence reference63 = ref span2[num]; - QuestSequence obj61 = new QuestSequence + QuestSequence obj62 = new QuestSequence { Sequence = byte.MaxValue }; @@ -426430,8 +426514,8 @@ public static class AssemblyQuestLoader AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, NextQuestId = new QuestId(5059) }; - obj61.Steps = list81; - reference63 = obj61; + obj62.Steps = list81; + reference63 = obj62; questRoot9.QuestSequence = list72; AddQuest(questId9, questRoot9); QuestId questId10 = new QuestId(5059); @@ -426449,7 +426533,7 @@ public static class AssemblyQuestLoader span2 = CollectionsMarshal.AsSpan(list83); num = 0; ref QuestSequence reference64 = ref span2[num]; - QuestSequence obj62 = new QuestSequence + QuestSequence obj63 = new QuestSequence { Sequence = 0 }; @@ -426460,13 +426544,26 @@ public static class AssemblyQuestLoader num2 = 0; span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051207u, new Vector3(425.07043f, 118.935005f, 606.13403f), 1187) { - StopDistance = 5f + StopDistance = 5f, + AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho, + SkipConditions = new SkipConditions + { + AetheryteShortcutIf = new SkipAetheryteCondition + { + NearPosition = new NearPositionCondition + { + Position = new Vector3(425.07043f, 118.935005f, 606.13403f), + MaximumDistance = 100f, + TerritoryId = 1187 + } + } + } }; - obj62.Steps = list84; - reference64 = obj62; + obj63.Steps = list84; + reference64 = obj63; num++; ref QuestSequence reference65 = ref span2[num]; - QuestSequence obj63 = new QuestSequence + QuestSequence obj64 = new QuestSequence { Sequence = 1 }; @@ -426479,11 +426576,11 @@ public static class AssemblyQuestLoader { AetheryteShortcut = EAetheryteLocation.UrqopachaWachunpelo }; - obj63.Steps = list85; - reference65 = obj63; + obj64.Steps = list85; + reference65 = obj64; num++; ref QuestSequence reference66 = ref span2[num]; - QuestSequence obj64 = new QuestSequence + QuestSequence obj65 = new QuestSequence { Sequence = 2 }; @@ -426496,11 +426593,11 @@ public static class AssemblyQuestLoader { Fly = true }; - obj64.Steps = list86; - reference66 = obj64; + obj65.Steps = list86; + reference66 = obj65; num++; ref QuestSequence reference67 = ref span2[num]; - QuestSequence obj65 = new QuestSequence + QuestSequence obj66 = new QuestSequence { Sequence = 3 }; @@ -426514,11 +426611,11 @@ public static class AssemblyQuestLoader Fly = true, AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho }; - obj65.Steps = list87; - reference67 = obj65; + obj66.Steps = list87; + reference67 = obj66; num++; ref QuestSequence reference68 = ref span2[num]; - QuestSequence obj66 = new QuestSequence + QuestSequence obj67 = new QuestSequence { Sequence = 4 }; @@ -426531,11 +426628,11 @@ public static class AssemblyQuestLoader { StopDistance = 5f }; - obj66.Steps = list88; - reference68 = obj66; + obj67.Steps = list88; + reference68 = obj67; num++; ref QuestSequence reference69 = ref span2[num]; - QuestSequence obj67 = new QuestSequence + QuestSequence obj68 = new QuestSequence { Sequence = byte.MaxValue }; @@ -426548,8 +426645,8 @@ public static class AssemblyQuestLoader { AetheryteShortcut = EAetheryteLocation.UrqopachaWorlarsEcho }; - obj67.Steps = list89; - reference69 = obj67; + obj68.Steps = list89; + reference69 = obj68; questRoot10.QuestSequence = list83; AddQuest(questId10, questRoot10); QuestId questId11 = new QuestId(5060); @@ -426567,7 +426664,7 @@ public static class AssemblyQuestLoader span2 = CollectionsMarshal.AsSpan(list91); num = 0; ref QuestSequence reference70 = ref span2[num]; - QuestSequence obj68 = new QuestSequence + QuestSequence obj69 = new QuestSequence { Sequence = 0 }; @@ -426577,11 +426674,11 @@ public static class AssemblyQuestLoader span3 = CollectionsMarshal.AsSpan(list92); num2 = 0; span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1048779u, new Vector3(-231.15894f, 3.221878f, -453.17773f), 1188); - obj68.Steps = list92; - reference70 = obj68; + obj69.Steps = list92; + reference70 = obj69; num++; ref QuestSequence reference71 = ref span2[num]; - QuestSequence obj69 = new QuestSequence + QuestSequence obj70 = new QuestSequence { Sequence = 1 }; @@ -426596,11 +426693,11 @@ public static class AssemblyQuestLoader }; index2++; span3[index2] = new QuestStep(EInteractionType.Interact, 2014160u, new Vector3(-95.23157f, 16.464417f, -677.8821f), 1188); - obj69.Steps = list93; - reference71 = obj69; + obj70.Steps = list93; + reference71 = obj70; num++; ref QuestSequence reference72 = ref span2[num]; - QuestSequence obj70 = new QuestSequence + QuestSequence obj71 = new QuestSequence { Sequence = 2 }; @@ -426615,7 +426712,7 @@ public static class AssemblyQuestLoader }; num2++; ref QuestStep reference73 = ref span3[num2]; - QuestStep obj71 = new QuestStep(EInteractionType.UseItem, 2014163u, new Vector3(181.8722f, 0.99176025f, -568.5359f), 1188) + QuestStep obj72 = new QuestStep(EInteractionType.UseItem, 2014163u, new Vector3(181.8722f, 0.99176025f, -568.5359f), 1188) { Fly = true, ItemId = 2003626u @@ -426636,11 +426733,11 @@ public static class AssemblyQuestLoader span4[num4] = null; num4++; span4[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - obj71.CompletionQuestVariablesFlags = list95; - reference73 = obj71; + obj72.CompletionQuestVariablesFlags = list95; + reference73 = obj72; num2++; ref QuestStep reference74 = ref span3[num2]; - QuestStep obj72 = new QuestStep(EInteractionType.UseItem, 2014161u, new Vector3(221.57617f, 0.99176025f, -610.7423f), 1188) + QuestStep obj73 = new QuestStep(EInteractionType.UseItem, 2014161u, new Vector3(221.57617f, 0.99176025f, -610.7423f), 1188) { ItemId = 2003626u }; @@ -426660,11 +426757,11 @@ public static class AssemblyQuestLoader span4[num3] = null; num3++; span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - obj72.CompletionQuestVariablesFlags = list96; - reference74 = obj72; + obj73.CompletionQuestVariablesFlags = list96; + reference74 = obj73; num2++; ref QuestStep reference75 = ref span3[num2]; - QuestStep obj73 = new QuestStep(EInteractionType.UseItem, 2014162u, new Vector3(244.953f, 1.1138916f, -569.2684f), 1188) + QuestStep obj74 = new QuestStep(EInteractionType.UseItem, 2014162u, new Vector3(244.953f, 1.1138916f, -569.2684f), 1188) { ItemId = 2003626u }; @@ -426684,13 +426781,13 @@ public static class AssemblyQuestLoader span4[num4] = null; num4++; span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - obj73.CompletionQuestVariablesFlags = list97; - reference75 = obj73; - obj70.Steps = list94; - reference72 = obj70; + obj74.CompletionQuestVariablesFlags = list97; + reference75 = obj74; + obj71.Steps = list94; + reference72 = obj71; num++; ref QuestSequence reference76 = ref span2[num]; - QuestSequence obj74 = new QuestSequence + QuestSequence obj75 = new QuestSequence { Sequence = byte.MaxValue }; @@ -426704,8 +426801,8 @@ public static class AssemblyQuestLoader Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaOkHanu }; - obj74.Steps = list98; - reference76 = obj74; + obj75.Steps = list98; + reference76 = obj75; questRoot11.QuestSequence = list91; AddQuest(questId11, questRoot11); QuestId questId12 = new QuestId(5061); @@ -426723,7 +426820,7 @@ public static class AssemblyQuestLoader span2 = CollectionsMarshal.AsSpan(list100); num = 0; ref QuestSequence reference77 = ref span2[num]; - QuestSequence obj75 = new QuestSequence + QuestSequence obj76 = new QuestSequence { Sequence = 0 }; @@ -426733,11 +426830,11 @@ public static class AssemblyQuestLoader span3 = CollectionsMarshal.AsSpan(list101); num2 = 0; span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1048780u, new Vector3(-103.868225f, 25.199324f, -525.41394f), 1188); - obj75.Steps = list101; - reference77 = obj75; + obj76.Steps = list101; + reference77 = obj76; num++; ref QuestSequence reference78 = ref span2[num]; - QuestSequence obj76 = new QuestSequence + QuestSequence obj77 = new QuestSequence { Sequence = 1 }; @@ -426759,7 +426856,7 @@ public static class AssemblyQuestLoader }; index2++; ref QuestStep reference79 = ref span3[index2]; - QuestStep obj77 = new QuestStep(EInteractionType.Combat, 2014195u, new Vector3(-314.2901f, 0.38146973f, -211.26117f), 1188) + QuestStep obj78 = new QuestStep(EInteractionType.Combat, 2014195u, new Vector3(-314.2901f, 0.38146973f, -211.26117f), 1188) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -426770,13 +426867,13 @@ public static class AssemblyQuestLoader span6 = CollectionsMarshal.AsSpan(list103); num3 = 0; span6[num3] = 17656u; - obj77.KillEnemyDataIds = list103; - reference79 = obj77; - obj76.Steps = list102; - reference78 = obj76; + obj78.KillEnemyDataIds = list103; + reference79 = obj78; + obj77.Steps = list102; + reference78 = obj77; num++; ref QuestSequence reference80 = ref span2[num]; - QuestSequence obj78 = new QuestSequence + QuestSequence obj79 = new QuestSequence { Sequence = byte.MaxValue }; @@ -426790,8 +426887,8 @@ public static class AssemblyQuestLoader Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaOkHanu }; - obj78.Steps = list104; - reference80 = obj78; + obj79.Steps = list104; + reference80 = obj79; questRoot12.QuestSequence = list100; AddQuest(questId12, questRoot12); QuestId questId13 = new QuestId(5062); @@ -426809,7 +426906,7 @@ public static class AssemblyQuestLoader span2 = CollectionsMarshal.AsSpan(list106); num = 0; ref QuestSequence reference81 = ref span2[num]; - QuestSequence obj79 = new QuestSequence + QuestSequence obj80 = new QuestSequence { Sequence = 0 }; @@ -426819,11 +426916,11 @@ public static class AssemblyQuestLoader span3 = CollectionsMarshal.AsSpan(list107); index2 = 0; span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048781u, new Vector3(-213.09229f, 6.2771482f, -510.70422f), 1188); - obj79.Steps = list107; - reference81 = obj79; + obj80.Steps = list107; + reference81 = obj80; num++; ref QuestSequence reference82 = ref span2[num]; - QuestSequence obj80 = new QuestSequence + QuestSequence obj81 = new QuestSequence { Sequence = 1 }; @@ -426833,7 +426930,7 @@ public static class AssemblyQuestLoader span3 = CollectionsMarshal.AsSpan(list108); num2 = 0; ref QuestStep reference83 = ref span3[num2]; - QuestStep obj81 = new QuestStep(EInteractionType.Combat, 2014196u, new Vector3(819.6382f, 14.084045f, -312.21484f), 1188) + QuestStep obj82 = new QuestStep(EInteractionType.Combat, 2014196u, new Vector3(819.6382f, 14.084045f, -312.21484f), 1188) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -426846,13 +426943,13 @@ public static class AssemblyQuestLoader span6[num4] = 17657u; num4++; span6[num4] = 17658u; - obj81.KillEnemyDataIds = list109; - reference83 = obj81; - obj80.Steps = list108; - reference82 = obj80; + obj82.KillEnemyDataIds = list109; + reference83 = obj82; + obj81.Steps = list108; + reference82 = obj81; num++; ref QuestSequence reference84 = ref span2[num]; - QuestSequence obj82 = new QuestSequence + QuestSequence obj83 = new QuestSequence { Sequence = byte.MaxValue }; @@ -426865,8 +426962,8 @@ public static class AssemblyQuestLoader { AetheryteShortcut = EAetheryteLocation.KozamaukaOkHanu }; - obj82.Steps = list110; - reference84 = obj82; + obj83.Steps = list110; + reference84 = obj83; questRoot13.QuestSequence = list106; AddQuest(questId13, questRoot13); QuestId questId14 = new QuestId(5063); @@ -426884,7 +426981,7 @@ public static class AssemblyQuestLoader span2 = CollectionsMarshal.AsSpan(list112); num = 0; ref QuestSequence reference85 = ref span2[num]; - QuestSequence obj83 = new QuestSequence + QuestSequence obj84 = new QuestSequence { Sequence = 0 }; @@ -426894,11 +426991,11 @@ public static class AssemblyQuestLoader span3 = CollectionsMarshal.AsSpan(list113); num2 = 0; span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1048815u, new Vector3(127.03125f, 3.8414035f, -279.92682f), 1188); - obj83.Steps = list113; - reference85 = obj83; + obj84.Steps = list113; + reference85 = obj84; num++; ref QuestSequence reference86 = ref span2[num]; - QuestSequence obj84 = new QuestSequence + QuestSequence obj85 = new QuestSequence { Sequence = 1 }; @@ -426908,7 +427005,7 @@ public static class AssemblyQuestLoader span3 = CollectionsMarshal.AsSpan(list114); index2 = 0; ref QuestStep reference87 = ref span3[index2]; - QuestStep obj85 = new QuestStep(EInteractionType.Interact, 2014165u, new Vector3(255.57336f, -0.015319824f, -350.57605f), 1188) + QuestStep obj86 = new QuestStep(EInteractionType.Interact, 2014165u, new Vector3(255.57336f, -0.015319824f, -350.57605f), 1188) { Fly = true }; @@ -426928,11 +427025,11 @@ public static class AssemblyQuestLoader span4[num3] = null; num3++; span4[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - obj85.CompletionQuestVariablesFlags = list115; - reference87 = obj85; + obj86.CompletionQuestVariablesFlags = list115; + reference87 = obj86; index2++; ref QuestStep reference88 = ref span3[index2]; - QuestStep obj86 = new QuestStep(EInteractionType.Interact, 2014166u, new Vector3(198.74878f, -0.015319824f, -385.39716f), 1188) + QuestStep obj87 = new QuestStep(EInteractionType.Interact, 2014166u, new Vector3(198.74878f, -0.015319824f, -385.39716f), 1188) { Fly = true }; @@ -426952,11 +427049,11 @@ public static class AssemblyQuestLoader span4[num4] = null; num4++; span4[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - obj86.CompletionQuestVariablesFlags = list116; - reference88 = obj86; + obj87.CompletionQuestVariablesFlags = list116; + reference88 = obj87; index2++; ref QuestStep reference89 = ref span3[index2]; - QuestStep obj87 = new QuestStep(EInteractionType.Interact, 2014164u, new Vector3(92.69849f, -0.015319824f, -409.26227f), 1188) + QuestStep obj88 = new QuestStep(EInteractionType.Interact, 2014164u, new Vector3(92.69849f, -0.015319824f, -409.26227f), 1188) { Fly = true }; @@ -426976,13 +427073,13 @@ public static class AssemblyQuestLoader span4[num3] = null; num3++; span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - obj87.CompletionQuestVariablesFlags = list117; - reference89 = obj87; - obj84.Steps = list114; - reference86 = obj84; + obj88.CompletionQuestVariablesFlags = list117; + reference89 = obj88; + obj85.Steps = list114; + reference86 = obj85; num++; ref QuestSequence reference90 = ref span2[num]; - QuestSequence obj88 = new QuestSequence + QuestSequence obj89 = new QuestSequence { Sequence = byte.MaxValue }; @@ -426992,8 +427089,8 @@ public static class AssemblyQuestLoader span3 = CollectionsMarshal.AsSpan(list118); num2 = 0; span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1048821u, new Vector3(-39.35309f, 21.48717f, -69.44385f), 1188); - obj88.Steps = list118; - reference90 = obj88; + obj89.Steps = list118; + reference90 = obj89; questRoot14.QuestSequence = list112; AddQuest(questId14, questRoot14); QuestId questId15 = new QuestId(5064); @@ -427011,7 +427108,7 @@ public static class AssemblyQuestLoader span2 = CollectionsMarshal.AsSpan(list120); num = 0; ref QuestSequence reference91 = ref span2[num]; - QuestSequence obj89 = new QuestSequence + QuestSequence obj90 = new QuestSequence { Sequence = 0 }; @@ -427021,11 +427118,11 @@ public static class AssemblyQuestLoader span3 = CollectionsMarshal.AsSpan(list121); index2 = 0; span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048782u, new Vector3(-68.52832f, 6.536739f, -486.53394f), 1188); - obj89.Steps = list121; - reference91 = obj89; + obj90.Steps = list121; + reference91 = obj90; num++; ref QuestSequence reference92 = ref span2[num]; - QuestSequence obj90 = new QuestSequence + QuestSequence obj91 = new QuestSequence { Sequence = 1 }; @@ -427035,7 +427132,7 @@ public static class AssemblyQuestLoader span3 = CollectionsMarshal.AsSpan(list122); num2 = 0; ref QuestStep reference93 = ref span3[num2]; - QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2014167u, new Vector3(-241.56561f, 6.0578003f, -356.40503f), 1188); + QuestStep questStep2 = new QuestStep(EInteractionType.Interact, 2014167u, new Vector3(-241.56561f, 6.0578003f, -356.40503f), 1188); num3 = 6; List list123 = new List(num3); CollectionsMarshal.SetCount(list123, num3); @@ -427052,11 +427149,11 @@ public static class AssemblyQuestLoader span4[num4] = null; num4++; span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - questStep3.CompletionQuestVariablesFlags = list123; - reference93 = questStep3; + questStep2.CompletionQuestVariablesFlags = list123; + reference93 = questStep2; num2++; ref QuestStep reference94 = ref span3[num2]; - QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 2014168u, new Vector3(-262.50098f, 4.989685f, -318.25745f), 1188); + QuestStep questStep3 = new QuestStep(EInteractionType.Interact, 2014168u, new Vector3(-262.50098f, 4.989685f, -318.25745f), 1188); num4 = 6; List list124 = new List(num4); CollectionsMarshal.SetCount(list124, num4); @@ -427073,11 +427170,11 @@ public static class AssemblyQuestLoader span4[num3] = null; num3++; span4[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep4.CompletionQuestVariablesFlags = list124; - reference94 = questStep4; + questStep3.CompletionQuestVariablesFlags = list124; + reference94 = questStep3; num2++; ref QuestStep reference95 = ref span3[num2]; - QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 2014169u, new Vector3(-280.81183f, 4.989685f, -320.8515f), 1188); + QuestStep questStep4 = new QuestStep(EInteractionType.Interact, 2014169u, new Vector3(-280.81183f, 4.989685f, -320.8515f), 1188); num3 = 6; List list125 = new List(num3); CollectionsMarshal.SetCount(list125, num3); @@ -427094,13 +427191,13 @@ public static class AssemblyQuestLoader span4[num4] = null; num4++; span4[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - questStep5.CompletionQuestVariablesFlags = list125; - reference95 = questStep5; - obj90.Steps = list122; - reference92 = obj90; + questStep4.CompletionQuestVariablesFlags = list125; + reference95 = questStep4; + obj91.Steps = list122; + reference92 = obj91; num++; ref QuestSequence reference96 = ref span2[num]; - QuestSequence obj91 = new QuestSequence + QuestSequence obj92 = new QuestSequence { Sequence = 2 }; @@ -427132,11 +427229,11 @@ public static class AssemblyQuestLoader } } }; - obj91.Steps = list126; - reference96 = obj91; + obj92.Steps = list126; + reference96 = obj92; num++; ref QuestSequence reference97 = ref span2[num]; - QuestSequence obj92 = new QuestSequence + QuestSequence obj93 = new QuestSequence { Sequence = byte.MaxValue }; @@ -427149,8 +427246,8 @@ public static class AssemblyQuestLoader { AetheryteShortcut = EAetheryteLocation.KozamaukaOkHanu }; - obj92.Steps = list127; - reference97 = obj92; + obj93.Steps = list127; + reference97 = obj93; questRoot15.QuestSequence = list120; AddQuest(questId15, questRoot15); QuestId questId16 = new QuestId(5065); @@ -427168,7 +427265,7 @@ public static class AssemblyQuestLoader span2 = CollectionsMarshal.AsSpan(list129); num = 0; ref QuestSequence reference98 = ref span2[num]; - QuestSequence obj93 = new QuestSequence + QuestSequence obj94 = new QuestSequence { Sequence = 0 }; @@ -427178,11 +427275,11 @@ public static class AssemblyQuestLoader span3 = CollectionsMarshal.AsSpan(list130); index2 = 0; span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048831u, new Vector3(252.76562f, 13.481276f, -579.30884f), 1188); - obj93.Steps = list130; - reference98 = obj93; + obj94.Steps = list130; + reference98 = obj94; num++; ref QuestSequence reference99 = ref span2[num]; - QuestSequence obj94 = new QuestSequence + QuestSequence obj95 = new QuestSequence { Sequence = 1 }; @@ -427192,7 +427289,7 @@ public static class AssemblyQuestLoader span3 = CollectionsMarshal.AsSpan(list131); num2 = 0; ref QuestStep reference100 = ref span3[num2]; - QuestStep obj95 = new QuestStep(EInteractionType.Interact, 1048786u, new Vector3(-193.3471f, 6.277148f, -443.50348f), 1188) + QuestStep obj96 = new QuestStep(EInteractionType.Interact, 1048786u, new Vector3(-193.3471f, 6.277148f, -443.50348f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaOkHanu }; @@ -427212,11 +427309,11 @@ public static class AssemblyQuestLoader span4[num3] = null; num3++; span4[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - obj95.CompletionQuestVariablesFlags = list132; - reference100 = obj95; + obj96.CompletionQuestVariablesFlags = list132; + reference100 = obj96; num2++; ref QuestStep reference101 = ref span3[num2]; - QuestStep obj96 = new QuestStep(EInteractionType.Interact, 1048787u, new Vector3(-143.51111f, 9.842161f, -425.7115f), 1188) + QuestStep obj97 = new QuestStep(EInteractionType.Interact, 1048787u, new Vector3(-143.51111f, 9.842161f, -425.7115f), 1188) { Fly = true }; @@ -427236,11 +427333,11 @@ public static class AssemblyQuestLoader span4[num4] = null; num4++; span4[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - obj96.CompletionQuestVariablesFlags = list133; - reference101 = obj96; + obj97.CompletionQuestVariablesFlags = list133; + reference101 = obj97; num2++; ref QuestStep reference102 = ref span3[num2]; - QuestStep obj97 = new QuestStep(EInteractionType.Interact, 1048785u, new Vector3(-121.26343f, 9.773314f, -551.1406f), 1188) + QuestStep obj98 = new QuestStep(EInteractionType.Interact, 1048785u, new Vector3(-121.26343f, 9.773314f, -551.1406f), 1188) { Fly = true }; @@ -427260,13 +427357,13 @@ public static class AssemblyQuestLoader span4[num3] = null; num3++; span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - obj97.CompletionQuestVariablesFlags = list134; - reference102 = obj97; - obj94.Steps = list131; - reference99 = obj94; + obj98.CompletionQuestVariablesFlags = list134; + reference102 = obj98; + obj95.Steps = list131; + reference99 = obj95; num++; ref QuestSequence reference103 = ref span2[num]; - QuestSequence obj98 = new QuestSequence + QuestSequence obj99 = new QuestSequence { Sequence = byte.MaxValue }; @@ -427276,8 +427373,8 @@ public static class AssemblyQuestLoader span3 = CollectionsMarshal.AsSpan(list135); index2 = 0; span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1048831u, new Vector3(252.76562f, 13.481276f, -579.30884f), 1188); - obj98.Steps = list135; - reference103 = obj98; + obj99.Steps = list135; + reference103 = obj99; questRoot16.QuestSequence = list129; AddQuest(questId16, questRoot16); QuestId questId17 = new QuestId(5066); @@ -427295,7 +427392,7 @@ public static class AssemblyQuestLoader span2 = CollectionsMarshal.AsSpan(list137); num = 0; ref QuestSequence reference104 = ref span2[num]; - QuestSequence obj99 = new QuestSequence + QuestSequence obj100 = new QuestSequence { Sequence = 0 }; @@ -427305,11 +427402,11 @@ public static class AssemblyQuestLoader span3 = CollectionsMarshal.AsSpan(list138); num2 = 0; span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1048836u, new Vector3(-578.91205f, 6.1739964f, -472.80084f), 1188); - obj99.Steps = list138; - reference104 = obj99; + obj100.Steps = list138; + reference104 = obj100; num++; ref QuestSequence reference105 = ref span2[num]; - QuestSequence obj100 = new QuestSequence + QuestSequence obj101 = new QuestSequence { Sequence = 1 }; @@ -427322,11 +427419,11 @@ public static class AssemblyQuestLoader { Fly = true }; - obj100.Steps = list139; - reference105 = obj100; + obj101.Steps = list139; + reference105 = obj101; num++; ref QuestSequence reference106 = ref span2[num]; - QuestSequence obj101 = new QuestSequence + QuestSequence obj102 = new QuestSequence { Sequence = 2 }; @@ -427340,11 +427437,11 @@ public static class AssemblyQuestLoader StopDistance = 0.5f, Emote = EEmote.Pray }; - obj101.Steps = list140; - reference106 = obj101; + obj102.Steps = list140; + reference106 = obj102; num++; ref QuestSequence reference107 = ref span2[num]; - QuestSequence obj102 = new QuestSequence + QuestSequence obj103 = new QuestSequence { Sequence = 3 }; @@ -427357,11 +427454,11 @@ public static class AssemblyQuestLoader { DisableNavmesh = true }; - obj102.Steps = list141; - reference107 = obj102; + obj103.Steps = list141; + reference107 = obj103; num++; ref QuestSequence reference108 = ref span2[num]; - QuestSequence obj103 = new QuestSequence + QuestSequence obj104 = new QuestSequence { Sequence = byte.MaxValue }; @@ -427374,8 +427471,8 @@ public static class AssemblyQuestLoader { StopDistance = 7f }; - obj103.Steps = list142; - reference108 = obj103; + obj104.Steps = list142; + reference108 = obj104; questRoot17.QuestSequence = list137; AddQuest(questId17, questRoot17); QuestId questId18 = new QuestId(5067); @@ -427393,7 +427490,7 @@ public static class AssemblyQuestLoader span2 = CollectionsMarshal.AsSpan(list144); num = 0; ref QuestSequence reference109 = ref span2[num]; - QuestSequence obj104 = new QuestSequence + QuestSequence obj105 = new QuestSequence { Sequence = 0 }; @@ -427403,11 +427500,11 @@ public static class AssemblyQuestLoader span3 = CollectionsMarshal.AsSpan(list145); index2 = 0; span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048783u, new Vector3(-269.91687f, 5.9870257f, -431.47937f), 1188); - obj104.Steps = list145; - reference109 = obj104; + obj105.Steps = list145; + reference109 = obj105; num++; ref QuestSequence reference110 = ref span2[num]; - QuestSequence obj105 = new QuestSequence + QuestSequence obj106 = new QuestSequence { Sequence = 1 }; @@ -427417,7 +427514,7 @@ public static class AssemblyQuestLoader span3 = CollectionsMarshal.AsSpan(list146); num2 = 0; ref QuestStep reference111 = ref span3[num2]; - QuestStep obj106 = new QuestStep(EInteractionType.Combat, 1050705u, new Vector3(-218.24988f, 0.4f, -41.519836f), 1188) + QuestStep obj107 = new QuestStep(EInteractionType.Combat, 1050705u, new Vector3(-218.24988f, 0.4f, -41.519836f), 1188) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -427428,13 +427525,13 @@ public static class AssemblyQuestLoader span6 = CollectionsMarshal.AsSpan(list147); num4 = 0; span6[num4] = 17659u; - obj106.KillEnemyDataIds = list147; - reference111 = obj106; - obj105.Steps = list146; - reference110 = obj105; + obj107.KillEnemyDataIds = list147; + reference111 = obj107; + obj106.Steps = list146; + reference110 = obj106; num++; ref QuestSequence reference112 = ref span2[num]; - QuestSequence obj107 = new QuestSequence + QuestSequence obj108 = new QuestSequence { Sequence = 2 }; @@ -427447,11 +427544,11 @@ public static class AssemblyQuestLoader { StopDistance = 7f }; - obj107.Steps = list148; - reference112 = obj107; + obj108.Steps = list148; + reference112 = obj108; num++; ref QuestSequence reference113 = ref span2[num]; - QuestSequence obj108 = new QuestSequence + QuestSequence obj109 = new QuestSequence { Sequence = byte.MaxValue }; @@ -427465,8 +427562,8 @@ public static class AssemblyQuestLoader Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaOkHanu }; - obj108.Steps = list149; - reference113 = obj108; + obj109.Steps = list149; + reference113 = obj109; questRoot18.QuestSequence = list144; AddQuest(questId18, questRoot18); QuestId questId19 = new QuestId(5068); @@ -427484,7 +427581,7 @@ public static class AssemblyQuestLoader span2 = CollectionsMarshal.AsSpan(list151); num = 0; ref QuestSequence reference114 = ref span2[num]; - QuestSequence obj109 = new QuestSequence + QuestSequence obj110 = new QuestSequence { Sequence = 0 }; @@ -427494,11 +427591,11 @@ public static class AssemblyQuestLoader span3 = CollectionsMarshal.AsSpan(list152); index2 = 0; span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1050707u, new Vector3(-183.73395f, 10.893587f, -584.2832f), 1188); - obj109.Steps = list152; - reference114 = obj109; + obj110.Steps = list152; + reference114 = obj110; num++; ref QuestSequence reference115 = ref span2[num]; - QuestSequence obj110 = new QuestSequence + QuestSequence obj111 = new QuestSequence { Sequence = 1 }; @@ -427511,11 +427608,11 @@ public static class AssemblyQuestLoader { Fly = true }; - obj110.Steps = list153; - reference115 = obj110; + obj111.Steps = list153; + reference115 = obj111; num++; ref QuestSequence reference116 = ref span2[num]; - QuestSequence obj111 = new QuestSequence + QuestSequence obj112 = new QuestSequence { Sequence = 2 }; @@ -427540,11 +427637,11 @@ public static class AssemblyQuestLoader { Fly = true }; - obj111.Steps = list154; - reference116 = obj111; + obj112.Steps = list154; + reference116 = obj112; num++; ref QuestSequence reference117 = ref span2[num]; - QuestSequence obj112 = new QuestSequence + QuestSequence obj113 = new QuestSequence { Sequence = byte.MaxValue }; @@ -427558,8 +427655,8 @@ public static class AssemblyQuestLoader Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaOkHanu }; - obj112.Steps = list155; - reference117 = obj112; + obj113.Steps = list155; + reference117 = obj113; questRoot19.QuestSequence = list151; AddQuest(questId19, questRoot19); QuestId questId20 = new QuestId(5069); @@ -427577,7 +427674,7 @@ public static class AssemblyQuestLoader span2 = CollectionsMarshal.AsSpan(list157); num = 0; ref QuestSequence reference118 = ref span2[num]; - QuestSequence obj113 = new QuestSequence + QuestSequence obj114 = new QuestSequence { Sequence = 0 }; @@ -427587,11 +427684,11 @@ public static class AssemblyQuestLoader span3 = CollectionsMarshal.AsSpan(list158); index2 = 0; span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048784u, new Vector3(-115.617676f, 25.086319f, -551.5984f), 1188); - obj113.Steps = list158; - reference118 = obj113; + obj114.Steps = list158; + reference118 = obj114; num++; ref QuestSequence reference119 = ref span2[num]; - QuestSequence obj114 = new QuestSequence + QuestSequence obj115 = new QuestSequence { Sequence = 1 }; @@ -427601,7 +427698,7 @@ public static class AssemblyQuestLoader span3 = CollectionsMarshal.AsSpan(list159); num2 = 0; ref QuestStep reference120 = ref span3[num2]; - QuestStep obj115 = new QuestStep(EInteractionType.Interact, 1048898u, new Vector3(524.1931f, 15.639493f, 5.4473877f), 1188) + QuestStep obj116 = new QuestStep(EInteractionType.Interact, 1048898u, new Vector3(524.1931f, 15.639493f, 5.4473877f), 1188) { Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaManyFires @@ -427622,11 +427719,11 @@ public static class AssemblyQuestLoader span4[num3] = null; num3++; span4[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - obj115.CompletionQuestVariablesFlags = list160; - reference120 = obj115; + obj116.CompletionQuestVariablesFlags = list160; + reference120 = obj116; num2++; ref QuestStep reference121 = ref span3[num2]; - QuestStep obj116 = new QuestStep(EInteractionType.Interact, 1048897u, new Vector3(551.6593f, 12.326415f, -32.852783f), 1188) + QuestStep obj117 = new QuestStep(EInteractionType.Interact, 1048897u, new Vector3(551.6593f, 12.326415f, -32.852783f), 1188) { Fly = true }; @@ -427646,11 +427743,11 @@ public static class AssemblyQuestLoader span4[num4] = null; num4++; span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - obj116.CompletionQuestVariablesFlags = list161; - reference121 = obj116; + obj117.CompletionQuestVariablesFlags = list161; + reference121 = obj117; num2++; ref QuestStep reference122 = ref span3[num2]; - QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 1048896u, new Vector3(513.0541f, 15.9776535f, -54.36792f), 1188); + QuestStep questStep5 = new QuestStep(EInteractionType.Interact, 1048896u, new Vector3(513.0541f, 15.9776535f, -54.36792f), 1188); num4 = 6; List list162 = new List(num4); CollectionsMarshal.SetCount(list162, num4); @@ -427667,13 +427764,13 @@ public static class AssemblyQuestLoader span4[num3] = null; num3++; span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - questStep6.CompletionQuestVariablesFlags = list162; - reference122 = questStep6; - obj114.Steps = list159; - reference119 = obj114; + questStep5.CompletionQuestVariablesFlags = list162; + reference122 = questStep5; + obj115.Steps = list159; + reference119 = obj115; num++; ref QuestSequence reference123 = ref span2[num]; - QuestSequence obj117 = new QuestSequence + QuestSequence obj118 = new QuestSequence { Sequence = byte.MaxValue }; @@ -427686,8 +427783,8 @@ public static class AssemblyQuestLoader { AetheryteShortcut = EAetheryteLocation.KozamaukaOkHanu }; - obj117.Steps = list163; - reference123 = obj117; + obj118.Steps = list163; + reference123 = obj118; questRoot20.QuestSequence = list157; AddQuest(questId20, questRoot20); QuestId questId21 = new QuestId(5070); @@ -427705,7 +427802,7 @@ public static class AssemblyQuestLoader span2 = CollectionsMarshal.AsSpan(list165); num = 0; ref QuestSequence reference124 = ref span2[num]; - QuestSequence obj118 = new QuestSequence + QuestSequence obj119 = new QuestSequence { Sequence = 0 }; @@ -427715,11 +427812,11 @@ public static class AssemblyQuestLoader span3 = CollectionsMarshal.AsSpan(list166); num2 = 0; span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051372u, new Vector3(-183.79492f, 6.5185943f, -498.0392f), 1188); - obj118.Steps = list166; - reference124 = obj118; + obj119.Steps = list166; + reference124 = obj119; num++; ref QuestSequence reference125 = ref span2[num]; - QuestSequence obj119 = new QuestSequence + QuestSequence obj120 = new QuestSequence { Sequence = 1 }; @@ -427732,11 +427829,11 @@ public static class AssemblyQuestLoader { Fly = true }; - obj119.Steps = list167; - reference125 = obj119; + obj120.Steps = list167; + reference125 = obj120; num++; ref QuestSequence reference126 = ref span2[num]; - QuestSequence obj120 = new QuestSequence + QuestSequence obj121 = new QuestSequence { Sequence = byte.MaxValue }; @@ -427746,8 +427843,8 @@ public static class AssemblyQuestLoader span3 = CollectionsMarshal.AsSpan(list168); num2 = 0; span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051374u, new Vector3(-229.02264f, 10.041226f, -396.2005f), 1188); - obj120.Steps = list168; - reference126 = obj120; + obj121.Steps = list168; + reference126 = obj121; questRoot21.QuestSequence = list165; AddQuest(questId21, questRoot21); QuestId questId22 = new QuestId(5071); @@ -427765,7 +427862,7 @@ public static class AssemblyQuestLoader span2 = CollectionsMarshal.AsSpan(list170); num = 0; ref QuestSequence reference127 = ref span2[num]; - QuestSequence obj121 = new QuestSequence + QuestSequence obj122 = new QuestSequence { Sequence = 0 }; @@ -427775,11 +427872,11 @@ public static class AssemblyQuestLoader span3 = CollectionsMarshal.AsSpan(list171); index2 = 0; span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048853u, new Vector3(-431.99817f, 121.63345f, 304.3412f), 1188); - obj121.Steps = list171; - reference127 = obj121; + obj122.Steps = list171; + reference127 = obj122; num++; ref QuestSequence reference128 = ref span2[num]; - QuestSequence obj122 = new QuestSequence + QuestSequence obj123 = new QuestSequence { Sequence = 1 }; @@ -427789,7 +427886,7 @@ public static class AssemblyQuestLoader span3 = CollectionsMarshal.AsSpan(list172); num2 = 0; ref QuestStep reference129 = ref span3[num2]; - QuestStep obj123 = new QuestStep(EInteractionType.Interact, 2014174u, new Vector3(-756.89325f, 135.66797f, 83.78723f), 1188) + QuestStep obj124 = new QuestStep(EInteractionType.Interact, 2014174u, new Vector3(-756.89325f, 135.66797f, 83.78723f), 1188) { Fly = true }; @@ -427809,11 +427906,11 @@ public static class AssemblyQuestLoader span4[num4] = null; num4++; span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - obj123.CompletionQuestVariablesFlags = list173; - reference129 = obj123; + obj124.CompletionQuestVariablesFlags = list173; + reference129 = obj124; num2++; ref QuestStep reference130 = ref span3[num2]; - QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 2014175u, new Vector3(-786.3432f, 135.66797f, 121.9043f), 1188); + QuestStep questStep6 = new QuestStep(EInteractionType.Interact, 2014175u, new Vector3(-786.3432f, 135.66797f, 121.9043f), 1188); num4 = 6; List list174 = new List(num4); CollectionsMarshal.SetCount(list174, num4); @@ -427830,13 +427927,13 @@ public static class AssemblyQuestLoader span4[num3] = null; num3++; span4[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep7.CompletionQuestVariablesFlags = list174; - reference130 = questStep7; - obj122.Steps = list172; - reference128 = obj122; + questStep6.CompletionQuestVariablesFlags = list174; + reference130 = questStep6; + obj123.Steps = list172; + reference128 = obj123; num++; ref QuestSequence reference131 = ref span2[num]; - QuestSequence obj124 = new QuestSequence + QuestSequence obj125 = new QuestSequence { Sequence = byte.MaxValue }; @@ -427849,8 +427946,8 @@ public static class AssemblyQuestLoader { AetheryteShortcut = EAetheryteLocation.KozamaukaEarthenshire }; - obj124.Steps = list175; - reference131 = obj124; + obj125.Steps = list175; + reference131 = obj125; questRoot22.QuestSequence = list170; AddQuest(questId22, questRoot22); QuestId questId23 = new QuestId(5072); @@ -427868,7 +427965,7 @@ public static class AssemblyQuestLoader span2 = CollectionsMarshal.AsSpan(list177); num = 0; ref QuestSequence reference132 = ref span2[num]; - QuestSequence obj125 = new QuestSequence + QuestSequence obj126 = new QuestSequence { Sequence = 0 }; @@ -427878,11 +427975,11 @@ public static class AssemblyQuestLoader span3 = CollectionsMarshal.AsSpan(list178); num2 = 0; span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1048867u, new Vector3(-489.0364f, 121.63345f, 368.00183f), 1188); - obj125.Steps = list178; - reference132 = obj125; + obj126.Steps = list178; + reference132 = obj126; num++; ref QuestSequence reference133 = ref span2[num]; - QuestSequence obj126 = new QuestSequence + QuestSequence obj127 = new QuestSequence { Sequence = 1 }; @@ -427897,11 +427994,11 @@ public static class AssemblyQuestLoader }; index2++; span3[index2] = new QuestStep(EInteractionType.Interact, 1050708u, new Vector3(-296.52863f, 112.804924f, 686.2439f), 1188); - obj126.Steps = list179; - reference133 = obj126; + obj127.Steps = list179; + reference133 = obj127; num++; ref QuestSequence reference134 = ref span2[num]; - QuestSequence obj127 = new QuestSequence + QuestSequence obj128 = new QuestSequence { Sequence = 2 }; @@ -427914,11 +428011,11 @@ public static class AssemblyQuestLoader { Fly = true }; - obj127.Steps = list180; - reference134 = obj127; + obj128.Steps = list180; + reference134 = obj128; num++; ref QuestSequence reference135 = ref span2[num]; - QuestSequence obj128 = new QuestSequence + QuestSequence obj129 = new QuestSequence { Sequence = 3 }; @@ -427933,11 +428030,11 @@ public static class AssemblyQuestLoader }; index2++; span3[index2] = new QuestStep(EInteractionType.Interact, 1050708u, new Vector3(-296.52863f, 112.804924f, 686.2439f), 1188); - obj128.Steps = list181; - reference135 = obj128; + obj129.Steps = list181; + reference135 = obj129; num++; ref QuestSequence reference136 = ref span2[num]; - QuestSequence obj129 = new QuestSequence + QuestSequence obj130 = new QuestSequence { Sequence = byte.MaxValue }; @@ -427950,8 +428047,8 @@ public static class AssemblyQuestLoader { AetheryteShortcut = EAetheryteLocation.KozamaukaEarthenshire }; - obj129.Steps = list182; - reference136 = obj129; + obj130.Steps = list182; + reference136 = obj130; questRoot23.QuestSequence = list177; AddQuest(questId23, questRoot23); QuestId questId24 = new QuestId(5073); @@ -427969,7 +428066,7 @@ public static class AssemblyQuestLoader span2 = CollectionsMarshal.AsSpan(list184); num = 0; ref QuestSequence reference137 = ref span2[num]; - QuestSequence obj130 = new QuestSequence + QuestSequence obj131 = new QuestSequence { Sequence = 0 }; @@ -427979,11 +428076,11 @@ public static class AssemblyQuestLoader span3 = CollectionsMarshal.AsSpan(list185); index2 = 0; span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048854u, new Vector3(-514.1833f, 121.63345f, 293.38513f), 1188); - obj130.Steps = list185; - reference137 = obj130; + obj131.Steps = list185; + reference137 = obj131; num++; ref QuestSequence reference138 = ref span2[num]; - QuestSequence obj131 = new QuestSequence + QuestSequence obj132 = new QuestSequence { Sequence = 1 }; @@ -427993,7 +428090,7 @@ public static class AssemblyQuestLoader span3 = CollectionsMarshal.AsSpan(list186); num2 = 0; ref QuestStep reference139 = ref span3[num2]; - QuestStep obj132 = new QuestStep(EInteractionType.Interact, 2014177u, new Vector3(-351.40002f, 109.57495f, 62.210938f), 1188) + QuestStep obj133 = new QuestStep(EInteractionType.Interact, 2014177u, new Vector3(-351.40002f, 109.57495f, 62.210938f), 1188) { Fly = true }; @@ -428013,11 +428110,11 @@ public static class AssemblyQuestLoader span4[num4] = null; num4++; span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - obj132.CompletionQuestVariablesFlags = list187; - reference139 = obj132; + obj133.CompletionQuestVariablesFlags = list187; + reference139 = obj133; num2++; ref QuestStep reference140 = ref span3[num2]; - QuestStep obj133 = new QuestStep(EInteractionType.Interact, 2014178u, new Vector3(-172.32019f, 109.54443f, 128.67932f), 1188) + QuestStep obj134 = new QuestStep(EInteractionType.Interact, 2014178u, new Vector3(-172.32019f, 109.54443f, 128.67932f), 1188) { Fly = true }; @@ -428037,11 +428134,11 @@ public static class AssemblyQuestLoader span4[num3] = null; num3++; span4[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - obj133.CompletionQuestVariablesFlags = list188; - reference140 = obj133; + obj134.CompletionQuestVariablesFlags = list188; + reference140 = obj134; num2++; ref QuestStep reference141 = ref span3[num2]; - QuestStep obj134 = new QuestStep(EInteractionType.Interact, 2014179u, new Vector3(142.96167f, 109.57495f, 169.604f), 1188) + QuestStep obj135 = new QuestStep(EInteractionType.Interact, 2014179u, new Vector3(142.96167f, 109.57495f, 169.604f), 1188) { Fly = true }; @@ -428061,11 +428158,11 @@ public static class AssemblyQuestLoader span4[num4] = null; num4++; span4[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - obj134.CompletionQuestVariablesFlags = list189; - reference141 = obj134; + obj135.CompletionQuestVariablesFlags = list189; + reference141 = obj135; num2++; ref QuestStep reference142 = ref span3[num2]; - QuestStep obj135 = new QuestStep(EInteractionType.Interact, 2014180u, new Vector3(214.86218f, 109.54443f, 138.68921f), 1188) + QuestStep obj136 = new QuestStep(EInteractionType.Interact, 2014180u, new Vector3(214.86218f, 109.54443f, 138.68921f), 1188) { Fly = true }; @@ -428085,13 +428182,13 @@ public static class AssemblyQuestLoader span4[num3] = null; num3++; span4[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - obj135.CompletionQuestVariablesFlags = list190; - reference142 = obj135; - obj131.Steps = list186; - reference138 = obj131; + obj136.CompletionQuestVariablesFlags = list190; + reference142 = obj136; + obj132.Steps = list186; + reference138 = obj132; num++; ref QuestSequence reference143 = ref span2[num]; - QuestSequence obj136 = new QuestSequence + QuestSequence obj137 = new QuestSequence { Sequence = byte.MaxValue }; @@ -428104,8 +428201,8 @@ public static class AssemblyQuestLoader { AetheryteShortcut = EAetheryteLocation.KozamaukaEarthenshire }; - obj136.Steps = list191; - reference143 = obj136; + obj137.Steps = list191; + reference143 = obj137; questRoot24.QuestSequence = list184; AddQuest(questId24, questRoot24); QuestId questId25 = new QuestId(5074); @@ -428123,7 +428220,7 @@ public static class AssemblyQuestLoader span2 = CollectionsMarshal.AsSpan(list193); num = 0; ref QuestSequence reference144 = ref span2[num]; - QuestSequence obj137 = new QuestSequence + QuestSequence obj138 = new QuestSequence { Sequence = 0 }; @@ -428133,11 +428230,11 @@ public static class AssemblyQuestLoader span3 = CollectionsMarshal.AsSpan(list194); num2 = 0; span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1048855u, new Vector3(-491.63043f, 121.63846f, 271.50366f), 1188); - obj137.Steps = list194; - reference144 = obj137; + obj138.Steps = list194; + reference144 = obj138; num++; ref QuestSequence reference145 = ref span2[num]; - QuestSequence obj138 = new QuestSequence + QuestSequence obj139 = new QuestSequence { Sequence = 1 }; @@ -428149,11 +428246,11 @@ public static class AssemblyQuestLoader span3[index2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-444.31415f, 123.89709f, 129.46912f), 1188); index2++; span3[index2] = new QuestStep(EInteractionType.Interact, 1050709u, new Vector3(-474.2962f, 127.79511f, 98.89368f), 1188); - obj138.Steps = list195; - reference145 = obj138; + obj139.Steps = list195; + reference145 = obj139; num++; ref QuestSequence reference146 = ref span2[num]; - QuestSequence obj139 = new QuestSequence + QuestSequence obj140 = new QuestSequence { Sequence = 2 }; @@ -428167,11 +428264,11 @@ public static class AssemblyQuestLoader span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-561.2461f, 138.97241f, 57.90152f), 1188); num2++; span3[num2] = new QuestStep(EInteractionType.Interact, 1050710u, new Vector3(-599.7864f, 142.85991f, 35.934937f), 1188); - obj139.Steps = list196; - reference146 = obj139; + obj140.Steps = list196; + reference146 = obj140; num++; ref QuestSequence reference147 = ref span2[num]; - QuestSequence obj140 = new QuestSequence + QuestSequence obj141 = new QuestSequence { Sequence = 3 }; @@ -428181,7 +428278,7 @@ public static class AssemblyQuestLoader span3 = CollectionsMarshal.AsSpan(list197); index2 = 0; ref QuestStep reference148 = ref span3[index2]; - QuestStep obj141 = new QuestStep(EInteractionType.Combat, null, new Vector3(-539.3906f, 139.2539f, -65.13339f), 1188) + QuestStep obj142 = new QuestStep(EInteractionType.Combat, null, new Vector3(-539.3906f, 139.2539f, -65.13339f), 1188) { StopDistance = 0.25f, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -428192,13 +428289,13 @@ public static class AssemblyQuestLoader span6 = CollectionsMarshal.AsSpan(list198); num4 = 0; span6[num4] = 17660u; - obj141.KillEnemyDataIds = list198; - reference148 = obj141; - obj140.Steps = list197; - reference147 = obj140; + obj142.KillEnemyDataIds = list198; + reference148 = obj142; + obj141.Steps = list197; + reference147 = obj141; num++; ref QuestSequence reference149 = ref span2[num]; - QuestSequence obj142 = new QuestSequence + QuestSequence obj143 = new QuestSequence { Sequence = 4 }; @@ -428211,11 +428308,11 @@ public static class AssemblyQuestLoader { StopDistance = 5f }; - obj142.Steps = list199; - reference149 = obj142; + obj143.Steps = list199; + reference149 = obj143; num++; ref QuestSequence reference150 = ref span2[num]; - QuestSequence obj143 = new QuestSequence + QuestSequence obj144 = new QuestSequence { Sequence = byte.MaxValue }; @@ -428233,8 +428330,8 @@ public static class AssemblyQuestLoader { AetheryteShortcut = EAetheryteLocation.KozamaukaEarthenshire }; - obj143.Steps = list200; - reference150 = obj143; + obj144.Steps = list200; + reference150 = obj144; questRoot25.QuestSequence = list193; AddQuest(questId25, questRoot25); QuestId questId26 = new QuestId(5075); @@ -428252,7 +428349,7 @@ public static class AssemblyQuestLoader span2 = CollectionsMarshal.AsSpan(list202); num = 0; ref QuestSequence reference151 = ref span2[num]; - QuestSequence obj144 = new QuestSequence + QuestSequence obj145 = new QuestSequence { Sequence = 0 }; @@ -428262,11 +428359,11 @@ public static class AssemblyQuestLoader span3 = CollectionsMarshal.AsSpan(list203); num2 = 0; span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1048856u, new Vector3(-499.6262f, 121.63344f, 347.70728f), 1188); - obj144.Steps = list203; - reference151 = obj144; + obj145.Steps = list203; + reference151 = obj145; num++; ref QuestSequence reference152 = ref span2[num]; - QuestSequence obj145 = new QuestSequence + QuestSequence obj146 = new QuestSequence { Sequence = 1 }; @@ -428276,7 +428373,7 @@ public static class AssemblyQuestLoader span3 = CollectionsMarshal.AsSpan(list204); index2 = 0; ref QuestStep reference153 = ref span3[index2]; - QuestStep obj146 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-74.84617f, 116.64437f, 590.74945f), 1188) + QuestStep obj147 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-74.84617f, 116.64437f, 590.74945f), 1188) { Fly = true }; @@ -428301,11 +428398,11 @@ public static class AssemblyQuestLoader skipStepConditions.CompletionQuestVariablesFlags = list205; skipStepConditions.Flying = ELockedSkipCondition.Locked; skipConditions.StepIf = skipStepConditions; - obj146.SkipConditions = skipConditions; - reference153 = obj146; + obj147.SkipConditions = skipConditions; + reference153 = obj147; index2++; ref QuestStep reference154 = ref span3[index2]; - QuestStep obj147 = new QuestStep(EInteractionType.Interact, 2014184u, new Vector3(-5.1728516f, -6.729248f, 619.98914f), 1188) + QuestStep obj148 = new QuestStep(EInteractionType.Interact, 2014184u, new Vector3(-5.1728516f, -6.729248f, 619.98914f), 1188) { DisableNavmesh = true, Fly = true @@ -428326,11 +428423,11 @@ public static class AssemblyQuestLoader span4[num4] = null; num4++; span4[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - obj147.CompletionQuestVariablesFlags = list206; - reference154 = obj147; + obj148.CompletionQuestVariablesFlags = list206; + reference154 = obj148; index2++; ref QuestStep reference155 = ref span3[index2]; - QuestStep obj148 = new QuestStep(EInteractionType.Interact, 2014182u, new Vector3(112.93201f, -2.7314453f, 542.9617f), 1188) + QuestStep obj149 = new QuestStep(EInteractionType.Interact, 2014182u, new Vector3(112.93201f, -2.7314453f, 542.9617f), 1188) { Fly = true }; @@ -428350,11 +428447,11 @@ public static class AssemblyQuestLoader span4[num3] = null; num3++; span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - obj148.CompletionQuestVariablesFlags = list207; - reference155 = obj148; + obj149.CompletionQuestVariablesFlags = list207; + reference155 = obj149; index2++; ref QuestStep reference156 = ref span3[index2]; - QuestStep obj149 = new QuestStep(EInteractionType.Interact, 2014183u, new Vector3(266.3462f, -1.9684448f, 498.58838f), 1188) + QuestStep obj150 = new QuestStep(EInteractionType.Interact, 2014183u, new Vector3(266.3462f, -1.9684448f, 498.58838f), 1188) { Fly = true }; @@ -428374,13 +428471,13 @@ public static class AssemblyQuestLoader span4[num4] = null; num4++; span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - obj149.CompletionQuestVariablesFlags = list208; - reference156 = obj149; - obj145.Steps = list204; - reference152 = obj145; + obj150.CompletionQuestVariablesFlags = list208; + reference156 = obj150; + obj146.Steps = list204; + reference152 = obj146; num++; ref QuestSequence reference157 = ref span2[num]; - QuestSequence obj150 = new QuestSequence + QuestSequence obj151 = new QuestSequence { Sequence = byte.MaxValue }; @@ -428393,8 +428490,8 @@ public static class AssemblyQuestLoader { AetheryteShortcut = EAetheryteLocation.KozamaukaManyFires }; - obj150.Steps = list209; - reference157 = obj150; + obj151.Steps = list209; + reference157 = obj151; questRoot26.QuestSequence = list202; AddQuest(questId26, questRoot26); QuestId questId27 = new QuestId(5076); @@ -428412,7 +428509,7 @@ public static class AssemblyQuestLoader span2 = CollectionsMarshal.AsSpan(list211); num = 0; ref QuestSequence reference158 = ref span2[num]; - QuestSequence obj151 = new QuestSequence + QuestSequence obj152 = new QuestSequence { Sequence = 0 }; @@ -428422,11 +428519,11 @@ public static class AssemblyQuestLoader span3 = CollectionsMarshal.AsSpan(list212); index2 = 0; span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048857u, new Vector3(-515.7092f, 122.40314f, 342.9159f), 1188); - obj151.Steps = list212; - reference158 = obj151; + obj152.Steps = list212; + reference158 = obj152; num++; ref QuestSequence reference159 = ref span2[num]; - QuestSequence obj152 = new QuestSequence + QuestSequence obj153 = new QuestSequence { Sequence = 1 }; @@ -428439,11 +428536,11 @@ public static class AssemblyQuestLoader { AetheryteShortcut = EAetheryteLocation.KozamaukaManyFires }; - obj152.Steps = list213; - reference159 = obj152; + obj153.Steps = list213; + reference159 = obj153; num++; ref QuestSequence reference160 = ref span2[num]; - QuestSequence obj153 = new QuestSequence + QuestSequence obj154 = new QuestSequence { Sequence = byte.MaxValue }; @@ -428456,8 +428553,8 @@ public static class AssemblyQuestLoader { AetheryteShortcut = EAetheryteLocation.KozamaukaEarthenshire }; - obj153.Steps = list214; - reference160 = obj153; + obj154.Steps = list214; + reference160 = obj154; questRoot27.QuestSequence = list211; AddQuest(questId27, questRoot27); QuestId questId28 = new QuestId(5077); @@ -428475,7 +428572,7 @@ public static class AssemblyQuestLoader span2 = CollectionsMarshal.AsSpan(list216); num = 0; ref QuestSequence reference161 = ref span2[num]; - QuestSequence obj154 = new QuestSequence + QuestSequence obj155 = new QuestSequence { Sequence = 0 }; @@ -428485,11 +428582,11 @@ public static class AssemblyQuestLoader span3 = CollectionsMarshal.AsSpan(list217); num2 = 0; span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1048858u, new Vector3(-426.87115f, 121.63345f, 320.88184f), 1188); - obj154.Steps = list217; - reference161 = obj154; + obj155.Steps = list217; + reference161 = obj155; num++; ref QuestSequence reference162 = ref span2[num]; - QuestSequence obj155 = new QuestSequence + QuestSequence obj156 = new QuestSequence { Sequence = 1 }; @@ -428499,11 +428596,11 @@ public static class AssemblyQuestLoader span3 = CollectionsMarshal.AsSpan(list218); index2 = 0; span3[index2] = new QuestStep(EInteractionType.Interact, 2014185u, new Vector3(-427.38995f, 122.91138f, 319.38647f), 1188); - obj155.Steps = list218; - reference162 = obj155; + obj156.Steps = list218; + reference162 = obj156; num++; ref QuestSequence reference163 = ref span2[num]; - QuestSequence obj156 = new QuestSequence + QuestSequence obj157 = new QuestSequence { Sequence = 2 }; @@ -428513,11 +428610,11 @@ public static class AssemblyQuestLoader span3 = CollectionsMarshal.AsSpan(list219); num2 = 0; span3[num2] = new QuestStep(EInteractionType.Interact, 2014187u, new Vector3(-548.2719f, 133.83679f, 698.1765f), 1188); - obj156.Steps = list219; - reference163 = obj156; + obj157.Steps = list219; + reference163 = obj157; num++; ref QuestSequence reference164 = ref span2[num]; - QuestSequence obj157 = new QuestSequence + QuestSequence obj158 = new QuestSequence { Sequence = 3 }; @@ -428527,11 +428624,11 @@ public static class AssemblyQuestLoader span3 = CollectionsMarshal.AsSpan(list220); index2 = 0; span3[index2] = new QuestStep(EInteractionType.Interact, 1048880u, new Vector3(-552.3613f, 133.86514f, 696.16235f), 1188); - obj157.Steps = list220; - reference164 = obj157; + obj158.Steps = list220; + reference164 = obj158; num++; ref QuestSequence reference165 = ref span2[num]; - QuestSequence obj158 = new QuestSequence + QuestSequence obj159 = new QuestSequence { Sequence = byte.MaxValue }; @@ -428544,8 +428641,8 @@ public static class AssemblyQuestLoader { AetheryteShortcut = EAetheryteLocation.KozamaukaEarthenshire }; - obj158.Steps = list221; - reference165 = obj158; + obj159.Steps = list221; + reference165 = obj159; questRoot28.QuestSequence = list216; AddQuest(questId28, questRoot28); QuestId questId29 = new QuestId(5078); @@ -428563,7 +428660,7 @@ public static class AssemblyQuestLoader span2 = CollectionsMarshal.AsSpan(list223); num = 0; ref QuestSequence reference166 = ref span2[num]; - QuestSequence obj159 = new QuestSequence + QuestSequence obj160 = new QuestSequence { Sequence = 0 }; @@ -428573,11 +428670,11 @@ public static class AssemblyQuestLoader span3 = CollectionsMarshal.AsSpan(list224); index2 = 0; span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048843u, new Vector3(588.7998f, 121.14124f, 176.98938f), 1188); - obj159.Steps = list224; - reference166 = obj159; + obj160.Steps = list224; + reference166 = obj160; num++; ref QuestSequence reference167 = ref span2[num]; - QuestSequence obj160 = new QuestSequence + QuestSequence obj161 = new QuestSequence { Sequence = 1 }; @@ -428587,7 +428684,7 @@ public static class AssemblyQuestLoader span3 = CollectionsMarshal.AsSpan(list225); num2 = 0; ref QuestStep reference168 = ref span3[num2]; - QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1048847u, new Vector3(615.2589f, 119.49003f, 197.58899f), 1188); + QuestStep questStep7 = new QuestStep(EInteractionType.Interact, 1048847u, new Vector3(615.2589f, 119.49003f, 197.58899f), 1188); num4 = 6; List list226 = new List(num4); CollectionsMarshal.SetCount(list226, num4); @@ -428604,11 +428701,11 @@ public static class AssemblyQuestLoader span4[num3] = null; num3++; span4[num3] = new QuestWorkValue((byte)1, 0, EQuestWorkMode.Bitwise); - questStep8.CompletionQuestVariablesFlags = list226; - reference168 = questStep8; + questStep7.CompletionQuestVariablesFlags = list226; + reference168 = questStep7; num2++; ref QuestStep reference169 = ref span3[num2]; - QuestStep questStep9 = new QuestStep(EInteractionType.Interact, 1048845u, new Vector3(568.7495f, 119.49004f, 159.53308f), 1188); + QuestStep questStep8 = new QuestStep(EInteractionType.Interact, 1048845u, new Vector3(568.7495f, 119.49004f, 159.53308f), 1188); num3 = 6; List list227 = new List(num3); CollectionsMarshal.SetCount(list227, num3); @@ -428625,11 +428722,11 @@ public static class AssemblyQuestLoader span4[num4] = null; num4++; span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep9.CompletionQuestVariablesFlags = list227; - reference169 = questStep9; + questStep8.CompletionQuestVariablesFlags = list227; + reference169 = questStep8; num2++; ref QuestStep reference170 = ref span3[num2]; - QuestStep obj161 = new QuestStep(EInteractionType.Interact, 1048846u, new Vector3(512.2606f, 114.99095f, 183.85596f), 1188) + QuestStep obj162 = new QuestStep(EInteractionType.Interact, 1048846u, new Vector3(512.2606f, 114.99095f, 183.85596f), 1188) { Fly = true }; @@ -428649,11 +428746,11 @@ public static class AssemblyQuestLoader span4[num3] = null; num3++; span4[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - obj161.CompletionQuestVariablesFlags = list228; - reference170 = obj161; + obj162.CompletionQuestVariablesFlags = list228; + reference170 = obj162; num2++; ref QuestStep reference171 = ref span3[num2]; - QuestStep obj162 = new QuestStep(EInteractionType.Interact, 1048844u, new Vector3(476.40186f, 119.9383f, 101.79285f), 1188) + QuestStep obj163 = new QuestStep(EInteractionType.Interact, 1048844u, new Vector3(476.40186f, 119.9383f, 101.79285f), 1188) { Fly = true }; @@ -428673,13 +428770,13 @@ public static class AssemblyQuestLoader span4[num4] = null; num4++; span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - obj162.CompletionQuestVariablesFlags = list229; - reference171 = obj162; - obj160.Steps = list225; - reference167 = obj160; + obj163.CompletionQuestVariablesFlags = list229; + reference171 = obj163; + obj161.Steps = list225; + reference167 = obj161; num++; ref QuestSequence reference172 = ref span2[num]; - QuestSequence obj163 = new QuestSequence + QuestSequence obj164 = new QuestSequence { Sequence = byte.MaxValue }; @@ -428692,8 +428789,8 @@ public static class AssemblyQuestLoader { Fly = true }; - obj163.Steps = list230; - reference172 = obj163; + obj164.Steps = list230; + reference172 = obj164; questRoot29.QuestSequence = list223; AddQuest(questId29, questRoot29); QuestId questId30 = new QuestId(5079); @@ -428711,7 +428808,7 @@ public static class AssemblyQuestLoader span2 = CollectionsMarshal.AsSpan(list232); num = 0; ref QuestSequence reference173 = ref span2[num]; - QuestSequence obj164 = new QuestSequence + QuestSequence obj165 = new QuestSequence { Sequence = 0 }; @@ -428721,11 +428818,11 @@ public static class AssemblyQuestLoader span3 = CollectionsMarshal.AsSpan(list233); num2 = 0; span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1048848u, new Vector3(621.51514f, 119.49004f, 175.00574f), 1188); - obj164.Steps = list233; - reference173 = obj164; + obj165.Steps = list233; + reference173 = obj165; num++; ref QuestSequence reference174 = ref span2[num]; - QuestSequence obj165 = new QuestSequence + QuestSequence obj166 = new QuestSequence { Sequence = 1 }; @@ -428735,7 +428832,7 @@ public static class AssemblyQuestLoader span3 = CollectionsMarshal.AsSpan(list234); index2 = 0; ref QuestStep reference175 = ref span3[index2]; - QuestStep obj166 = new QuestStep(EInteractionType.Combat, null, new Vector3(444.93774f, 112.59213f, 206.74438f), 1188) + QuestStep obj167 = new QuestStep(EInteractionType.Combat, null, new Vector3(444.93774f, 112.59213f, 206.74438f), 1188) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -428746,7 +428843,7 @@ public static class AssemblyQuestLoader Span span7 = CollectionsMarshal.AsSpan(list235); num3 = 0; ref ComplexCombatData reference176 = ref span7[num3]; - ComplexCombatData obj167 = new ComplexCombatData + ComplexCombatData obj168 = new ComplexCombatData { DataId = 17241u, RewardItemId = 2003643u, @@ -428768,9 +428865,9 @@ public static class AssemblyQuestLoader span4[num6] = null; num6++; span4[num6] = null; - obj167.CompletionQuestVariablesFlags = list236; - reference176 = obj167; - obj166.ComplexCombatData = list235; + obj168.CompletionQuestVariablesFlags = list236; + reference176 = obj168; + obj167.ComplexCombatData = list235; num3 = 6; List list237 = new List(num3); CollectionsMarshal.SetCount(list237, num3); @@ -428787,11 +428884,11 @@ public static class AssemblyQuestLoader span4[num4] = null; num4++; span4[num4] = null; - obj166.CompletionQuestVariablesFlags = list237; - reference175 = obj166; + obj167.CompletionQuestVariablesFlags = list237; + reference175 = obj167; index2++; ref QuestStep reference177 = ref span3[index2]; - QuestStep obj168 = new QuestStep(EInteractionType.Combat, null, new Vector3(-21.622044f, 109.937355f, 217.64447f), 1188) + QuestStep obj169 = new QuestStep(EInteractionType.Combat, null, new Vector3(-21.622044f, 109.937355f, 217.64447f), 1188) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -428802,7 +428899,7 @@ public static class AssemblyQuestLoader span7 = CollectionsMarshal.AsSpan(list238); num3 = 0; ref ComplexCombatData reference178 = ref span7[num3]; - ComplexCombatData obj169 = new ComplexCombatData + ComplexCombatData obj170 = new ComplexCombatData { DataId = 17242u, RewardItemId = 2003642u, @@ -428824,9 +428921,9 @@ public static class AssemblyQuestLoader span4[num5] = null; num5++; span4[num5] = null; - obj169.CompletionQuestVariablesFlags = list239; - reference178 = obj169; - obj168.ComplexCombatData = list238; + obj170.CompletionQuestVariablesFlags = list239; + reference178 = obj170; + obj169.ComplexCombatData = list238; num3 = 6; List list240 = new List(num3); CollectionsMarshal.SetCount(list240, num3); @@ -428843,13 +428940,13 @@ public static class AssemblyQuestLoader span4[num4] = null; num4++; span4[num4] = null; - obj168.CompletionQuestVariablesFlags = list240; - reference177 = obj168; - obj165.Steps = list234; - reference174 = obj165; + obj169.CompletionQuestVariablesFlags = list240; + reference177 = obj169; + obj166.Steps = list234; + reference174 = obj166; num++; ref QuestSequence reference179 = ref span2[num]; - QuestSequence obj170 = new QuestSequence + QuestSequence obj171 = new QuestSequence { Sequence = byte.MaxValue }; @@ -428863,8 +428960,8 @@ public static class AssemblyQuestLoader Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaManyFires }; - obj170.Steps = list241; - reference179 = obj170; + obj171.Steps = list241; + reference179 = obj171; questRoot30.QuestSequence = list232; AddQuest(questId30, questRoot30); QuestId questId31 = new QuestId(5080); @@ -428882,7 +428979,7 @@ public static class AssemblyQuestLoader span2 = CollectionsMarshal.AsSpan(list243); num = 0; ref QuestSequence reference180 = ref span2[num]; - QuestSequence obj171 = new QuestSequence + QuestSequence obj172 = new QuestSequence { Sequence = 0 }; @@ -428892,11 +428989,11 @@ public static class AssemblyQuestLoader span3 = CollectionsMarshal.AsSpan(list244); index2 = 0; span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1050714u, new Vector3(495.6587f, 113.678986f, 181.23132f), 1188); - obj171.Steps = list244; - reference180 = obj171; + obj172.Steps = list244; + reference180 = obj172; num++; ref QuestSequence reference181 = ref span2[num]; - QuestSequence obj172 = new QuestSequence + QuestSequence obj173 = new QuestSequence { Sequence = 1 }; @@ -428906,7 +429003,7 @@ public static class AssemblyQuestLoader span3 = CollectionsMarshal.AsSpan(list245); num2 = 0; ref QuestStep reference182 = ref span3[num2]; - QuestStep obj173 = new QuestStep(EInteractionType.Interact, 2014189u, new Vector3(194.93396f, 109.4834f, 145.25061f), 1188) + QuestStep obj174 = new QuestStep(EInteractionType.Interact, 2014189u, new Vector3(194.93396f, 109.4834f, 145.25061f), 1188) { Fly = true }; @@ -428926,11 +429023,11 @@ public static class AssemblyQuestLoader span4[num3] = null; num3++; span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - obj173.CompletionQuestVariablesFlags = list246; - reference182 = obj173; + obj174.CompletionQuestVariablesFlags = list246; + reference182 = obj174; num2++; ref QuestStep reference183 = ref span3[num2]; - QuestStep obj174 = new QuestStep(EInteractionType.Interact, 2014191u, new Vector3(53.3302f, 109.17822f, 246.3263f), 1188) + QuestStep obj175 = new QuestStep(EInteractionType.Interact, 2014191u, new Vector3(53.3302f, 109.17822f, 246.3263f), 1188) { Fly = true }; @@ -428950,11 +429047,11 @@ public static class AssemblyQuestLoader span4[num4] = null; num4++; span4[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - obj174.CompletionQuestVariablesFlags = list247; - reference183 = obj174; + obj175.CompletionQuestVariablesFlags = list247; + reference183 = obj175; num2++; ref QuestStep reference184 = ref span3[num2]; - QuestStep obj175 = new QuestStep(EInteractionType.Interact, 2014190u, new Vector3(-19.119629f, 109.57495f, 182.02478f), 1188) + QuestStep obj176 = new QuestStep(EInteractionType.Interact, 2014190u, new Vector3(-19.119629f, 109.57495f, 182.02478f), 1188) { Fly = true }; @@ -428974,13 +429071,13 @@ public static class AssemblyQuestLoader span4[num3] = null; num3++; span4[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - obj175.CompletionQuestVariablesFlags = list248; - reference184 = obj175; - obj172.Steps = list245; - reference181 = obj172; + obj176.CompletionQuestVariablesFlags = list248; + reference184 = obj176; + obj173.Steps = list245; + reference181 = obj173; num++; ref QuestSequence reference185 = ref span2[num]; - QuestSequence obj176 = new QuestSequence + QuestSequence obj177 = new QuestSequence { Sequence = byte.MaxValue }; @@ -428993,8 +429090,8 @@ public static class AssemblyQuestLoader { AetheryteShortcut = EAetheryteLocation.KozamaukaManyFires }; - obj176.Steps = list249; - reference185 = obj176; + obj177.Steps = list249; + reference185 = obj177; questRoot31.QuestSequence = list243; AddQuest(questId31, questRoot31); QuestId questId32 = new QuestId(5081); @@ -429012,7 +429109,7 @@ public static class AssemblyQuestLoader span2 = CollectionsMarshal.AsSpan(list251); num = 0; ref QuestSequence reference186 = ref span2[num]; - QuestSequence obj177 = new QuestSequence + QuestSequence obj178 = new QuestSequence { Sequence = 0 }; @@ -429022,11 +429119,11 @@ public static class AssemblyQuestLoader span3 = CollectionsMarshal.AsSpan(list252); num2 = 0; span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051237u, new Vector3(-251.20929f, 5.5572896f, -554.89435f), 1188); - obj177.Steps = list252; - reference186 = obj177; + obj178.Steps = list252; + reference186 = obj178; num++; ref QuestSequence reference187 = ref span2[num]; - QuestSequence obj178 = new QuestSequence + QuestSequence obj179 = new QuestSequence { Sequence = 1 }; @@ -429036,11 +429133,11 @@ public static class AssemblyQuestLoader span3 = CollectionsMarshal.AsSpan(list253); index2 = 0; span3[index2] = new QuestStep(EInteractionType.Interact, 1051238u, new Vector3(-312.36743f, 6.5262628f, -723.3234f), 1188); - obj178.Steps = list253; - reference187 = obj178; + obj179.Steps = list253; + reference187 = obj179; num++; ref QuestSequence reference188 = ref span2[num]; - QuestSequence obj179 = new QuestSequence + QuestSequence obj180 = new QuestSequence { Sequence = 2 }; @@ -429050,11 +429147,11 @@ public static class AssemblyQuestLoader span3 = CollectionsMarshal.AsSpan(list254); num2 = 0; span3[num2] = new QuestStep(EInteractionType.Interact, 1051237u, new Vector3(-251.20929f, 5.5572896f, -554.89435f), 1188); - obj179.Steps = list254; - reference188 = obj179; + obj180.Steps = list254; + reference188 = obj180; num++; ref QuestSequence reference189 = ref span2[num]; - QuestSequence obj180 = new QuestSequence + QuestSequence obj181 = new QuestSequence { Sequence = 3 }; @@ -429064,11 +429161,11 @@ public static class AssemblyQuestLoader span3 = CollectionsMarshal.AsSpan(list255); index2 = 0; span3[index2] = new QuestStep(EInteractionType.Interact, 2014316u, new Vector3(-201.0987f, 6.362976f, -511.03995f), 1188); - obj180.Steps = list255; - reference189 = obj180; + obj181.Steps = list255; + reference189 = obj181; num++; ref QuestSequence reference190 = ref span2[num]; - QuestSequence obj181 = new QuestSequence + QuestSequence obj182 = new QuestSequence { Sequence = byte.MaxValue }; @@ -429078,8 +429175,8 @@ public static class AssemblyQuestLoader span3 = CollectionsMarshal.AsSpan(list256); num2 = 0; span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051242u, new Vector3(-127.45862f, 9.842161f, -419.6994f), 1188); - obj181.Steps = list256; - reference190 = obj181; + obj182.Steps = list256; + reference190 = obj182; questRoot32.QuestSequence = list251; AddQuest(questId32, questRoot32); QuestId questId33 = new QuestId(5082); @@ -429097,7 +429194,7 @@ public static class AssemblyQuestLoader span2 = CollectionsMarshal.AsSpan(list258); num = 0; ref QuestSequence reference191 = ref span2[num]; - QuestSequence obj182 = new QuestSequence + QuestSequence obj183 = new QuestSequence { Sequence = 0 }; @@ -429107,11 +429204,11 @@ public static class AssemblyQuestLoader span3 = CollectionsMarshal.AsSpan(list259); index2 = 0; span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051243u, new Vector3(-128.893f, 9.842161f, -416.95276f), 1188); - obj182.Steps = list259; - reference191 = obj182; + obj183.Steps = list259; + reference191 = obj183; num++; ref QuestSequence reference192 = ref span2[num]; - QuestSequence obj183 = new QuestSequence + QuestSequence obj184 = new QuestSequence { Sequence = 1 }; @@ -429124,11 +429221,11 @@ public static class AssemblyQuestLoader { Fly = true }; - obj183.Steps = list260; - reference192 = obj183; + obj184.Steps = list260; + reference192 = obj184; num++; ref QuestSequence reference193 = ref span2[num]; - QuestSequence obj184 = new QuestSequence + QuestSequence obj185 = new QuestSequence { Sequence = 2 }; @@ -429138,11 +429235,11 @@ public static class AssemblyQuestLoader span3 = CollectionsMarshal.AsSpan(list261); index2 = 0; span3[index2] = new QuestStep(EInteractionType.Interact, 2014281u, new Vector3(222.58337f, 10.72699f, -568.44434f), 1188); - obj184.Steps = list261; - reference193 = obj184; + obj185.Steps = list261; + reference193 = obj185; num++; ref QuestSequence reference194 = ref span2[num]; - QuestSequence obj185 = new QuestSequence + QuestSequence obj186 = new QuestSequence { Sequence = 3 }; @@ -429154,11 +429251,11 @@ public static class AssemblyQuestLoader span3[num2] = new QuestStep(EInteractionType.WalkTo, null, new Vector3(37.763844f, 1.8493831f, -555.61774f), 1188); num2++; span3[num2] = new QuestStep(EInteractionType.Interact, 2014284u, new Vector3(-123.30823f, 9.84198f, -419.11957f), 1188); - obj185.Steps = list262; - reference194 = obj185; + obj186.Steps = list262; + reference194 = obj186; num++; ref QuestSequence reference195 = ref span2[num]; - QuestSequence obj186 = new QuestSequence + QuestSequence obj187 = new QuestSequence { Sequence = 4 }; @@ -429168,11 +429265,11 @@ public static class AssemblyQuestLoader span3 = CollectionsMarshal.AsSpan(list263); index2 = 0; span3[index2] = new QuestStep(EInteractionType.Interact, 1051243u, new Vector3(-128.893f, 9.842161f, -416.95276f), 1188); - obj186.Steps = list263; - reference195 = obj186; + obj187.Steps = list263; + reference195 = obj187; num++; ref QuestSequence reference196 = ref span2[num]; - QuestSequence obj187 = new QuestSequence + QuestSequence obj188 = new QuestSequence { Sequence = byte.MaxValue }; @@ -429185,8 +429282,8 @@ public static class AssemblyQuestLoader { NextQuestId = new QuestId(5083) }; - obj187.Steps = list264; - reference196 = obj187; + obj188.Steps = list264; + reference196 = obj188; questRoot33.QuestSequence = list258; AddQuest(questId33, questRoot33); QuestId questId34 = new QuestId(5083); @@ -429204,7 +429301,7 @@ public static class AssemblyQuestLoader span2 = CollectionsMarshal.AsSpan(list266); num = 0; ref QuestSequence reference197 = ref span2[num]; - QuestSequence obj188 = new QuestSequence + QuestSequence obj189 = new QuestSequence { Sequence = 0 }; @@ -429214,11 +429311,11 @@ public static class AssemblyQuestLoader span3 = CollectionsMarshal.AsSpan(list267); index2 = 0; span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051243u, new Vector3(-128.893f, 9.842161f, -416.95276f), 1188); - obj188.Steps = list267; - reference197 = obj188; + obj189.Steps = list267; + reference197 = obj189; num++; ref QuestSequence reference198 = ref span2[num]; - QuestSequence obj189 = new QuestSequence + QuestSequence obj190 = new QuestSequence { Sequence = 1 }; @@ -429231,11 +429328,11 @@ public static class AssemblyQuestLoader { Fly = true }; - obj189.Steps = list268; - reference198 = obj189; + obj190.Steps = list268; + reference198 = obj190; num++; ref QuestSequence reference199 = ref span2[num]; - QuestSequence obj190 = new QuestSequence + QuestSequence obj191 = new QuestSequence { Sequence = 2 }; @@ -429245,7 +429342,7 @@ public static class AssemblyQuestLoader span3 = CollectionsMarshal.AsSpan(list269); index2 = 0; ref QuestStep reference200 = ref span3[index2]; - QuestStep obj191 = new QuestStep(EInteractionType.Combat, 2014198u, new Vector3(438.04077f, -0.015319824f, -395.43762f), 1188) + QuestStep obj192 = new QuestStep(EInteractionType.Combat, 2014198u, new Vector3(438.04077f, -0.015319824f, -395.43762f), 1188) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -429256,13 +429353,13 @@ public static class AssemblyQuestLoader span6 = CollectionsMarshal.AsSpan(list270); num4 = 0; span6[num4] = 17661u; - obj191.KillEnemyDataIds = list270; - reference200 = obj191; - obj190.Steps = list269; - reference199 = obj190; + obj192.KillEnemyDataIds = list270; + reference200 = obj192; + obj191.Steps = list269; + reference199 = obj191; num++; ref QuestSequence reference201 = ref span2[num]; - QuestSequence obj192 = new QuestSequence + QuestSequence obj193 = new QuestSequence { Sequence = 3 }; @@ -429272,11 +429369,11 @@ public static class AssemblyQuestLoader span3 = CollectionsMarshal.AsSpan(list271); num2 = 0; span3[num2] = new QuestStep(EInteractionType.Interact, 2014286u, new Vector3(440.78735f, 1.1749268f, -397.1161f), 1188); - obj192.Steps = list271; - reference201 = obj192; + obj193.Steps = list271; + reference201 = obj193; num++; ref QuestSequence reference202 = ref span2[num]; - QuestSequence obj193 = new QuestSequence + QuestSequence obj194 = new QuestSequence { Sequence = 4 }; @@ -429289,11 +429386,11 @@ public static class AssemblyQuestLoader { Fly = true }; - obj193.Steps = list272; - reference202 = obj193; + obj194.Steps = list272; + reference202 = obj194; num++; ref QuestSequence reference203 = ref span2[num]; - QuestSequence obj194 = new QuestSequence + QuestSequence obj195 = new QuestSequence { Sequence = byte.MaxValue }; @@ -429307,8 +429404,8 @@ public static class AssemblyQuestLoader Fly = true, NextQuestId = new QuestId(5084) }; - obj194.Steps = list273; - reference203 = obj194; + obj195.Steps = list273; + reference203 = obj195; questRoot34.QuestSequence = list266; AddQuest(questId34, questRoot34); QuestId questId35 = new QuestId(5084); @@ -429326,7 +429423,7 @@ public static class AssemblyQuestLoader span2 = CollectionsMarshal.AsSpan(list275); num = 0; ref QuestSequence reference204 = ref span2[num]; - QuestSequence obj195 = new QuestSequence + QuestSequence obj196 = new QuestSequence { Sequence = 0 }; @@ -429336,7 +429433,7 @@ public static class AssemblyQuestLoader span3 = CollectionsMarshal.AsSpan(list276); index2 = 0; ref QuestStep reference205 = ref span3[index2]; - QuestStep questStep10 = new QuestStep(EInteractionType.AcceptQuest, 1051252u, new Vector3(654.6272f, 26.32866f, -491.02008f), 1188); + QuestStep questStep9 = new QuestStep(EInteractionType.AcceptQuest, 1051252u, new Vector3(654.6272f, 26.32866f, -491.02008f), 1188); num4 = 1; List list277 = new List(num4); CollectionsMarshal.SetCount(list277, num4); @@ -429348,13 +429445,13 @@ public static class AssemblyQuestLoader Prompt = new ExcelRef("TEXT_KINGZC204_05084_Q1_000_100"), Answer = new ExcelRef("TEXT_KINGZC204_05084_A2_000_100") }; - questStep10.DialogueChoices = list277; - reference205 = questStep10; - obj195.Steps = list276; - reference204 = obj195; + questStep9.DialogueChoices = list277; + reference205 = questStep9; + obj196.Steps = list276; + reference204 = obj196; num++; ref QuestSequence reference206 = ref span2[num]; - QuestSequence obj196 = new QuestSequence + QuestSequence obj197 = new QuestSequence { Sequence = 1 }; @@ -429367,11 +429464,11 @@ public static class AssemblyQuestLoader { AetheryteShortcut = EAetheryteLocation.KozamaukaOkHanu }; - obj196.Steps = list278; - reference206 = obj196; + obj197.Steps = list278; + reference206 = obj197; num++; ref QuestSequence reference207 = ref span2[num]; - QuestSequence obj197 = new QuestSequence + QuestSequence obj198 = new QuestSequence { Sequence = 2 }; @@ -429381,7 +429478,7 @@ public static class AssemblyQuestLoader span3 = CollectionsMarshal.AsSpan(list279); index2 = 0; ref QuestStep reference208 = ref span3[index2]; - QuestStep obj198 = new QuestStep(EInteractionType.Interact, 1048786u, new Vector3(-193.3471f, 6.277148f, -443.50348f), 1188) + QuestStep obj199 = new QuestStep(EInteractionType.Interact, 1048786u, new Vector3(-193.3471f, 6.277148f, -443.50348f), 1188) { Fly = true }; @@ -429401,11 +429498,11 @@ public static class AssemblyQuestLoader span4[num4] = null; num4++; span4[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - obj198.CompletionQuestVariablesFlags = list280; - reference208 = obj198; + obj199.CompletionQuestVariablesFlags = list280; + reference208 = obj199; index2++; ref QuestStep reference209 = ref span3[index2]; - QuestStep obj199 = new QuestStep(EInteractionType.Interact, 1048783u, new Vector3(-269.91687f, 5.9870257f, -431.47937f), 1188) + QuestStep obj200 = new QuestStep(EInteractionType.Interact, 1048783u, new Vector3(-269.91687f, 5.9870257f, -431.47937f), 1188) { Fly = true }; @@ -429425,11 +429522,11 @@ public static class AssemblyQuestLoader span4[num3] = null; num3++; span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - obj199.CompletionQuestVariablesFlags = list281; - reference209 = obj199; + obj200.CompletionQuestVariablesFlags = list281; + reference209 = obj200; index2++; ref QuestStep reference210 = ref span3[index2]; - QuestStep obj200 = new QuestStep(EInteractionType.Interact, 1048785u, new Vector3(-121.26343f, 9.773314f, -551.1406f), 1188) + QuestStep obj201 = new QuestStep(EInteractionType.Interact, 1048785u, new Vector3(-121.26343f, 9.773314f, -551.1406f), 1188) { Fly = true }; @@ -429449,13 +429546,13 @@ public static class AssemblyQuestLoader span4[num4] = null; num4++; span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - obj200.CompletionQuestVariablesFlags = list282; - reference210 = obj200; - obj197.Steps = list279; - reference207 = obj197; + obj201.CompletionQuestVariablesFlags = list282; + reference210 = obj201; + obj198.Steps = list279; + reference207 = obj198; num++; ref QuestSequence reference211 = ref span2[num]; - QuestSequence obj201 = new QuestSequence + QuestSequence obj202 = new QuestSequence { Sequence = 3 }; @@ -429468,11 +429565,11 @@ public static class AssemblyQuestLoader { Fly = true }; - obj201.Steps = list283; - reference211 = obj201; + obj202.Steps = list283; + reference211 = obj202; num++; ref QuestSequence reference212 = ref span2[num]; - QuestSequence obj202 = new QuestSequence + QuestSequence obj203 = new QuestSequence { Sequence = 4 }; @@ -429485,11 +429582,11 @@ public static class AssemblyQuestLoader { Fly = true }; - obj202.Steps = list284; - reference212 = obj202; + obj203.Steps = list284; + reference212 = obj203; num++; ref QuestSequence reference213 = ref span2[num]; - QuestSequence obj203 = new QuestSequence + QuestSequence obj204 = new QuestSequence { Sequence = byte.MaxValue }; @@ -429502,8 +429599,8 @@ public static class AssemblyQuestLoader { AetheryteShortcut = EAetheryteLocation.KozamaukaOkHanu }; - obj203.Steps = list285; - reference213 = obj203; + obj204.Steps = list285; + reference213 = obj204; questRoot35.QuestSequence = list275; AddQuest(questId35, questRoot35); QuestId questId36 = new QuestId(5085); @@ -429521,7 +429618,7 @@ public static class AssemblyQuestLoader span2 = CollectionsMarshal.AsSpan(list287); num = 0; ref QuestSequence reference214 = ref span2[num]; - QuestSequence obj204 = new QuestSequence + QuestSequence obj205 = new QuestSequence { Sequence = 0 }; @@ -429531,11 +429628,11 @@ public static class AssemblyQuestLoader span3 = CollectionsMarshal.AsSpan(list288); index2 = 0; span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051263u, new Vector3(-521.0193f, 121.63345f, 319.38647f), 1188); - obj204.Steps = list288; - reference214 = obj204; + obj205.Steps = list288; + reference214 = obj205; num++; ref QuestSequence reference215 = ref span2[num]; - QuestSequence obj205 = new QuestSequence + QuestSequence obj206 = new QuestSequence { Sequence = 1 }; @@ -429545,11 +429642,11 @@ public static class AssemblyQuestLoader span3 = CollectionsMarshal.AsSpan(list289); num2 = 0; span3[num2] = new QuestStep(EInteractionType.Interact, 1051264u, new Vector3(-444.78522f, 122.890236f, 342.85498f), 1188); - obj205.Steps = list289; - reference215 = obj205; + obj206.Steps = list289; + reference215 = obj206; num++; ref QuestSequence reference216 = ref span2[num]; - QuestSequence obj206 = new QuestSequence + QuestSequence obj207 = new QuestSequence { Sequence = 2 }; @@ -429559,7 +429656,7 @@ public static class AssemblyQuestLoader span3 = CollectionsMarshal.AsSpan(list290); index2 = 0; ref QuestStep reference217 = ref span3[index2]; - QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 1048892u, new Vector3(-485.55737f, 121.633f, 329.9762f), 1188); + QuestStep questStep10 = new QuestStep(EInteractionType.Interact, 1048892u, new Vector3(-485.55737f, 121.633f, 329.9762f), 1188); num4 = 6; List list291 = new List(num4); CollectionsMarshal.SetCount(list291, num4); @@ -429576,11 +429673,11 @@ public static class AssemblyQuestLoader span4[num3] = null; num3++; span4[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - questStep11.CompletionQuestVariablesFlags = list291; - reference217 = questStep11; + questStep10.CompletionQuestVariablesFlags = list291; + reference217 = questStep10; index2++; ref QuestStep reference218 = ref span3[index2]; - QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 1048850u, new Vector3(-472.5567f, 121.77377f, 271.229f), 1188); + QuestStep questStep11 = new QuestStep(EInteractionType.Interact, 1048850u, new Vector3(-472.5567f, 121.77377f, 271.229f), 1188); num3 = 6; List list292 = new List(num3); CollectionsMarshal.SetCount(list292, num3); @@ -429597,11 +429694,11 @@ public static class AssemblyQuestLoader span4[num4] = null; num4++; span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep12.CompletionQuestVariablesFlags = list292; - reference218 = questStep12; + questStep11.CompletionQuestVariablesFlags = list292; + reference218 = questStep11; index2++; ref QuestStep reference219 = ref span3[index2]; - QuestStep questStep13 = new QuestStep(EInteractionType.Interact, 1048858u, new Vector3(-426.87115f, 121.63345f, 320.88184f), 1188); + QuestStep questStep12 = new QuestStep(EInteractionType.Interact, 1048858u, new Vector3(-426.87115f, 121.63345f, 320.88184f), 1188); num4 = 6; List list293 = new List(num4); CollectionsMarshal.SetCount(list293, num4); @@ -429618,13 +429715,13 @@ public static class AssemblyQuestLoader span4[num3] = null; num3++; span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - questStep13.CompletionQuestVariablesFlags = list293; - reference219 = questStep13; - obj206.Steps = list290; - reference216 = obj206; + questStep12.CompletionQuestVariablesFlags = list293; + reference219 = questStep12; + obj207.Steps = list290; + reference216 = obj207; num++; ref QuestSequence reference220 = ref span2[num]; - QuestSequence obj207 = new QuestSequence + QuestSequence obj208 = new QuestSequence { Sequence = byte.MaxValue }; @@ -429637,8 +429734,8 @@ public static class AssemblyQuestLoader { Mount = true }; - obj207.Steps = list294; - reference220 = obj207; + obj208.Steps = list294; + reference220 = obj208; questRoot36.QuestSequence = list287; AddQuest(questId36, questRoot36); QuestId questId37 = new QuestId(5086); @@ -429656,7 +429753,7 @@ public static class AssemblyQuestLoader span2 = CollectionsMarshal.AsSpan(list296); num = 0; ref QuestSequence reference221 = ref span2[num]; - QuestSequence obj208 = new QuestSequence + QuestSequence obj209 = new QuestSequence { Sequence = 0 }; @@ -429666,11 +429763,11 @@ public static class AssemblyQuestLoader span3 = CollectionsMarshal.AsSpan(list297); index2 = 0; span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051265u, new Vector3(-444.78522f, 122.89024f, 342.8855f), 1188); - obj208.Steps = list297; - reference221 = obj208; + obj209.Steps = list297; + reference221 = obj209; num++; ref QuestSequence reference222 = ref span2[num]; - QuestSequence obj209 = new QuestSequence + QuestSequence obj210 = new QuestSequence { Sequence = 1 }; @@ -429680,11 +429777,11 @@ public static class AssemblyQuestLoader span3 = CollectionsMarshal.AsSpan(list298); num2 = 0; span3[num2] = new QuestStep(EInteractionType.Interact, 1048850u, new Vector3(-472.5567f, 121.77377f, 271.229f), 1188); - obj209.Steps = list298; - reference222 = obj209; + obj210.Steps = list298; + reference222 = obj210; num++; ref QuestSequence reference223 = ref span2[num]; - QuestSequence obj210 = new QuestSequence + QuestSequence obj211 = new QuestSequence { Sequence = 2 }; @@ -429694,11 +429791,11 @@ public static class AssemblyQuestLoader span3 = CollectionsMarshal.AsSpan(list299); index2 = 0; span3[index2] = new QuestStep(EInteractionType.Interact, 1051263u, new Vector3(-521.0193f, 121.63345f, 319.38647f), 1188); - obj210.Steps = list299; - reference223 = obj210; + obj211.Steps = list299; + reference223 = obj211; num++; ref QuestSequence reference224 = ref span2[num]; - QuestSequence obj211 = new QuestSequence + QuestSequence obj212 = new QuestSequence { Sequence = 3 }; @@ -429708,11 +429805,11 @@ public static class AssemblyQuestLoader span3 = CollectionsMarshal.AsSpan(list300); num2 = 0; span3[num2] = new QuestStep(EInteractionType.Interact, 1051265u, new Vector3(-444.78522f, 122.89024f, 342.8855f), 1188); - obj211.Steps = list300; - reference224 = obj211; + obj212.Steps = list300; + reference224 = obj212; num++; ref QuestSequence reference225 = ref span2[num]; - QuestSequence obj212 = new QuestSequence + QuestSequence obj213 = new QuestSequence { Sequence = byte.MaxValue }; @@ -429725,8 +429822,8 @@ public static class AssemblyQuestLoader { NextQuestId = new QuestId(5087) }; - obj212.Steps = list301; - reference225 = obj212; + obj213.Steps = list301; + reference225 = obj213; questRoot37.QuestSequence = list296; AddQuest(questId37, questRoot37); QuestId questId38 = new QuestId(5087); @@ -429744,7 +429841,7 @@ public static class AssemblyQuestLoader span2 = CollectionsMarshal.AsSpan(list303); num = 0; ref QuestSequence reference226 = ref span2[num]; - QuestSequence obj213 = new QuestSequence + QuestSequence obj214 = new QuestSequence { Sequence = 0 }; @@ -429754,11 +429851,11 @@ public static class AssemblyQuestLoader span3 = CollectionsMarshal.AsSpan(list304); num2 = 0; span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051263u, new Vector3(-521.0193f, 121.63345f, 319.38647f), 1188); - obj213.Steps = list304; - reference226 = obj213; + obj214.Steps = list304; + reference226 = obj214; num++; ref QuestSequence reference227 = ref span2[num]; - QuestSequence obj214 = new QuestSequence + QuestSequence obj215 = new QuestSequence { Sequence = 1 }; @@ -429771,11 +429868,11 @@ public static class AssemblyQuestLoader { AetheryteShortcut = EAetheryteLocation.KozamaukaManyFires }; - obj214.Steps = list305; - reference227 = obj214; + obj215.Steps = list305; + reference227 = obj215; num++; ref QuestSequence reference228 = ref span2[num]; - QuestSequence obj215 = new QuestSequence + QuestSequence obj216 = new QuestSequence { Sequence = 2 }; @@ -429785,7 +429882,7 @@ public static class AssemblyQuestLoader span3 = CollectionsMarshal.AsSpan(list306); num2 = 0; ref QuestStep reference229 = ref span3[num2]; - QuestStep obj216 = new QuestStep(EInteractionType.Combat, null, new Vector3(627.93854f, 110.09355f, 334.26776f), 1188) + QuestStep obj217 = new QuestStep(EInteractionType.Combat, null, new Vector3(627.93854f, 110.09355f, 334.26776f), 1188) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -429796,13 +429893,13 @@ public static class AssemblyQuestLoader span6 = CollectionsMarshal.AsSpan(list307); num4 = 0; span6[num4] = 17244u; - obj216.KillEnemyDataIds = list307; - reference229 = obj216; - obj215.Steps = list306; - reference228 = obj215; + obj217.KillEnemyDataIds = list307; + reference229 = obj217; + obj216.Steps = list306; + reference228 = obj216; num++; ref QuestSequence reference230 = ref span2[num]; - QuestSequence obj217 = new QuestSequence + QuestSequence obj218 = new QuestSequence { Sequence = 3 }; @@ -429815,11 +429912,11 @@ public static class AssemblyQuestLoader { AetheryteShortcut = EAetheryteLocation.KozamaukaManyFires }; - obj217.Steps = list308; - reference230 = obj217; + obj218.Steps = list308; + reference230 = obj218; num++; ref QuestSequence reference231 = ref span2[num]; - QuestSequence obj218 = new QuestSequence + QuestSequence obj219 = new QuestSequence { Sequence = byte.MaxValue }; @@ -429833,8 +429930,8 @@ public static class AssemblyQuestLoader AetheryteShortcut = EAetheryteLocation.KozamaukaEarthenshire, NextQuestId = new QuestId(5088) }; - obj218.Steps = list309; - reference231 = obj218; + obj219.Steps = list309; + reference231 = obj219; questRoot38.QuestSequence = list303; AddQuest(questId38, questRoot38); QuestId questId39 = new QuestId(5088); @@ -429852,7 +429949,7 @@ public static class AssemblyQuestLoader span2 = CollectionsMarshal.AsSpan(list311); num = 0; ref QuestSequence reference232 = ref span2[num]; - QuestSequence obj219 = new QuestSequence + QuestSequence obj220 = new QuestSequence { Sequence = 0 }; @@ -429862,7 +429959,7 @@ public static class AssemblyQuestLoader span3 = CollectionsMarshal.AsSpan(list312); index2 = 0; ref QuestStep reference233 = ref span3[index2]; - QuestStep questStep14 = new QuestStep(EInteractionType.AcceptQuest, 1051267u, new Vector3(-447.5014f, 122.95055f, 343.099f), 1188); + QuestStep questStep13 = new QuestStep(EInteractionType.AcceptQuest, 1051267u, new Vector3(-447.5014f, 122.95055f, 343.099f), 1188); num4 = 1; List list313 = new List(num4); CollectionsMarshal.SetCount(list313, num4); @@ -429874,13 +429971,13 @@ public static class AssemblyQuestLoader Prompt = new ExcelRef("TEXT_KINGZC304_05088_Q1_000_100"), Answer = new ExcelRef("TEXT_KINGZC304_05088_A2_000_100") }; - questStep14.DialogueChoices = list313; - reference233 = questStep14; - obj219.Steps = list312; - reference232 = obj219; + questStep13.DialogueChoices = list313; + reference233 = questStep13; + obj220.Steps = list312; + reference232 = obj220; num++; ref QuestSequence reference234 = ref span2[num]; - QuestSequence obj220 = new QuestSequence + QuestSequence obj221 = new QuestSequence { Sequence = 1 }; @@ -429893,11 +429990,11 @@ public static class AssemblyQuestLoader { Mount = true }; - obj220.Steps = list314; - reference234 = obj220; + obj221.Steps = list314; + reference234 = obj221; num++; ref QuestSequence reference235 = ref span2[num]; - QuestSequence obj221 = new QuestSequence + QuestSequence obj222 = new QuestSequence { Sequence = 2 }; @@ -429907,11 +430004,11 @@ public static class AssemblyQuestLoader span3 = CollectionsMarshal.AsSpan(list315); index2 = 0; span3[index2] = new QuestStep(EInteractionType.Interact, 2014290u, new Vector3(-519.4629f, 123.88794f, 252.61304f), 1188); - obj221.Steps = list315; - reference235 = obj221; + obj222.Steps = list315; + reference235 = obj222; num++; ref QuestSequence reference236 = ref span2[num]; - QuestSequence obj222 = new QuestSequence + QuestSequence obj223 = new QuestSequence { Sequence = 3 }; @@ -429921,7 +430018,7 @@ public static class AssemblyQuestLoader span3 = CollectionsMarshal.AsSpan(list316); num2 = 0; ref QuestStep reference237 = ref span3[num2]; - QuestStep obj223 = new QuestStep(EInteractionType.Combat, null, new Vector3(-759f, 129.30363f, 237.35704f), 1188) + QuestStep obj224 = new QuestStep(EInteractionType.Combat, null, new Vector3(-759f, 129.30363f, 237.35704f), 1188) { Fly = true, EnemySpawnType = EEnemySpawnType.AutoOnEnterArea @@ -429932,13 +430029,13 @@ public static class AssemblyQuestLoader span6 = CollectionsMarshal.AsSpan(list317); num4 = 0; span6[num4] = 17662u; - obj223.KillEnemyDataIds = list317; - reference237 = obj223; - obj222.Steps = list316; - reference236 = obj222; + obj224.KillEnemyDataIds = list317; + reference237 = obj224; + obj223.Steps = list316; + reference236 = obj223; num++; ref QuestSequence reference238 = ref span2[num]; - QuestSequence obj224 = new QuestSequence + QuestSequence obj225 = new QuestSequence { Sequence = 4 }; @@ -429951,11 +430048,11 @@ public static class AssemblyQuestLoader { StopDistance = 7f }; - obj224.Steps = list318; - reference238 = obj224; + obj225.Steps = list318; + reference238 = obj225; num++; ref QuestSequence reference239 = ref span2[num]; - QuestSequence obj225 = new QuestSequence + QuestSequence obj226 = new QuestSequence { Sequence = 5 }; @@ -429968,11 +430065,11 @@ public static class AssemblyQuestLoader { Fly = true }; - obj225.Steps = list319; - reference239 = obj225; + obj226.Steps = list319; + reference239 = obj226; num++; ref QuestSequence reference240 = ref span2[num]; - QuestSequence obj226 = new QuestSequence + QuestSequence obj227 = new QuestSequence { Sequence = byte.MaxValue }; @@ -429986,8 +430083,8 @@ public static class AssemblyQuestLoader AetheryteShortcut = EAetheryteLocation.KozamaukaEarthenshire, NextQuestId = new QuestId(5089) }; - obj226.Steps = list320; - reference240 = obj226; + obj227.Steps = list320; + reference240 = obj227; questRoot39.QuestSequence = list311; AddQuest(questId39, questRoot39); QuestId questId40 = new QuestId(5089); @@ -430005,7 +430102,7 @@ public static class AssemblyQuestLoader span2 = CollectionsMarshal.AsSpan(list322); num = 0; ref QuestSequence reference241 = ref span2[num]; - QuestSequence obj227 = new QuestSequence + QuestSequence obj228 = new QuestSequence { Sequence = 0 }; @@ -430018,11 +430115,11 @@ public static class AssemblyQuestLoader { StopDistance = 5f }; - obj227.Steps = list323; - reference241 = obj227; + obj228.Steps = list323; + reference241 = obj228; num++; ref QuestSequence reference242 = ref span2[num]; - QuestSequence obj228 = new QuestSequence + QuestSequence obj229 = new QuestSequence { Sequence = 1 }; @@ -430035,11 +430132,11 @@ public static class AssemblyQuestLoader { AetheryteShortcut = EAetheryteLocation.KozamaukaManyFires }; - obj228.Steps = list324; - reference242 = obj228; + obj229.Steps = list324; + reference242 = obj229; num++; ref QuestSequence reference243 = ref span2[num]; - QuestSequence obj229 = new QuestSequence + QuestSequence obj230 = new QuestSequence { Sequence = 2 }; @@ -430053,11 +430150,11 @@ public static class AssemblyQuestLoader Fly = true, AetheryteShortcut = EAetheryteLocation.KozamaukaEarthenshire }; - obj229.Steps = list325; - reference243 = obj229; + obj230.Steps = list325; + reference243 = obj230; num++; ref QuestSequence reference244 = ref span2[num]; - QuestSequence obj230 = new QuestSequence + QuestSequence obj231 = new QuestSequence { Sequence = 3 }; @@ -430067,7 +430164,7 @@ public static class AssemblyQuestLoader span3 = CollectionsMarshal.AsSpan(list326); index2 = 0; ref QuestStep reference245 = ref span3[index2]; - QuestStep obj231 = new QuestStep(EInteractionType.Interact, 1051270u, new Vector3(-565.2705f, 133.77481f, 720.7294f), 1188) + QuestStep obj232 = new QuestStep(EInteractionType.Interact, 1051270u, new Vector3(-565.2705f, 133.77481f, 720.7294f), 1188) { Fly = true }; @@ -430082,13 +430179,13 @@ public static class AssemblyQuestLoader Prompt = new ExcelRef("TEXT_KINGZC401_05089_Q1_000_100"), Answer = new ExcelRef("TEXT_KINGZC401_05089_A1_000_100") }; - obj231.DialogueChoices = list327; - reference245 = obj231; - obj230.Steps = list326; - reference244 = obj230; + obj232.DialogueChoices = list327; + reference245 = obj232; + obj231.Steps = list326; + reference244 = obj231; num++; ref QuestSequence reference246 = ref span2[num]; - QuestSequence obj232 = new QuestSequence + QuestSequence obj233 = new QuestSequence { Sequence = 4 }; @@ -430101,11 +430198,11 @@ public static class AssemblyQuestLoader { Fly = true }; - obj232.Steps = list328; - reference246 = obj232; + obj233.Steps = list328; + reference246 = obj233; num++; ref QuestSequence reference247 = ref span2[num]; - QuestSequence obj233 = new QuestSequence + QuestSequence obj234 = new QuestSequence { Sequence = 5 }; @@ -430115,7 +430212,7 @@ public static class AssemblyQuestLoader span3 = CollectionsMarshal.AsSpan(list329); index2 = 0; ref QuestStep reference248 = ref span3[index2]; - QuestStep obj234 = new QuestStep(EInteractionType.Interact, 1051278u, new Vector3(-130.69354f, 9.84216f, -415.21326f), 1188) + QuestStep obj235 = new QuestStep(EInteractionType.Interact, 1051278u, new Vector3(-130.69354f, 9.84216f, -415.21326f), 1188) { AetheryteShortcut = EAetheryteLocation.KozamaukaOkHanu }; @@ -430129,13 +430226,13 @@ public static class AssemblyQuestLoader Type = EDialogChoiceType.YesNo, Prompt = new ExcelRef("TEXT_KINGZC401_05089_Q100_000_100") }; - obj234.DialogueChoices = list330; - reference248 = obj234; - obj233.Steps = list329; - reference247 = obj233; + obj235.DialogueChoices = list330; + reference248 = obj235; + obj234.Steps = list329; + reference247 = obj234; num++; ref QuestSequence reference249 = ref span2[num]; - QuestSequence obj235 = new QuestSequence + QuestSequence obj236 = new QuestSequence { Sequence = byte.MaxValue }; @@ -430145,8 +430242,8 @@ public static class AssemblyQuestLoader span3 = CollectionsMarshal.AsSpan(list331); num2 = 0; span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051280u, new Vector3(-125.20032f, 9.842161f, -418.08197f), 1188); - obj235.Steps = list331; - reference249 = obj235; + obj236.Steps = list331; + reference249 = obj236; questRoot40.QuestSequence = list322; AddQuest(questId40, questRoot40); QuestId questId41 = new QuestId(5090); @@ -430164,7 +430261,7 @@ public static class AssemblyQuestLoader span2 = CollectionsMarshal.AsSpan(list333); num = 0; ref QuestSequence reference250 = ref span2[num]; - QuestSequence obj236 = new QuestSequence + QuestSequence obj237 = new QuestSequence { Sequence = 0 }; @@ -430174,11 +430271,11 @@ public static class AssemblyQuestLoader span3 = CollectionsMarshal.AsSpan(list334); index2 = 0; span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048960u, new Vector3(-405.84424f, 23.562847f, -476.61554f), 1189); - obj236.Steps = list334; - reference250 = obj236; + obj237.Steps = list334; + reference250 = obj237; num++; ref QuestSequence reference251 = ref span2[num]; - QuestSequence obj237 = new QuestSequence + QuestSequence obj238 = new QuestSequence { Sequence = 1 }; @@ -430188,7 +430285,7 @@ public static class AssemblyQuestLoader span3 = CollectionsMarshal.AsSpan(list335); num2 = 0; ref QuestStep reference252 = ref span3[num2]; - QuestStep obj238 = new QuestStep(EInteractionType.Combat, null, new Vector3(-455.06216f, 20.027777f, 46.272446f), 1189) + QuestStep obj239 = new QuestStep(EInteractionType.Combat, null, new Vector3(-455.06216f, 20.027777f, 46.272446f), 1189) { Fly = true, EnemySpawnType = EEnemySpawnType.OverworldEnemies @@ -430199,13 +430296,13 @@ public static class AssemblyQuestLoader span6 = CollectionsMarshal.AsSpan(list336); num3 = 0; span6[num3] = 17268u; - obj238.KillEnemyDataIds = list336; - reference252 = obj238; - obj237.Steps = list335; - reference251 = obj237; + obj239.KillEnemyDataIds = list336; + reference252 = obj239; + obj238.Steps = list335; + reference251 = obj238; num++; ref QuestSequence reference253 = ref span2[num]; - QuestSequence obj239 = new QuestSequence + QuestSequence obj240 = new QuestSequence { Sequence = byte.MaxValue }; @@ -430218,8 +430315,8 @@ public static class AssemblyQuestLoader { AetheryteShortcut = EAetheryteLocation.YakTelIqBraax }; - obj239.Steps = list337; - reference253 = obj239; + obj240.Steps = list337; + reference253 = obj240; questRoot41.QuestSequence = list333; AddQuest(questId41, questRoot41); QuestId questId42 = new QuestId(5091); @@ -430237,7 +430334,7 @@ public static class AssemblyQuestLoader span2 = CollectionsMarshal.AsSpan(list339); num = 0; ref QuestSequence reference254 = ref span2[num]; - QuestSequence obj240 = new QuestSequence + QuestSequence obj241 = new QuestSequence { Sequence = 0 }; @@ -430247,11 +430344,11 @@ public static class AssemblyQuestLoader span3 = CollectionsMarshal.AsSpan(list340); num2 = 0; span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051071u, new Vector3(-554.03986f, 1.3156406f, -489.3416f), 1189); - obj240.Steps = list340; - reference254 = obj240; + obj241.Steps = list340; + reference254 = obj241; num++; ref QuestSequence reference255 = ref span2[num]; - QuestSequence obj241 = new QuestSequence + QuestSequence obj242 = new QuestSequence { Sequence = 1 }; @@ -430275,11 +430372,11 @@ public static class AssemblyQuestLoader { Fly = true }; - obj241.Steps = list341; - reference255 = obj241; + obj242.Steps = list341; + reference255 = obj242; num++; ref QuestSequence reference256 = ref span2[num]; - QuestSequence obj242 = new QuestSequence + QuestSequence obj243 = new QuestSequence { Sequence = byte.MaxValue }; @@ -430300,7 +430397,7 @@ public static class AssemblyQuestLoader }; num2++; ref QuestStep reference257 = ref span3[num2]; - QuestStep obj243 = new QuestStep(EInteractionType.CompleteQuest, 1051071u, new Vector3(-554.03986f, 1.3156406f, -489.3416f), 1189) + QuestStep obj244 = new QuestStep(EInteractionType.CompleteQuest, 1051071u, new Vector3(-554.03986f, 1.3156406f, -489.3416f), 1189) { Fly = true }; @@ -430315,10 +430412,10 @@ public static class AssemblyQuestLoader Prompt = new ExcelRef("TEXT_KINGZD002_05091_Q1_000_000"), Answer = new ExcelRef("TEXT_KINGZD002_05091_A1_000_001") }; - obj243.DialogueChoices = list343; - reference257 = obj243; - obj242.Steps = list342; - reference256 = obj242; + obj244.DialogueChoices = list343; + reference257 = obj244; + obj243.Steps = list342; + reference256 = obj243; questRoot42.QuestSequence = list339; AddQuest(questId42, questRoot42); QuestId questId43 = new QuestId(5092); @@ -430336,7 +430433,7 @@ public static class AssemblyQuestLoader span2 = CollectionsMarshal.AsSpan(list345); num = 0; ref QuestSequence reference258 = ref span2[num]; - QuestSequence obj244 = new QuestSequence + QuestSequence obj245 = new QuestSequence { Sequence = 0 }; @@ -430346,11 +430443,11 @@ public static class AssemblyQuestLoader span3 = CollectionsMarshal.AsSpan(list346); index2 = 0; span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051057u, new Vector3(-343.67902f, 18.885578f, -404.22675f), 1189); - obj244.Steps = list346; - reference258 = obj244; + obj245.Steps = list346; + reference258 = obj245; num++; ref QuestSequence reference259 = ref span2[num]; - QuestSequence obj245 = new QuestSequence + QuestSequence obj246 = new QuestSequence { Sequence = 1 }; @@ -430360,7 +430457,7 @@ public static class AssemblyQuestLoader span3 = CollectionsMarshal.AsSpan(list347); num2 = 0; ref QuestStep reference260 = ref span3[num2]; - QuestStep obj246 = new QuestStep(EInteractionType.Combat, null, new Vector3(158.97704f, 0.80940175f, -773.5188f), 1189) + QuestStep obj247 = new QuestStep(EInteractionType.Combat, null, new Vector3(158.97704f, 0.80940175f, -773.5188f), 1189) { StopDistance = 1f, AetheryteShortcut = EAetheryteLocation.Tuliyollal, @@ -430377,13 +430474,13 @@ public static class AssemblyQuestLoader span6 = CollectionsMarshal.AsSpan(list348); num3 = 0; span6[num3] = 17663u; - obj246.KillEnemyDataIds = list348; - reference260 = obj246; - obj245.Steps = list347; - reference259 = obj245; + obj247.KillEnemyDataIds = list348; + reference260 = obj247; + obj246.Steps = list347; + reference259 = obj246; num++; ref QuestSequence reference261 = ref span2[num]; - QuestSequence obj247 = new QuestSequence + QuestSequence obj248 = new QuestSequence { Sequence = 2 }; @@ -430396,11 +430493,11 @@ public static class AssemblyQuestLoader { StopDistance = 7f }; - obj247.Steps = list349; - reference261 = obj247; + obj248.Steps = list349; + reference261 = obj248; num++; ref QuestSequence reference262 = ref span2[num]; - QuestSequence obj248 = new QuestSequence + QuestSequence obj249 = new QuestSequence { Sequence = byte.MaxValue }; @@ -430414,8 +430511,8 @@ public static class AssemblyQuestLoader Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelIqBraax }; - obj248.Steps = list350; - reference262 = obj248; + obj249.Steps = list350; + reference262 = obj249; questRoot43.QuestSequence = list345; AddQuest(questId43, questRoot43); QuestId questId44 = new QuestId(5093); @@ -430433,7 +430530,7 @@ public static class AssemblyQuestLoader span2 = CollectionsMarshal.AsSpan(list352); num = 0; ref QuestSequence reference263 = ref span2[num]; - QuestSequence obj249 = new QuestSequence + QuestSequence obj250 = new QuestSequence { Sequence = 0 }; @@ -430443,11 +430540,11 @@ public static class AssemblyQuestLoader span3 = CollectionsMarshal.AsSpan(list353); index2 = 0; span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1048928u, new Vector3(36.301147f, 8.205902f, -645.1362f), 1189); - obj249.Steps = list353; - reference263 = obj249; + obj250.Steps = list353; + reference263 = obj250; num++; ref QuestSequence reference264 = ref span2[num]; - QuestSequence obj250 = new QuestSequence + QuestSequence obj251 = new QuestSequence { Sequence = 1 }; @@ -430460,11 +430557,11 @@ public static class AssemblyQuestLoader { Fly = true }; - obj250.Steps = list354; - reference264 = obj250; + obj251.Steps = list354; + reference264 = obj251; num++; ref QuestSequence reference265 = ref span2[num]; - QuestSequence obj251 = new QuestSequence + QuestSequence obj252 = new QuestSequence { Sequence = 2 }; @@ -430474,11 +430571,11 @@ public static class AssemblyQuestLoader span3 = CollectionsMarshal.AsSpan(list355); index2 = 0; span3[index2] = new QuestStep(EInteractionType.Interact, 1051072u, new Vector3(-39.07837f, 4.3051004f, -332.87555f), 1189); - obj251.Steps = list355; - reference265 = obj251; + obj252.Steps = list355; + reference265 = obj252; num++; ref QuestSequence reference266 = ref span2[num]; - QuestSequence obj252 = new QuestSequence + QuestSequence obj253 = new QuestSequence { Sequence = byte.MaxValue }; @@ -430488,8 +430585,8 @@ public static class AssemblyQuestLoader span3 = CollectionsMarshal.AsSpan(list356); num2 = 0; span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1048928u, new Vector3(36.301147f, 8.205902f, -645.1362f), 1189); - obj252.Steps = list356; - reference266 = obj252; + obj253.Steps = list356; + reference266 = obj253; questRoot44.QuestSequence = list352; AddQuest(questId44, questRoot44); QuestId questId45 = new QuestId(5094); @@ -430507,7 +430604,7 @@ public static class AssemblyQuestLoader span2 = CollectionsMarshal.AsSpan(list358); num = 0; ref QuestSequence reference267 = ref span2[num]; - QuestSequence obj253 = new QuestSequence + QuestSequence obj254 = new QuestSequence { Sequence = 0 }; @@ -430517,11 +430614,11 @@ public static class AssemblyQuestLoader span3 = CollectionsMarshal.AsSpan(list359); index2 = 0; span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051073u, new Vector3(41.09253f, 8.205902f, -629.8467f), 1189); - obj253.Steps = list359; - reference267 = obj253; + obj254.Steps = list359; + reference267 = obj254; num++; ref QuestSequence reference268 = ref span2[num]; - QuestSequence obj254 = new QuestSequence + QuestSequence obj255 = new QuestSequence { Sequence = 1 }; @@ -430531,11 +430628,11 @@ public static class AssemblyQuestLoader span3 = CollectionsMarshal.AsSpan(list360); num2 = 0; span3[num2] = new QuestStep(EInteractionType.Interact, 2014310u, new Vector3(499.8092f, 20.126648f, -345.84576f), 1189); - obj254.Steps = list360; - reference268 = obj254; + obj255.Steps = list360; + reference268 = obj255; num++; ref QuestSequence reference269 = ref span2[num]; - QuestSequence obj255 = new QuestSequence + QuestSequence obj256 = new QuestSequence { Sequence = 2 }; @@ -430607,11 +430704,11 @@ public static class AssemblyQuestLoader { DelaySecondsAtStart = 25f }; - obj255.Steps = list361; - reference269 = obj255; + obj256.Steps = list361; + reference269 = obj256; num++; ref QuestSequence reference270 = ref span2[num]; - QuestSequence obj256 = new QuestSequence + QuestSequence obj257 = new QuestSequence { Sequence = 3 }; @@ -430621,11 +430718,11 @@ public static class AssemblyQuestLoader span3 = CollectionsMarshal.AsSpan(list362); num2 = 0; span3[num2] = new QuestStep(EInteractionType.Interact, 1051362u, new Vector3(627.7103f, 17.481155f, 2.9754639f), 1189); - obj256.Steps = list362; - reference270 = obj256; + obj257.Steps = list362; + reference270 = obj257; num++; ref QuestSequence reference271 = ref span2[num]; - QuestSequence obj257 = new QuestSequence + QuestSequence obj258 = new QuestSequence { Sequence = byte.MaxValue }; @@ -430640,7 +430737,7 @@ public static class AssemblyQuestLoader }; index2++; ref QuestStep reference272 = ref span3[index2]; - QuestStep obj258 = new QuestStep(EInteractionType.CompleteQuest, 1051073u, new Vector3(41.09253f, 8.205902f, -629.8467f), 1189) + QuestStep obj259 = new QuestStep(EInteractionType.CompleteQuest, 1051073u, new Vector3(41.09253f, 8.205902f, -629.8467f), 1189) { AetheryteShortcut = EAetheryteLocation.Tuliyollal, AethernetShortcut = new AethernetShortcut @@ -430660,10 +430757,10 @@ public static class AssemblyQuestLoader Prompt = new ExcelRef("TEXT_KINGZD005_05094_CHOICE1Q1_100_060"), Answer = new ExcelRef("TEXT_KINGZD005_05094_CHOICE1A2_102_060") }; - obj258.DialogueChoices = list364; - reference272 = obj258; - obj257.Steps = list363; - reference271 = obj257; + obj259.DialogueChoices = list364; + reference272 = obj259; + obj258.Steps = list363; + reference271 = obj258; questRoot45.QuestSequence = list358; AddQuest(questId45, questRoot45); QuestId questId46 = new QuestId(5095); @@ -430681,7 +430778,7 @@ public static class AssemblyQuestLoader span2 = CollectionsMarshal.AsSpan(list366); num = 0; ref QuestSequence reference273 = ref span2[num]; - QuestSequence obj259 = new QuestSequence + QuestSequence obj260 = new QuestSequence { Sequence = 0 }; @@ -430691,11 +430788,11 @@ public static class AssemblyQuestLoader span3 = CollectionsMarshal.AsSpan(list367); num2 = 0; span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051061u, new Vector3(-407.79742f, 28.068892f, -360.55542f), 1189); - obj259.Steps = list367; - reference273 = obj259; + obj260.Steps = list367; + reference273 = obj260; num++; ref QuestSequence reference274 = ref span2[num]; - QuestSequence obj260 = new QuestSequence + QuestSequence obj261 = new QuestSequence { Sequence = 1 }; @@ -430705,7 +430802,7 @@ public static class AssemblyQuestLoader span3 = CollectionsMarshal.AsSpan(list368); index2 = 0; ref QuestStep reference275 = ref span3[index2]; - QuestStep obj261 = new QuestStep(EInteractionType.Combat, 1051062u, new Vector3(-489.5247f, -29.96456f, -94.83484f), 1189) + QuestStep obj262 = new QuestStep(EInteractionType.Combat, 1051062u, new Vector3(-489.5247f, -29.96456f, -94.83484f), 1189) { Fly = true, EnemySpawnType = EEnemySpawnType.AfterInteraction @@ -430718,13 +430815,13 @@ public static class AssemblyQuestLoader span6[num3] = 17664u; num3++; span6[num3] = 17665u; - obj261.KillEnemyDataIds = list369; - reference275 = obj261; - obj260.Steps = list368; - reference274 = obj260; + obj262.KillEnemyDataIds = list369; + reference275 = obj262; + obj261.Steps = list368; + reference274 = obj261; num++; ref QuestSequence reference276 = ref span2[num]; - QuestSequence obj262 = new QuestSequence + QuestSequence obj263 = new QuestSequence { Sequence = 2 }; @@ -430737,11 +430834,11 @@ public static class AssemblyQuestLoader { StopDistance = 7f }; - obj262.Steps = list370; - reference276 = obj262; + obj263.Steps = list370; + reference276 = obj263; num++; ref QuestSequence reference277 = ref span2[num]; - QuestSequence obj263 = new QuestSequence + QuestSequence obj264 = new QuestSequence { Sequence = byte.MaxValue }; @@ -430755,8 +430852,8 @@ public static class AssemblyQuestLoader Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelIqBraax }; - obj263.Steps = list371; - reference277 = obj263; + obj264.Steps = list371; + reference277 = obj264; questRoot46.QuestSequence = list366; AddQuest(questId46, questRoot46); QuestId questId47 = new QuestId(5096); @@ -430774,7 +430871,7 @@ public static class AssemblyQuestLoader span2 = CollectionsMarshal.AsSpan(list373); num = 0; ref QuestSequence reference278 = ref span2[num]; - QuestSequence obj264 = new QuestSequence + QuestSequence obj265 = new QuestSequence { Sequence = 0 }; @@ -430784,11 +430881,11 @@ public static class AssemblyQuestLoader span3 = CollectionsMarshal.AsSpan(list374); num2 = 0; span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1051065u, new Vector3(380.7583f, 21.437008f, -496.84903f), 1189); - obj264.Steps = list374; - reference278 = obj264; + obj265.Steps = list374; + reference278 = obj265; num++; ref QuestSequence reference279 = ref span2[num]; - QuestSequence obj265 = new QuestSequence + QuestSequence obj266 = new QuestSequence { Sequence = 1 }; @@ -430798,7 +430895,7 @@ public static class AssemblyQuestLoader span3 = CollectionsMarshal.AsSpan(list375); index2 = 0; ref QuestStep reference280 = ref span3[index2]; - QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 2014264u, new Vector3(405.1422f, 20.85907f, -482.10883f), 1189); + QuestStep questStep14 = new QuestStep(EInteractionType.Interact, 2014264u, new Vector3(405.1422f, 20.85907f, -482.10883f), 1189); num3 = 6; List list376 = new List(num3); CollectionsMarshal.SetCount(list376, num3); @@ -430815,11 +430912,11 @@ public static class AssemblyQuestLoader span4[num4] = null; num4++; span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - questStep15.CompletionQuestVariablesFlags = list376; - reference280 = questStep15; + questStep14.CompletionQuestVariablesFlags = list376; + reference280 = questStep14; index2++; ref QuestStep reference281 = ref span3[index2]; - QuestStep questStep16 = new QuestStep(EInteractionType.Interact, 2014266u, new Vector3(430.83838f, 20.126648f, -456.71783f), 1189); + QuestStep questStep15 = new QuestStep(EInteractionType.Interact, 2014266u, new Vector3(430.83838f, 20.126648f, -456.71783f), 1189); num4 = 6; List list377 = new List(num4); CollectionsMarshal.SetCount(list377, num4); @@ -430836,11 +430933,11 @@ public static class AssemblyQuestLoader span4[num3] = null; num3++; span4[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - questStep16.CompletionQuestVariablesFlags = list377; - reference281 = questStep16; + questStep15.CompletionQuestVariablesFlags = list377; + reference281 = questStep15; index2++; ref QuestStep reference282 = ref span3[index2]; - QuestStep obj266 = new QuestStep(EInteractionType.Combat, 2014265u, new Vector3(395.92578f, 20.34021f, -453.02515f), 1189) + QuestStep obj267 = new QuestStep(EInteractionType.Combat, 2014265u, new Vector3(395.92578f, 20.34021f, -453.02515f), 1189) { EnemySpawnType = EEnemySpawnType.AfterInteraction }; @@ -430850,7 +430947,7 @@ public static class AssemblyQuestLoader span6 = CollectionsMarshal.AsSpan(list378); num4 = 0; span6[num4] = 17666u; - obj266.KillEnemyDataIds = list378; + obj267.KillEnemyDataIds = list378; num4 = 6; List list379 = new List(num4); CollectionsMarshal.SetCount(list379, num4); @@ -430867,13 +430964,13 @@ public static class AssemblyQuestLoader span4[num3] = null; num3++; span4[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - obj266.CompletionQuestVariablesFlags = list379; - reference282 = obj266; - obj265.Steps = list375; - reference279 = obj265; + obj267.CompletionQuestVariablesFlags = list379; + reference282 = obj267; + obj266.Steps = list375; + reference279 = obj266; num++; ref QuestSequence reference283 = ref span2[num]; - QuestSequence obj267 = new QuestSequence + QuestSequence obj268 = new QuestSequence { Sequence = byte.MaxValue }; @@ -430883,8 +430980,8 @@ public static class AssemblyQuestLoader span3 = CollectionsMarshal.AsSpan(list380); num2 = 0; span3[num2] = new QuestStep(EInteractionType.CompleteQuest, 1051065u, new Vector3(380.7583f, 21.437008f, -496.84903f), 1189); - obj267.Steps = list380; - reference283 = obj267; + obj268.Steps = list380; + reference283 = obj268; questRoot47.QuestSequence = list373; AddQuest(questId47, questRoot47); QuestId questId48 = new QuestId(5097); @@ -430902,7 +430999,7 @@ public static class AssemblyQuestLoader span2 = CollectionsMarshal.AsSpan(list382); num = 0; ref QuestSequence reference284 = ref span2[num]; - QuestSequence obj268 = new QuestSequence + QuestSequence obj269 = new QuestSequence { Sequence = 0 }; @@ -430912,11 +431009,11 @@ public static class AssemblyQuestLoader span3 = CollectionsMarshal.AsSpan(list383); index2 = 0; span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051364u, new Vector3(-9.353821f, 8.205902f, -652.9183f), 1189); - obj268.Steps = list383; - reference284 = obj268; + obj269.Steps = list383; + reference284 = obj269; num++; ref QuestSequence reference285 = ref span2[num]; - QuestSequence obj269 = new QuestSequence + QuestSequence obj270 = new QuestSequence { Sequence = 1 }; @@ -430926,7 +431023,7 @@ public static class AssemblyQuestLoader span3 = CollectionsMarshal.AsSpan(list384); num2 = 0; ref QuestStep reference286 = ref span3[num2]; - QuestStep obj270 = new QuestStep(EInteractionType.Interact, 1048961u, new Vector3(-444.38855f, 28.068893f, -363.66827f), 1189) + QuestStep obj271 = new QuestStep(EInteractionType.Interact, 1048961u, new Vector3(-444.38855f, 28.068893f, -363.66827f), 1189) { Fly = true, AetheryteShortcut = EAetheryteLocation.YakTelIqBraax @@ -430947,11 +431044,11 @@ public static class AssemblyQuestLoader span4[num4] = null; num4++; span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - obj270.CompletionQuestVariablesFlags = list385; - reference286 = obj270; + obj271.CompletionQuestVariablesFlags = list385; + reference286 = obj271; num2++; ref QuestStep reference287 = ref span3[num2]; - QuestStep obj271 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-632.6718f, 25.245409f, -159.94264f), 1189) + QuestStep obj272 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-632.6718f, 25.245409f, -159.94264f), 1189) { Fly = true }; @@ -430975,11 +431072,11 @@ public static class AssemblyQuestLoader span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions2.CompletionQuestVariablesFlags = list386; skipConditions2.StepIf = skipStepConditions2; - obj271.SkipConditions = skipConditions2; - reference287 = obj271; + obj272.SkipConditions = skipConditions2; + reference287 = obj272; num2++; ref QuestStep reference288 = ref span3[num2]; - QuestStep obj272 = new QuestStep(EInteractionType.Interact, 1048995u, new Vector3(-639.27673f, 26.716875f, -161.05902f), 1189) + QuestStep obj273 = new QuestStep(EInteractionType.Interact, 1048995u, new Vector3(-639.27673f, 26.716875f, -161.05902f), 1189) { StopDistance = 7f }; @@ -430999,13 +431096,13 @@ public static class AssemblyQuestLoader span4[num4] = null; num4++; span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - obj272.CompletionQuestVariablesFlags = list387; - reference288 = obj272; - obj269.Steps = list384; - reference285 = obj269; + obj273.CompletionQuestVariablesFlags = list387; + reference288 = obj273; + obj270.Steps = list384; + reference285 = obj270; num++; ref QuestSequence reference289 = ref span2[num]; - QuestSequence obj273 = new QuestSequence + QuestSequence obj274 = new QuestSequence { Sequence = byte.MaxValue }; @@ -431023,8 +431120,8 @@ public static class AssemblyQuestLoader To = EAetheryteLocation.TuliyollalDirigibleLandingYakTel } }; - obj273.Steps = list388; - reference289 = obj273; + obj274.Steps = list388; + reference289 = obj274; questRoot48.QuestSequence = list382; AddQuest(questId48, questRoot48); QuestId questId49 = new QuestId(5098); @@ -431042,7 +431139,7 @@ public static class AssemblyQuestLoader span2 = CollectionsMarshal.AsSpan(list390); num = 0; ref QuestSequence reference290 = ref span2[num]; - QuestSequence obj274 = new QuestSequence + QuestSequence obj275 = new QuestSequence { Sequence = 0 }; @@ -431052,11 +431149,11 @@ public static class AssemblyQuestLoader span3 = CollectionsMarshal.AsSpan(list391); num2 = 0; span3[num2] = new QuestStep(EInteractionType.AcceptQuest, 1048996u, new Vector3(-618.43286f, 25.709108f, -153.91785f), 1189); - obj274.Steps = list391; - reference290 = obj274; + obj275.Steps = list391; + reference290 = obj275; num++; ref QuestSequence reference291 = ref span2[num]; - QuestSequence obj275 = new QuestSequence + QuestSequence obj276 = new QuestSequence { Sequence = 1 }; @@ -431069,11 +431166,11 @@ public static class AssemblyQuestLoader { Fly = true }; - obj275.Steps = list392; - reference291 = obj275; + obj276.Steps = list392; + reference291 = obj276; num++; ref QuestSequence reference292 = ref span2[num]; - QuestSequence obj276 = new QuestSequence + QuestSequence obj277 = new QuestSequence { Sequence = 2 }; @@ -431083,7 +431180,7 @@ public static class AssemblyQuestLoader span3 = CollectionsMarshal.AsSpan(list393); num2 = 0; ref QuestStep reference293 = ref span3[num2]; - QuestStep obj277 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-580.44604f, 22.457048f, -3.286837f), 1189) + QuestStep obj278 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-580.44604f, 22.457048f, -3.286837f), 1189) { Fly = true }; @@ -431107,11 +431204,11 @@ public static class AssemblyQuestLoader span4[num3] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); skipStepConditions3.CompletionQuestVariablesFlags = list394; skipConditions3.StepIf = skipStepConditions3; - obj277.SkipConditions = skipConditions3; - reference293 = obj277; + obj278.SkipConditions = skipConditions3; + reference293 = obj278; num2++; ref QuestStep reference294 = ref span3[num2]; - QuestStep obj278 = new QuestStep(EInteractionType.UseItem, 2014313u, new Vector3(-581.75024f, 23.697266f, -2.9450073f), 1189) + QuestStep obj279 = new QuestStep(EInteractionType.UseItem, 2014313u, new Vector3(-581.75024f, 23.697266f, -2.9450073f), 1189) { ItemId = 2003683u }; @@ -431131,11 +431228,11 @@ public static class AssemblyQuestLoader span4[num4] = null; num4++; span4[num4] = new QuestWorkValue((byte)8, 0, EQuestWorkMode.Bitwise); - obj278.CompletionQuestVariablesFlags = list395; - reference294 = obj278; + obj279.CompletionQuestVariablesFlags = list395; + reference294 = obj279; num2++; ref QuestStep reference295 = ref span3[num2]; - QuestStep obj279 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-506.6366f, 22.817732f, 32.985153f), 1189) + QuestStep obj280 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-506.6366f, 22.817732f, 32.985153f), 1189) { Fly = true }; @@ -431159,11 +431256,11 @@ public static class AssemblyQuestLoader span4[num3] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); skipStepConditions4.CompletionQuestVariablesFlags = list396; skipConditions4.StepIf = skipStepConditions4; - obj279.SkipConditions = skipConditions4; - reference295 = obj279; + obj280.SkipConditions = skipConditions4; + reference295 = obj280; num2++; ref QuestStep reference296 = ref span3[num2]; - QuestStep obj280 = new QuestStep(EInteractionType.UseItem, 2014314u, new Vector3(-505.9129f, 23.88031f, 32.455933f), 1189) + QuestStep obj281 = new QuestStep(EInteractionType.UseItem, 2014314u, new Vector3(-505.9129f, 23.88031f, 32.455933f), 1189) { ItemId = 2003683u }; @@ -431183,11 +431280,11 @@ public static class AssemblyQuestLoader span4[num4] = null; num4++; span4[num4] = new QuestWorkValue((byte)4, 0, EQuestWorkMode.Bitwise); - obj280.CompletionQuestVariablesFlags = list397; - reference296 = obj280; + obj281.CompletionQuestVariablesFlags = list397; + reference296 = obj281; num2++; ref QuestStep reference297 = ref span3[num2]; - QuestStep obj281 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-414.84598f, 20.493914f, 74.74898f), 1189) + QuestStep obj282 = new QuestStep(EInteractionType.WalkTo, null, new Vector3(-414.84598f, 20.493914f, 74.74898f), 1189) { Fly = true }; @@ -431211,11 +431308,11 @@ public static class AssemblyQuestLoader span4[num3] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); skipStepConditions5.CompletionQuestVariablesFlags = list398; skipConditions5.StepIf = skipStepConditions5; - obj281.SkipConditions = skipConditions5; - reference297 = obj281; + obj282.SkipConditions = skipConditions5; + reference297 = obj282; num2++; ref QuestStep reference298 = ref span3[num2]; - QuestStep obj282 = new QuestStep(EInteractionType.UseItem, 2014315u, new Vector3(-413.96204f, 21.896606f, 74.021484f), 1189) + QuestStep obj283 = new QuestStep(EInteractionType.UseItem, 2014315u, new Vector3(-413.96204f, 21.896606f, 74.021484f), 1189) { ItemId = 2003683u }; @@ -431235,13 +431332,13 @@ public static class AssemblyQuestLoader span4[num4] = null; num4++; span4[num4] = new QuestWorkValue((byte)2, 0, EQuestWorkMode.Bitwise); - obj282.CompletionQuestVariablesFlags = list399; - reference298 = obj282; - obj276.Steps = list393; - reference292 = obj276; + obj283.CompletionQuestVariablesFlags = list399; + reference298 = obj283; + obj277.Steps = list393; + reference292 = obj277; num++; ref QuestSequence reference299 = ref span2[num]; - QuestSequence obj283 = new QuestSequence + QuestSequence obj284 = new QuestSequence { Sequence = 3 }; @@ -431254,11 +431351,11 @@ public static class AssemblyQuestLoader { Fly = true }; - obj283.Steps = list400; - reference299 = obj283; + obj284.Steps = list400; + reference299 = obj284; num++; ref QuestSequence reference300 = ref span2[num]; - QuestSequence obj284 = new QuestSequence + QuestSequence obj285 = new QuestSequence { Sequence = byte.MaxValue }; @@ -431271,8 +431368,8 @@ public static class AssemblyQuestLoader { Fly = true }; - obj284.Steps = list401; - reference300 = obj284; + obj285.Steps = list401; + reference300 = obj285; questRoot49.QuestSequence = list390; AddQuest(questId49, questRoot49); QuestId questId50 = new QuestId(5099); @@ -431290,7 +431387,7 @@ public static class AssemblyQuestLoader span2 = CollectionsMarshal.AsSpan(list403); num = 0; ref QuestSequence reference301 = ref span2[num]; - QuestSequence obj285 = new QuestSequence + QuestSequence obj286 = new QuestSequence { Sequence = 0 }; @@ -431300,11 +431397,11 @@ public static class AssemblyQuestLoader span3 = CollectionsMarshal.AsSpan(list404); index2 = 0; span3[index2] = new QuestStep(EInteractionType.AcceptQuest, 1051366u, new Vector3(-399.95422f, 20.145584f, -402.4262f), 1189); - obj285.Steps = list404; - reference301 = obj285; + obj286.Steps = list404; + reference301 = obj286; num++; ref QuestSequence reference302 = ref span2[num]; - QuestSequence obj286 = new QuestSequence + QuestSequence obj287 = new QuestSequence { Sequence = 1 }; @@ -431317,11 +431414,11 @@ public static class AssemblyQuestLoader { Fly = true }; - obj286.Steps = list405; - reference302 = obj286; + obj287.Steps = list405; + reference302 = obj287; num++; ref QuestSequence reference303 = ref span2[num]; - QuestSequence obj287 = new QuestSequence + QuestSequence obj288 = new QuestSequence { Sequence = byte.MaxValue }; @@ -431331,8 +431428,8 @@ public static class AssemblyQuestLoader span3 = CollectionsMarshal.AsSpan(list406); index2 = 0; span3[index2] = new QuestStep(EInteractionType.CompleteQuest, 1051368u, new Vector3(-501.27414f, 28.982998f, -394.3084f), 1189); - obj287.Steps = list406; - reference303 = obj287; + obj288.Steps = list406; + reference303 = obj288; questRoot50.QuestSequence = list403; AddQuest(questId50, questRoot50); } diff --git a/Questionable/Questionable.Controller/QuestController.cs b/Questionable/Questionable.Controller/QuestController.cs index dc09739..c903ac6 100644 --- a/Questionable/Questionable.Controller/QuestController.cs +++ b/Questionable/Questionable.Controller/QuestController.cs @@ -520,6 +520,18 @@ internal sealed class QuestController : MiniTaskController else if (!_questFunctions.IsQuestComplete(_startedQuest.Quest.Id)) { _logger.LogInformation("Quest {QuestId} was abandoned, clearing started quest", _startedQuest.Quest.Id); + (ElementId, byte)? tuple = (from x in ManualPriorityQuests + where _questFunctions.IsReadyToAcceptQuest(x.Id) + select ((ElementId Id, byte))(Id: x.Id, 0)).FirstOrDefault(); + if (tuple.HasValue) + { + (ElementId, byte) valueOrDefault = tuple.GetValueOrDefault(); + if ((object)valueOrDefault.Item1 != null && _questRegistry.TryGetQuest(valueOrDefault.Item1, out Quest quest)) + { + _logger.LogInformation("Setting priority quest {QuestId} as next quest", valueOrDefault.Item1); + SetNextQuest(quest); + } + } _startedQuest = null; Stop("Quest abandoned"); return; @@ -551,9 +563,8 @@ internal sealed class QuestController : MiniTaskController } byte b; QuestProgress questProgress; - ElementId CurrentQuest; - byte Sequence; - MainScenarioQuestState State; + ElementId elementId; + MainScenarioQuestState mainScenarioQuestState; if (_simulatedQuest != null) { b = _simulatedQuest.Sequence; @@ -577,8 +588,38 @@ internal sealed class QuestController : MiniTaskController ExecuteNextStep(); } } - else if (_startedQuest != null) + else { + ElementId CurrentQuest; + byte Sequence; + MainScenarioQuestState State; + if (_startedQuest == null) + { + _questFunctions.GetCurrentQuest(AutomationType != EAutomationType.SingleQuestB).Deconstruct(out CurrentQuest, out Sequence, out State); + elementId = CurrentQuest; + b = Sequence; + mainScenarioQuestState = State; + (ElementId, byte)? tuple2 = (from x in ManualPriorityQuests + where _questFunctions.IsQuestAccepted(x.Id) + select (Id: x.Id, _questFunctions.GetQuestProgressInfo(x.Id)?.Sequence ?? 0)).FirstOrDefault(); + if (tuple2.HasValue) + { + (ElementId, byte) valueOrDefault2 = tuple2.GetValueOrDefault(); + if ((object)valueOrDefault2.Item1 != null) + { + (elementId, b) = valueOrDefault2; + goto IL_0813; + } + } + Quest quest2 = ManualPriorityQuests.FirstOrDefault((Quest x) => _questFunctions.IsReadyToAcceptQuest(x.Id)); + if (quest2 != null) + { + _logger.LogInformation("Setting ready priority quest {QuestId} as next quest", quest2.Id); + SetNextQuest(quest2); + return; + } + goto IL_0813; + } questProgress = _startedQuest; b = _startedQuest.Sequence; QuestProgressInfo questProgressInfo2 = _questFunctions.GetQuestProgressInfo(_startedQuest.Quest.Id); @@ -590,117 +631,42 @@ internal sealed class QuestController : MiniTaskController if (AutomationType == EAutomationType.Manual || !IsRunning) { _questFunctions.GetCurrentQuest(AutomationType != EAutomationType.SingleQuestB).Deconstruct(out CurrentQuest, out Sequence, out State); - ElementId elementId = CurrentQuest; + ElementId elementId2 = CurrentQuest; byte sequence = Sequence; - (ElementId, byte)? tuple = (from x in ManualPriorityQuests - where _questFunctions.IsReadyToAcceptQuest(x.Id) || _questFunctions.IsQuestAccepted(x.Id) + (ElementId, byte)? tuple4 = (from x in ManualPriorityQuests + where _questFunctions.IsQuestAccepted(x.Id) select (Id: x.Id, _questFunctions.GetQuestProgressInfo(x.Id)?.Sequence ?? 0)).FirstOrDefault(); - if (tuple.HasValue) + if (tuple4.HasValue) { - (ElementId, byte) valueOrDefault = tuple.GetValueOrDefault(); - if ((object)valueOrDefault.Item1 != null) + (ElementId, byte) valueOrDefault3 = tuple4.GetValueOrDefault(); + if ((object)valueOrDefault3.Item1 != null) { - (elementId, sequence) = valueOrDefault; + (elementId2, sequence) = valueOrDefault3; } } - if (elementId != null && elementId.Value != 0 && _startedQuest.Quest.Id != elementId) + if (elementId2 != null && elementId2.Value != 0 && _startedQuest.Quest.Id != elementId2) { - _logger.LogInformation("Game current quest changed from {OldQuest} to {NewQuest}, updating started quest", _startedQuest.Quest.Id, elementId); - if (_questRegistry.TryGetQuest(elementId, out Quest quest)) + _logger.LogInformation("Game current quest changed from {OldQuest} to {NewQuest}, updating started quest", _startedQuest.Quest.Id, elementId2); + if (_questRegistry.TryGetQuest(elementId2, out Quest quest3)) { - _logger.LogInformation("Switching to new quest: {QuestName}", quest.Info.Name); - _startedQuest = new QuestProgress(quest, sequence); - if (_clientState.LocalPlayer != null && _clientState.LocalPlayer.Level < quest.Info.Level) + _logger.LogInformation("Switching to new quest: {QuestName}", quest3.Info.Name); + _startedQuest = new QuestProgress(quest3, sequence); + if (_clientState.LocalPlayer != null && _clientState.LocalPlayer.Level < quest3.Info.Level) { - _logger.LogInformation("Stopping automation, player level ({PlayerLevel}) < quest level ({QuestLevel}", _clientState.LocalPlayer.Level, quest.Info.Level); + _logger.LogInformation("Stopping automation, player level ({PlayerLevel}) < quest level ({QuestLevel}", _clientState.LocalPlayer.Level, quest3.Info.Level); Stop("Quest level too high"); } questProgress = _startedQuest; } else { - _logger.LogInformation("New quest {QuestId} not found in registry", elementId); + _logger.LogInformation("New quest {QuestId} not found in registry", elementId2); } } } } - else - { - _questFunctions.GetCurrentQuest(AutomationType != EAutomationType.SingleQuestB).Deconstruct(out CurrentQuest, out Sequence, out State); - ElementId elementId2 = CurrentQuest; - b = Sequence; - MainScenarioQuestState mainScenarioQuestState = State; - (ElementId, byte)? tuple3 = (from x in ManualPriorityQuests - where _questFunctions.IsReadyToAcceptQuest(x.Id) || _questFunctions.IsQuestAccepted(x.Id) - select (Id: x.Id, _questFunctions.GetQuestProgressInfo(x.Id)?.Sequence ?? 0)).FirstOrDefault(); - if (tuple3.HasValue) - { - (ElementId, byte) valueOrDefault2 = tuple3.GetValueOrDefault(); - if ((object)valueOrDefault2.Item1 != null) - { - (elementId2, b) = valueOrDefault2; - } - } - if (elementId2 == null || elementId2.Value == 0) - { - if (_startedQuest != null) - { - switch (mainScenarioQuestState) - { - case MainScenarioQuestState.Unavailable: - _logger.LogWarning("MSQ information not available, doing nothing"); - return; - case MainScenarioQuestState.LoadingScreen: - _logger.LogWarning("On loading screen, no MSQ - doing nothing"); - return; - } - _logger.LogInformation("No current quest, resetting data [CQI: {CurrrentQuestData}], [CQ: {QuestData}], [MSQ: {MsqData}]", _questFunctions.GetCurrentQuestInternal(allowNewMsq: true), _questFunctions.GetCurrentQuest(), _questFunctions.GetMainScenarioQuest()); - _startedQuest = null; - Stop("Resetting current quest"); - } - questProgress = null; - } - else - { - if (_startedQuest == null || _startedQuest.Quest.Id != elementId2) - { - Quest quest2; - if (_configuration.Stop.Enabled && _startedQuest != null && _configuration.Stop.QuestsToStopAfter.Contains(_startedQuest.Quest.Id) && _questFunctions.IsQuestComplete(_startedQuest.Quest.Id)) - { - ElementId id = _startedQuest.Quest.Id; - _logger.LogInformation("Reached stopping point (quest: {QuestId})", id); - _chatGui.Print("Completed quest '" + _startedQuest.Quest.Info.Name + "', which is configured as a stopping point.", "Questionable", 576); - _startedQuest = null; - Stop($"Stopping point [{id}] reached"); - } - else if (_questRegistry.TryGetQuest(elementId2, out quest2)) - { - _logger.LogInformation("New quest: {QuestName}", quest2.Info.Name); - _startedQuest = new QuestProgress(quest2, b); - if (_clientState.LocalPlayer != null && _clientState.LocalPlayer.Level < quest2.Info.Level) - { - _logger.LogInformation("Stopping automation, player level ({PlayerLevel}) < quest level ({QuestLevel}", _clientState.LocalPlayer.Level, quest2.Info.Level); - Stop("Quest level too high"); - return; - } - if (AutomationType == EAutomationType.SingleQuestB) - { - _logger.LogInformation("Single quest is finished"); - AutomationType = EAutomationType.Manual; - } - CheckNextTasks("Different Quest"); - } - else if (_startedQuest != null) - { - _logger.LogInformation("No active quest anymore? Not sure what happened..."); - _startedQuest = null; - Stop("No active Quest"); - } - return; - } - questProgress = _startedQuest; - } - } + goto IL_0b43; + IL_0b43: if (questProgress == null) { DebugState = "No quest active"; @@ -758,6 +724,68 @@ internal sealed class QuestController : MiniTaskController { DebugState = null; } + return; + IL_0813: + if (elementId == null || elementId.Value == 0) + { + if (_startedQuest != null) + { + switch (mainScenarioQuestState) + { + case MainScenarioQuestState.Unavailable: + _logger.LogWarning("MSQ information not available, doing nothing"); + return; + case MainScenarioQuestState.LoadingScreen: + _logger.LogWarning("On loading screen, no MSQ - doing nothing"); + return; + } + _logger.LogInformation("No current quest, resetting data [CQI: {CurrrentQuestData}], [CQ: {QuestData}], [MSQ: {MsqData}]", _questFunctions.GetCurrentQuestInternal(allowNewMsq: true), _questFunctions.GetCurrentQuest(), _questFunctions.GetMainScenarioQuest()); + _startedQuest = null; + Stop("Resetting current quest"); + } + questProgress = null; + } + else + { + if (_startedQuest == null || _startedQuest.Quest.Id != elementId) + { + Quest quest4; + if (_configuration.Stop.Enabled && _startedQuest != null && _configuration.Stop.QuestsToStopAfter.Contains(_startedQuest.Quest.Id) && _questFunctions.IsQuestComplete(_startedQuest.Quest.Id)) + { + ElementId id = _startedQuest.Quest.Id; + _logger.LogInformation("Reached stopping point (quest: {QuestId})", id); + _chatGui.Print("Completed quest '" + _startedQuest.Quest.Info.Name + "', which is configured as a stopping point.", "Questionable", 576); + _startedQuest = null; + Stop($"Stopping point [{id}] reached"); + } + else if (_questRegistry.TryGetQuest(elementId, out quest4)) + { + _logger.LogInformation("New quest: {QuestName}", quest4.Info.Name); + _startedQuest = new QuestProgress(quest4, b); + if (_clientState.LocalPlayer != null && _clientState.LocalPlayer.Level < quest4.Info.Level) + { + _logger.LogInformation("Stopping automation, player level ({PlayerLevel}) < quest level ({QuestLevel}", _clientState.LocalPlayer.Level, quest4.Info.Level); + Stop("Quest level too high"); + return; + } + if (AutomationType == EAutomationType.SingleQuestB) + { + _logger.LogInformation("Single quest is finished"); + AutomationType = EAutomationType.Manual; + } + CheckNextTasks("Different Quest"); + } + else if (_startedQuest != null) + { + _logger.LogInformation("No active quest anymore? Not sure what happened..."); + _startedQuest = null; + Stop("No active Quest"); + } + return; + } + questProgress = _startedQuest; + } + goto IL_0b43; } } diff --git a/Questionable/Questionable.Windows.ConfigComponents/PluginConfigComponent.cs b/Questionable/Questionable.Windows.ConfigComponents/PluginConfigComponent.cs index 0dbf78a..10ceffd 100644 --- a/Questionable/Questionable.Windows.ConfigComponents/PluginConfigComponent.cs +++ b/Questionable/Questionable.Windows.ConfigComponents/PluginConfigComponent.cs @@ -66,7 +66,14 @@ internal sealed class PluginConfigComponent : ConfigComponent _pluginInterface = pluginInterface; _uiUtils = uiUtils; _commandManager = commandManager; - PluginInfo[] array = new PluginInfo[4]; + PluginInfo[] obj = new PluginInfo[5] + { + new PluginInfo("Artisan", "Artisan", "Handles automatic crafting for quests that require\ncrafted items.", new Uri("https://github.com/PunishXIV/Artisan"), new Uri("https://puni.sh/api/plugins")), + null, + null, + null, + null + }; Uri websiteUri = new Uri("https://github.com/Jaksuhn/Automaton"); Uri dalamudRepositoryUri = new Uri("https://puni.sh/api/repository/croizat"); int num = 1; @@ -75,7 +82,7 @@ internal sealed class PluginConfigComponent : ConfigComponent Span span = CollectionsMarshal.AsSpan(list); int index = 0; span[index] = new PluginDetailInfo("'Sniper no sniping' enabled", "Automatically completes sniping tasks introduced in Stormblood", () => automatonIpc.IsAutoSnipeEnabled); - array[0] = new PluginInfo("CBT (formerly known as Automaton)", "Automaton", "Automaton is a collection of automation-related tweaks.", websiteUri, dalamudRepositoryUri, "/cbt", list); + obj[1] = new PluginInfo("CBT (formerly known as Automaton)", "Automaton", "Automaton is a collection of automation-related tweaks.", websiteUri, dalamudRepositoryUri, "/cbt", list); Uri websiteUri2 = new Uri("https://github.com/PunishXIV/PandorasBox"); Uri dalamudRepositoryUri2 = new Uri("https://puni.sh/api/plugins"); index = 1; @@ -84,10 +91,10 @@ internal sealed class PluginConfigComponent : ConfigComponent span = CollectionsMarshal.AsSpan(list2); num = 0; span[num] = new PluginDetailInfo("'Auto Active Time Maneuver' enabled", "Automatically completes active time maneuvers in\nsingle player instances, trials and raids\"", () => pandorasBoxIpc.IsAutoActiveTimeManeuverEnabled); - array[1] = new PluginInfo("Pandora's Box", "PandorasBox", "Pandora's Box is a collection of tweaks.", websiteUri2, dalamudRepositoryUri2, "/pandora", list2); - array[2] = new PluginInfo("QuestMap", "QuestMap", "Displays quest objectives and markers on the map for\nbetter navigation and tracking.", new Uri("https://github.com/rreminy/QuestMap"), null); - array[3] = new PluginInfo("NotificationMaster", "NotificationMaster", "Sends a configurable out-of-game notification if a quest\nrequires manual actions.", new Uri("https://github.com/NightmareXIV/NotificationMaster"), null); - _recommendedPlugins = new global::_003C_003Ez__ReadOnlyArray(array); + obj[2] = new PluginInfo("Pandora's Box", "PandorasBox", "Pandora's Box is a collection of tweaks.", websiteUri2, dalamudRepositoryUri2, "/pandora", list2); + obj[3] = new PluginInfo("QuestMap", "QuestMap", "Displays quest objectives and markers on the map for\nbetter navigation and tracking.", new Uri("https://github.com/rreminy/QuestMap"), null); + obj[4] = new PluginInfo("NotificationMaster", "NotificationMaster", "Sends a configurable out-of-game notification if a quest\nrequires manual actions.", new Uri("https://github.com/NightmareXIV/NotificationMaster"), null); + _recommendedPlugins = new global::_003C_003Ez__ReadOnlyArray(obj); } public override void DrawTab() diff --git a/Questionable/Questionable.Windows.JournalComponents/QuestJournalUtils.cs b/Questionable/Questionable.Windows.JournalComponents/QuestJournalUtils.cs index 9971661..3fbde93 100644 --- a/Questionable/Questionable.Windows.JournalComponents/QuestJournalUtils.cs +++ b/Questionable/Questionable.Windows.JournalComponents/QuestJournalUtils.cs @@ -1,9 +1,13 @@ +using System.Collections.Generic; +using System.Linq; using Dalamud.Bindings.ImGui; using Dalamud.Interface; using Dalamud.Interface.Components; using Dalamud.Interface.Utility.Raii; using Dalamud.Plugin.Services; +using Microsoft.Extensions.Logging; using Questionable.Controller; +using Questionable.Data; using Questionable.Functions; using Questionable.Model; using Questionable.Model.Questing; @@ -16,13 +20,25 @@ internal sealed class QuestJournalUtils private readonly QuestFunctions _questFunctions; + private readonly QuestData _questData; + + private readonly QuestRegistry _questRegistry; + private readonly ICommandManager _commandManager; - public QuestJournalUtils(QuestController questController, QuestFunctions questFunctions, ICommandManager commandManager) + private readonly IChatGui _chatGui; + + private readonly ILogger _logger; + + public QuestJournalUtils(QuestController questController, QuestFunctions questFunctions, QuestData questData, QuestRegistry questRegistry, ICommandManager commandManager, IChatGui chatGui, ILogger logger) { _questController = questController; _questFunctions = questFunctions; + _questData = questData; + _questRegistry = questRegistry; _commandManager = commandManager; + _chatGui = chatGui; + _logger = logger; } public void ShowContextMenu(IQuestInfo questInfo, Quest? quest, string label) @@ -43,7 +59,10 @@ internal sealed class QuestJournalUtils { return; } - using (ImRaii.Disabled(quest == null || (!_questFunctions.IsReadyToAcceptQuest(questInfo.QuestId) && !_questFunctions.IsQuestAccepted(questInfo.QuestId)))) + 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))) { if (ImGui.MenuItem("Start as next quest")) { @@ -51,7 +70,7 @@ internal sealed class QuestJournalUtils { return; } - if (_questFunctions.IsQuestAccepted(questInfo.QuestId)) + if (flag2) { QuestProgressInfo questProgressInfo = _questFunctions.GetQuestProgressInfo(questInfo.QuestId); if (questProgressInfo != null) @@ -67,8 +86,32 @@ internal sealed class QuestJournalUtils } } } - bool flag = _commandManager.Commands.ContainsKey("/questinfo"); - using (ImRaii.Disabled(!(questInfo.QuestId is QuestId) || !flag)) + List incompletePrerequisiteQuests = GetIncompletePrerequisiteQuests(questInfo); + using (ImRaii.Disabled(incompletePrerequisiteQuests.Count == 0)) + { + if (ImGui.MenuItem(incompletePrerequisiteQuests.Count switch + { + 0 => "Add quest and requirements to priority", + 1 => "Add 1 quest to priority", + _ => $"Add {incompletePrerequisiteQuests.Count} quests to priority", + })) + { + AddRequiredQuestsToPriority(questInfo, incompletePrerequisiteQuests); + } + } + if (ImGui.IsItemHovered(ImGuiHoveredFlags.AllowWhenDisabled)) + { + if (incompletePrerequisiteQuests.Count == 0) + { + ImGui.SetTooltip("No quests to add (quest may be complete or already in priority)"); + } + else + { + 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)) { if (ImGui.MenuItem("View in Quest Map")) { @@ -77,6 +120,97 @@ internal sealed class QuestJournalUtils } } + private List GetIncompletePrerequisiteQuests(IQuestInfo questInfo) + { + List list = new List(); + HashSet visited = new HashSet(); + CollectPrerequisitesRecursive(questInfo, list, visited); + list.Reverse(); + List list2 = (from qId in list + where !_questFunctions.IsQuestComplete(qId) + where !_questFunctions.IsQuestUnobtainable(qId) + where _questRegistry.IsKnownQuest(qId) + where !_questController.ManualPriorityQuests.Any((Quest q) => q.Id.Equals(qId)) + select qId).ToList(); + list2.Reverse(); + if (!_questFunctions.IsQuestComplete(questInfo.QuestId) && !_questFunctions.IsQuestUnobtainable(questInfo.QuestId) && _questRegistry.IsKnownQuest(questInfo.QuestId) && !_questController.ManualPriorityQuests.Any((Quest q) => q.Id.Equals(questInfo.QuestId))) + { + list2.Add(questInfo.QuestId); + } + return list2; + } + + private void CollectPrerequisitesRecursive(IQuestInfo questInfo, List prerequisites, HashSet visited) + { + if (visited.Contains(questInfo.QuestId)) + { + return; + } + visited.Add(questInfo.QuestId); + if (questInfo.PreviousQuests.Count <= 0) + { + return; + } + if (questInfo.PreviousQuestJoin == EQuestJoin.All) + { + foreach (PreviousQuestInfo previousQuest in questInfo.PreviousQuests) + { + if (_questData.TryGetQuestInfo(previousQuest.QuestId, out IQuestInfo questInfo2)) + { + CollectPrerequisitesRecursive(questInfo2, prerequisites, visited); + if (!prerequisites.Contains(previousQuest.QuestId)) + { + prerequisites.Add(previousQuest.QuestId); + } + } + } + return; + } + if (questInfo.PreviousQuestJoin != EQuestJoin.AtLeastOne) + { + return; + } + foreach (PreviousQuestInfo previousQuest2 in questInfo.PreviousQuests) + { + if (_questFunctions.IsQuestComplete(previousQuest2.QuestId)) + { + continue; + } + if (_questData.TryGetQuestInfo(previousQuest2.QuestId, out IQuestInfo questInfo3)) + { + CollectPrerequisitesRecursive(questInfo3, prerequisites, visited); + if (!prerequisites.Contains(previousQuest2.QuestId)) + { + prerequisites.Add(previousQuest2.QuestId); + } + } + break; + } + } + + private void AddRequiredQuestsToPriority(IQuestInfo questInfo, List prerequisiteQuests) + { + int num = 0; + foreach (ElementId prerequisiteQuest in prerequisiteQuests) + { + if (_questController.AddQuestPriority(prerequisiteQuest)) + { + num++; + } + } + if (num > 0) + { + string text = ((num == 1) ? "quest" : "quests"); + _logger.LogInformation("Added {Count} {QuestWord} for '{QuestName}' to priority list", num, text, questInfo.Name); + _chatGui.Print($"Added {num} {text} to priority list.", "Questionable", 576); + } + else + { + _logger.LogWarning("No quests were added to priority list for '{QuestName}'", questInfo.Name); + _chatGui.Print("No quests to add (may be complete or already in priority).", "Questionable", 576); + } + } + internal static void ShowFilterContextMenu(QuestJournalComponent journalUi) { if (ImGuiComponents.IconButtonWithText(FontAwesomeIcon.Filter, "Filter"))